diff --git a/programs/test/ssl_cert_test.c b/programs/test/ssl_cert_test.c index f33d9a3a1..d699c8090 100644 --- a/programs/test/ssl_cert_test.c +++ b/programs/test/ssl_cert_test.c @@ -181,7 +181,7 @@ int main( void ) } else { - mbedtls_printf( " failed\n ! mbedtls_x509_crt_verify returned %d\n\n", ret ); + mbedtls_printf( " failed\n ! mbedtls_x509_crt_verify returned %d\n\n", flags ); goto exit; } } diff --git a/programs/x509/cert_app.c b/programs/x509/cert_app.c index 2593b5e84..04fd32549 100644 --- a/programs/x509/cert_app.c +++ b/programs/x509/cert_app.c @@ -346,7 +346,7 @@ int main( int argc, char *argv[] ) mbedtls_printf( " failed\n" ); - mbedtls_x509_crt_verify_info( vrfy_buf, sizeof( vrfy_buf ), " ! ", ret ); + mbedtls_x509_crt_verify_info( vrfy_buf, sizeof( vrfy_buf ), " ! ", flags ); mbedtls_printf( "%s\n", vrfy_buf ); }