ssl_send_certificate_error(): Send the error message with status code 403 instead...
authorFabian Keil <fk@fabiankeil.de>
Mon, 18 Jan 2021 17:33:11 +0000 (18:33 +0100)
committerFabian Keil <fk@fabiankeil.de>
Wed, 20 Jan 2021 15:23:49 +0000 (16:23 +0100)
ssl_common.c

index 879111e..6ed067f 100644 (file)
@@ -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"