Nit - fix openssl error message

This commit is contained in:
Sergey Lyubka 2022-06-23 13:11:04 +01:00
parent 898e2b1e30
commit 4e880fb6e0
2 changed files with 2 additions and 2 deletions

View File

@ -5106,7 +5106,7 @@ void mg_tls_init(struct mg_connection *c, const struct mg_tls_opts *opts) {
#if OPENSSL_VERSION_NUMBER > 0x10100000L
} else if ((rc = SSL_use_certificate_chain_file(tls->ssl, opts->cert)) !=
1) {
mg_error(c, "Invalid CA, err %d", mg_tls_err(tls, rc));
mg_error(c, "Invalid chain, err %d", mg_tls_err(tls, rc));
goto fail;
#endif
} else {

View File

@ -78,7 +78,7 @@ void mg_tls_init(struct mg_connection *c, const struct mg_tls_opts *opts) {
#if OPENSSL_VERSION_NUMBER > 0x10100000L
} else if ((rc = SSL_use_certificate_chain_file(tls->ssl, opts->cert)) !=
1) {
mg_error(c, "Invalid CA, err %d", mg_tls_err(tls, rc));
mg_error(c, "Invalid chain, err %d", mg_tls_err(tls, rc));
goto fail;
#endif
} else {