From 637376c2fe882e8904627ff7271bdeb97b14a5c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Fri, 24 Apr 2015 14:07:07 +0200 Subject: [PATCH] Fix bugs in programs displaying verify flags --- programs/test/ssl_cert_test.c | 2 +- programs/x509/cert_app.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 ); }