ssl_send_certificate_error(): Make it more obvious that the message is coming from...
authorFabian Keil <fk@fabiankeil.de>
Sat, 6 Jun 2020 07:28:00 +0000 (09:28 +0200)
committerFabian Keil <fk@fabiankeil.de>
Mon, 15 Jun 2020 08:43:22 +0000 (10:43 +0200)
Suggested by: Roland
Sponsored by: Robert Klemme

ssl.c

diff --git a/ssl.c b/ssl.c
index 313174f..3e2d8a5 100644 (file)
--- a/ssl.c
+++ b/ssl.c
@@ -2064,7 +2064,10 @@ extern void ssl_send_certificate_error(struct client_state *csp)
       "HTTP/1.1 200 OK\r\n"
       "Content-Type: text/html\r\n"
       "Connection: close\r\n\r\n"
       "HTTP/1.1 200 OK\r\n"
       "Content-Type: text/html\r\n"
       "Connection: close\r\n\r\n"
-      "<html><body><h1>Server certificate verification failed</h1><p>Reason: ";
+      "<html><body><h1>Server certificate verification failed</h1>"
+      "<p><a href=\"https://" CGI_SITE_2_HOST "/\">Privoxy</a> was unable "
+      "to securely connnect to the destination server.</p>"
+      "<p>Reason: ";
    const char message_end[] = "</body></html>\r\n\r\n";
    char reason[INVALID_CERT_INFO_BUF_SIZE];
    memset(reason, 0, sizeof(reason));
    const char message_end[] = "</body></html>\r\n\r\n";
    char reason[INVALID_CERT_INFO_BUF_SIZE];
    memset(reason, 0, sizeof(reason));