Rename mbedtls_platform_memcmp() to mbedtls_platform_memequal()
Signed-off-by: Piotr Nowicki <piotr.nowicki@arm.com>
diff --git a/library/x509.c b/library/x509.c
index 65f2ec6..f86e9e3 100644
--- a/library/x509.c
+++ b/library/x509.c
@@ -516,7 +516,7 @@
{
if( a->tag == b->tag &&
a->len == b->len &&
- mbedtls_platform_memcmp( a->p, b->p, b->len ) == 0 )
+ mbedtls_platform_memequal( a->p, b->p, b->len ) == 0 )
{
return( 0 );
}
@@ -605,7 +605,7 @@
goto exit;
if( oid[0].len != oid[1].len ||
- mbedtls_platform_memcmp( oid[0].p, oid[1].p, oid[1].len ) != 0 )
+ mbedtls_platform_memequal( oid[0].p, oid[1].p, oid[1].len ) != 0 )
{
return( 1 );
}