summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2015-06-21 19:13:57 +0200
committerRichard Levitte <levitte@openssl.org>2015-06-21 22:13:28 +0200
commit5891dae67c93d53e79bfa2bdc31d9bd72ba9da73 (patch)
tree095f19e36e276a105ba5975ed06e0670b299160b /crypto
parent1d6d4efea56c8b03a4fbb2b1b9e1f25447e752aa (diff)
Cleanup mttest.c : better error reporting when certs are missing
Reviewed-by: Rich Salz <rsalz@openssl.org> (cherry picked from commit 7a1789d254c561bd3024c971b5cfeeedd12d63f3)
Diffstat (limited to 'crypto')
-rw-r--r--crypto/threads/mttest.c3
1 files changed, 3 insertions, 0 deletions
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;
}