diff --git a/programs/test/ssl_cert_test.c b/programs/test/ssl_cert_test.c index a2127306f..aade251bf 100644 --- a/programs/test/ssl_cert_test.c +++ b/programs/test/ssl_cert_test.c @@ -176,7 +176,7 @@ int main( void ) char vrfy_buf[512]; polarssl_printf( " failed\n" ); - x509_crt_verify_info( vrfy_buf, sizeof( vrfy_buf ), " ! ", ret ); + x509_crt_verify_info( vrfy_buf, sizeof( vrfy_buf ), " ! ", flags ); polarssl_printf( "%s\n", vrfy_buf ); } else diff --git a/programs/x509/cert_app.c b/programs/x509/cert_app.c index 3a6ae87e4..51d71aef2 100644 --- a/programs/x509/cert_app.c +++ b/programs/x509/cert_app.c @@ -346,7 +346,7 @@ int main( int argc, char *argv[] ) polarssl_printf( " failed\n" ); - x509_crt_verify_info( vrfy_buf, sizeof( vrfy_buf ), " ! ", ret ); + x509_crt_verify_info( vrfy_buf, sizeof( vrfy_buf ), " ! ", flags ); polarssl_printf( "%s\n", vrfy_buf ); }