diff options
author | Richard Levitte <levitte@openssl.org> | 2015-06-21 19:13:57 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2015-06-21 21:45:47 +0200 |
commit | 7a1789d254c561bd3024c971b5cfeeedd12d63f3 (patch) | |
tree | a9bfa8a77b1cffc4113b7f7d83c1aaba835450ef /crypto/threads | |
parent | f4c73bfe0ab7a0e8f82fe2947c0f77fe3d98acab (diff) | |
download | openssl-7a1789d254c561bd3024c971b5cfeeedd12d63f3.tar.gz |
Cleanup mttest.c : better error reporting when certs are miggins
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'crypto/threads')
-rw-r--r-- | crypto/threads/mttest.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crypto/threads/mttest.c b/crypto/threads/mttest.c index 0ad8d0fe18..2016eda7e6 100644 --- a/crypto/threads/mttest.c +++ b/crypto/threads/mttest.c @@ -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; } |