From: Fabian Keil <fk@fabiankeil.de>
Date: Mon, 18 Jan 2021 17:33:11 +0000 (+0100)
Subject: ssl_send_certificate_error(): Send the error message with status code 403 instead... 
X-Git-Tag: v_3_0_30~66
X-Git-Url: http://www.privoxy.org/gitweb/@default-cgi@/faq/@default-cgi@show-status?a=commitdiff_plain;h=f048c3c93d1;p=privoxy.git

ssl_send_certificate_error(): Send the error message with status code 403 instead of 200
---

diff --git a/ssl_common.c b/ssl_common.c
index 879111e9..6ed067f9 100644
--- a/ssl_common.c
+++ b/ssl_common.c
@@ -328,7 +328,7 @@ extern void ssl_send_certificate_error(struct client_state *csp)
 
    /* Header of message with certificate information */
    const char message_begin[] =
-      "HTTP/1.1 200 OK\r\n"
+      "HTTP/1.1 403 Certificate validation failed\r\n"
       "Content-Type: text/html\r\n"
       "Connection: close\r\n\r\n"
       "<!DOCTYPE html>\n"