diff options
-rw-r--r-- | src/conf_parser.c | 4 | ||||
-rw-r--r-- | src/conf_parser.y | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/conf_parser.c b/src/conf_parser.c index a2363fb..56734ad 100644 --- a/src/conf_parser.c +++ b/src/conf_parser.c @@ -3322,8 +3322,8 @@ yyreduce: if (!SSL_CTX_check_private_key(ServerInfo.server_ctx) || !SSL_CTX_check_private_key(ServerInfo.client_ctx)) { - report_crypto_errors("Could not read RSA private key"); - conf_error_report(ERR_lib_error_string(ERR_get_error())); + report_crypto_errors(); + conf_error_report("Could not read RSA private key"); break; } } diff --git a/src/conf_parser.y b/src/conf_parser.y index 0bc1e70..b838c00 100644 --- a/src/conf_parser.y +++ b/src/conf_parser.y @@ -524,8 +524,8 @@ serverinfo_ssl_certificate_file: SSL_CERTIFICATE_FILE '=' QSTRING ';' if (!SSL_CTX_check_private_key(ServerInfo.server_ctx) || !SSL_CTX_check_private_key(ServerInfo.client_ctx)) { - report_crypto_errors("Could not read RSA private key"); - conf_error_report(ERR_lib_error_string(ERR_get_error())); + report_crypto_errors(); + conf_error_report("Could not read RSA private key"); break; } } |