From 90ee3c1646a5efc1a24aa4d89ab15b3cbd3dbd75 Mon Sep 17 00:00:00 2001
From: Richard Levitte <levitte@openssl.org>
Date: Sun, 21 Jun 2015 19:13:57 +0200
Subject: [PATCH] Cleanup mttest.c : better error reporting when certs are
 missing

Reviewed-by: Rich Salz <rsalz@openssl.org>
(cherry picked from commit 7a1789d254c561bd3024c971b5cfeeedd12d63f3)
---
 crypto/threads/mttest.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/crypto/threads/mttest.c b/crypto/threads/mttest.c
index 7feffcc83c..2621ec0e5c 100644
--- a/crypto/threads/mttest.c
+++ b/crypto/threads/mttest.c
@@ -278,9 +278,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;
     }
-- 
2.25.1