From 4e880fb6e03a54f2a7b963f765938451b0aa16a5 Mon Sep 17 00:00:00 2001 From: Sergey Lyubka Date: Thu, 23 Jun 2022 13:11:04 +0100 Subject: [PATCH] Nit - fix openssl error message --- mongoose.c | 2 +- src/tls_openssl.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mongoose.c b/mongoose.c index a34e7592..7fe5478d 100644 --- a/mongoose.c +++ b/mongoose.c @@ -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 { diff --git a/src/tls_openssl.c b/src/tls_openssl.c index e537e038..46ac22fb 100644 --- a/src/tls_openssl.c +++ b/src/tls_openssl.c @@ -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 {