Cleanup mttest.c : better error reporting when certs are miggins
authorRichard Levitte <levitte@openssl.org>
Sun, 21 Jun 2015 17:13:57 +0000 (19:13 +0200)
committerRichard Levitte <levitte@openssl.org>
Sun, 21 Jun 2015 19:45:47 +0000 (21:45 +0200)
Reviewed-by: Rich Salz <rsalz@openssl.org>
crypto/threads/mttest.c

index 0ad8d0fe1832e4c19ebe7c3ae7d64eae6b92c763..2016eda7e6898e7128c096536fc48fe06da90b4d 100644 (file)
@@ -276,9 +276,12 @@ int main(int argc, char *argv[])
                                    SSL_SESS_CACHE_SERVER);
 
     if (!SSL_CTX_use_certificate_file(s_ctx, scert, SSL_FILETYPE_PEM)) {
+        BIO_printf(bio_err, "SSL_CTX_use_certificate_file (%s)\n", scert);
         ERR_print_errors(bio_err);
+        goto end;
     } else
         if (!SSL_CTX_use_RSAPrivateKey_file(s_ctx, scert, SSL_FILETYPE_PEM)) {
+        BIO_printf(bio_err, "SSL_CTX_use_RSAPrivateKey_file (%s)\n", scert);
         ERR_print_errors(bio_err);
         goto end;
     }