Cleanup mttest.c : better error reporting when certs are missing
Reviewed-by: Rich Salz <rsalz@openssl.org> (cherry picked from commit 7a1789d254c561bd3024c971b5cfeeedd12d63f3)
This commit is contained in:
parent
1d6d4efea5
commit
5891dae67c
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user