Avoid compiler warning about size comparison
GCC warns about comparing uint8_t to a size that may be >255. Strangely, casting the uint8_t to a size_t in the comparison expression doesn't avoid the warning. So change the type of the variable. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
parent
530c423ad2
commit
7910cdd47f
1 changed files with 1 additions and 1 deletions
|
@ -1727,7 +1727,7 @@ static int ssl_parse_server_ecdh_params(mbedtls_ssl_context *ssl,
|
||||||
unsigned char *end)
|
unsigned char *end)
|
||||||
{
|
{
|
||||||
uint16_t tls_id;
|
uint16_t tls_id;
|
||||||
uint8_t ecpoint_len;
|
size_t ecpoint_len;
|
||||||
mbedtls_ssl_handshake_params *handshake = ssl->handshake;
|
mbedtls_ssl_handshake_params *handshake = ssl->handshake;
|
||||||
psa_key_type_t key_type = PSA_KEY_TYPE_NONE;
|
psa_key_type_t key_type = PSA_KEY_TYPE_NONE;
|
||||||
size_t ec_bits = 0;
|
size_t ec_bits = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue