Fix bugs in programs displaying verify flags

This commit is contained in:
Manuel Pégourié-Gonnard 2015-04-24 14:07:07 +02:00
parent 0c6ce2f536
commit 637376c2fe
2 changed files with 2 additions and 2 deletions

View File

@ -176,7 +176,7 @@ int main( void )
char vrfy_buf[512]; char vrfy_buf[512];
polarssl_printf( " failed\n" ); 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 ); polarssl_printf( "%s\n", vrfy_buf );
} }
else else

View File

@ -346,7 +346,7 @@ int main( int argc, char *argv[] )
polarssl_printf( " failed\n" ); 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 ); polarssl_printf( "%s\n", vrfy_buf );
} }