From 685472bfb64d05bc0f6f9f866b671074c6789430 Mon Sep 17 00:00:00 2001 From: Gabor Mezei Date: Wed, 24 Nov 2021 11:17:36 +0100 Subject: [PATCH] Update function name Signed-off-by: Gabor Mezei --- library/ssl_tls13_generic.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/library/ssl_tls13_generic.c b/library/ssl_tls13_generic.c index 12ef4d58c8..53810b81ad 100644 --- a/library/ssl_tls13_generic.c +++ b/library/ssl_tls13_generic.c @@ -29,6 +29,7 @@ #include "mbedtls/debug.h" #include "mbedtls/oid.h" #include "mbedtls/platform.h" +#include "mbedtls/constant_time.h" #include #include "ssl_misc.h" @@ -903,9 +904,9 @@ static int ssl_tls13_parse_finished_message( mbedtls_ssl_context *ssl, expected_verify_data_len ); /* Semantic validation */ - if( mbedtls_ssl_safer_memcmp( buf, - expected_verify_data, - expected_verify_data_len ) != 0 ) + if( mbedtls_ct_memcmp( buf, + expected_verify_data, + expected_verify_data_len ) != 0 ) { MBEDTLS_SSL_DEBUG_MSG( 1, ( "bad finished message" ) );