Unify memcmp functions
Signed-off-by: gabor-mezei-arm <gabor.mezei@arm.com>
diff --git a/library/ssl_cli.c b/library/ssl_cli.c
index 3ef318c..8fd28cf 100644
--- a/library/ssl_cli.c
+++ b/library/ssl_cli.c
@@ -1381,9 +1381,9 @@
/* Check verify-data in constant-time. The length OTOH is no secret */
if( len != 1 + ssl->verify_data_len * 2 ||
buf[0] != ssl->verify_data_len * 2 ||
- mbedtls_ssl_safer_memcmp( buf + 1,
+ mbedtls_cf_memcmp( buf + 1,
ssl->own_verify_data, ssl->verify_data_len ) != 0 ||
- mbedtls_ssl_safer_memcmp( buf + 1 + ssl->verify_data_len,
+ mbedtls_cf_memcmp( buf + 1 + ssl->verify_data_len,
ssl->peer_verify_data, ssl->verify_data_len ) != 0 )
{
MBEDTLS_SSL_DEBUG_MSG( 1, ( "non-matching renegotiation info" ) );