From c09437526c09c11dbe908ca9cbf71b975faebc40 Mon Sep 17 00:00:00 2001 From: Gabor Mezei Date: Tue, 29 Mar 2022 17:08:15 +0200 Subject: [PATCH] Remove commented out code Signed-off-by: Gabor Mezei --- library/ssl_tls13_keys.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/library/ssl_tls13_keys.c b/library/ssl_tls13_keys.c index 5c851c712..1da8de69b 100644 --- a/library/ssl_tls13_keys.c +++ b/library/ssl_tls13_keys.c @@ -431,20 +431,8 @@ int mbedtls_ssl_tls13_derive_secret( { int ret; unsigned char hashed_context[ PSA_HASH_MAX_SIZE ]; -/* - const mbedtls_md_info_t *md_info; - md_info = mbedtls_md_info_from_type( hash_alg ); - if( md_info == NULL ) - return( MBEDTLS_ERR_SSL_BAD_INPUT_DATA ); -*/ if( ctx_hashed == MBEDTLS_SSL_TLS1_3_CONTEXT_UNHASHED ) { -/* - ret = mbedtls_md( md_info, ctx, ctx_len, hashed_context ); - if( ret != 0 ) - return( ret ); - ctx_len = mbedtls_md_get_size( md_info ); -*/ psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; status = psa_hash_compute( hash_alg, ctx, ctx_len, hashed_context,