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 0ad8d0f..2016eda 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;
     }