From 36c9f51ef2b820e9a4791c912c0b5f8ee319e28e Mon Sep 17 00:00:00 2001 From: Gabor Mezei Date: Wed, 16 Mar 2022 12:55:32 +0100 Subject: [PATCH] Use size_t instead of int to silence compiler warnings Signed-off-by: Gabor Mezei --- library/ssl_ticket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/ssl_ticket.c b/library/ssl_ticket.c index 976778378b..ce4607ec2a 100644 --- a/library/ssl_ticket.c +++ b/library/ssl_ticket.c @@ -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