From: Fabian Keil <fk@fabiankeil.de>
Date: Wed, 26 Feb 2020 13:02:48 +0000 (+0100)
Subject: When logging that the certificate verifcation failed, mention the host
X-Git-Tag: v_3_0_29~471
X-Git-Url: http://www.privoxy.org/gitweb/user-manual/static/faq/static/gitweb.js?a=commitdiff_plain;h=2baf57cc87c2e70d024a1480c0bf7cc6edb0efaa;p=privoxy.git

When logging that the certificate verifcation failed, mention the host

Sponsored by: Robert Klemme
---

diff --git a/ssl.c b/ssl.c
index 8d9a55ac..c1a06613 100644
--- a/ssl.c
+++ b/ssl.c
@@ -820,8 +820,8 @@ extern int create_server_ssl_connection(struct client_state *csp)
 
             /* Log the reason without the trailing new line */
             log_error(LOG_LEVEL_ERROR,
-               "The X509 certificate verification failed: %N",
-               strlen(reason)-1, reason);
+               "X509 certificate verification for %s failed: %N",
+               csp->http->hostport, strlen(reason)-1, reason);
             ret = -1;
          }
          else