From 0a4298bbe9d002a4ccb6af61d8dffaf152211483 Mon Sep 17 00:00:00 2001 From: Gabor Mezei Date: Fri, 13 May 2022 16:25:35 +0200 Subject: [PATCH] Remove unnecessary duble conversion Signed-off-by: Gabor Mezei --- library/ssl_tls12_server.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/library/ssl_tls12_server.c b/library/ssl_tls12_server.c index 38892220e..93854df2d 100644 --- a/library/ssl_tls12_server.c +++ b/library/ssl_tls12_server.c @@ -1811,9 +1811,8 @@ have_ciphersuite: { unsigned int sig_hash = mbedtls_ssl_tls12_get_preferred_hash_for_sig_alg( ssl, mbedtls_ssl_sig_from_pk_alg( sig_alg ) ); - mbedtls_md_type_t md_alg = mbedtls_ssl_md_alg_from_hash( sig_hash ); - MBEDTLS_SSL_DEBUG_MSG( 3, ( "client hello v3, signature_algorithm ext: %d", - mbedtls_ssl_hash_from_md_alg( md_alg ) ) ); + MBEDTLS_SSL_DEBUG_MSG( 3, ( "client hello v3, signature_algorithm ext: %u", + sig_hash ) ); } else {