Use size_t instead of int to silence compiler warnings

Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
This commit is contained in:
Gabor Mezei 2022-03-16 12:55:32 +01:00
parent 4f4bac7e22
commit 36c9f51ef2
No known key found for this signature in database
GPG Key ID: 106F5A41ECC305BD

View File

@ -162,7 +162,7 @@ int mbedtls_ssl_ticket_rotate( mbedtls_ssl_ticket_context *ctx,
#if defined(MBEDTLS_USE_PSA_CRYPTO)
psa_key_attributes_t attributes = PSA_KEY_ATTRIBUTES_INIT;
const int bitlen = key->key_bits;
const size_t bitlen = key->key_bits;
#else
const int bitlen = mbedtls_cipher_get_key_bitlen( &key->ctx );
#endif