1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-08-01 10:06:53 +03:00

Change the verify function naming

Change the naming to reflect that the function uses a new ca callback
feature to distinguish different callbacks.
This commit is contained in:
Jarno Lamsa
2019-04-01 14:33:49 +03:00
parent d6d100beb7
commit 31d9db6195
3 changed files with 10 additions and 10 deletions

View File

@ -446,7 +446,7 @@ void x509_verify( char *crt_file, char *ca_file, char *crl_file,
{
flags = 0;
res = mbedtls_x509_crt_verify_with_cb( &crt, ca_callback, &ca, profile, cn_name, &flags, f_vrfy, NULL );
res = mbedtls_x509_crt_verify_with_ca_cb( &crt, ca_callback, &ca, profile, cn_name, &flags, f_vrfy, NULL );
TEST_ASSERT( res == ( result ) );
TEST_ASSERT( flags == (uint32_t)( flags_result ) );
@ -477,7 +477,7 @@ void x509_verify_ca_cb_failure( char *crt_file, char *ca_file, char *name,
if( strcmp( name, "NULL" ) == 0 )
name = NULL;
ret = mbedtls_x509_crt_verify_with_cb( &crt, ca_callback_fail, &ca,
ret = mbedtls_x509_crt_verify_with_ca_cb( &crt, ca_callback_fail, &ca,
&compat_profile, name, &flags,
verify_all, NULL );