- Updated to handle x509parse_crtfile() positive return values
diff --git a/programs/ssl/ssl_client2.c b/programs/ssl/ssl_client2.c
index 46edb2c..f82abe6 100644
--- a/programs/ssl/ssl_client2.c
+++ b/programs/ssl/ssl_client2.c
@@ -258,13 +258,13 @@
printf("POLARSSL_CERTS_C not defined.");
}
#endif
- if( ret != 0 )
+ if( ret < 0 )
{
printf( " failed\n ! x509parse_crt returned -0x%x\n\n", -ret );
goto exit;
}
- printf( " ok\n" );
+ printf( " ok (%d skipped)\n", ret );
/*
* 1.2. Load own certificate and private key