From f048c3c93d10377496623dfc13f5b8978f443c16 Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Mon, 18 Jan 2021 18:33:11 +0100 Subject: [PATCH] ssl_send_certificate_error(): Send the error message with status code 403 instead of 200 --- ssl_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" "\n" -- 2.39.2