diff options
Diffstat (limited to 'web/attachments/146863-check_http.c.patch')
-rw-r--r-- | web/attachments/146863-check_http.c.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/web/attachments/146863-check_http.c.patch b/web/attachments/146863-check_http.c.patch new file mode 100644 index 0000000..7f340bd --- /dev/null +++ b/web/attachments/146863-check_http.c.patch | |||
@@ -0,0 +1,31 @@ | |||
1 | --- check_http.c 2005-08-24 16:08:32.000000000 -0700 | ||
2 | +++ check_http.c.patched 2005-08-24 16:08:42.000000000 -0700 | ||
3 | @@ -173,6 +173,9 @@ | ||
4 | if ((server_cert = SSL_get_peer_certificate (ssl)) != NULL) { | ||
5 | result = check_certificate (&server_cert); | ||
6 | X509_free (server_cert); | ||
7 | + if (result == STATE_OK) { | ||
8 | + result = check_http (); | ||
9 | + } | ||
10 | } | ||
11 | else { | ||
12 | printf (_("CRITICAL - Cannot retrieve server certificate.\n")); | ||
13 | @@ -1369,8 +1372,6 @@ | ||
14 | return STATE_WARNING; | ||
15 | } | ||
16 | |||
17 | - printf (_("OK - Certificate will expire on %s.\n"), timestamp); | ||
18 | - | ||
19 | return STATE_OK; | ||
20 | } | ||
21 | #endif | ||
22 | @@ -1472,8 +1473,7 @@ | ||
23 | -S, --ssl\n\ | ||
24 | Connect via SSL\n\ | ||
25 | -C, --certificate=INTEGER\n\ | ||
26 | - Minimum number of days a certificate has to be valid.\n\ | ||
27 | - (when this option is used the url is not checked.)\n")); | ||
28 | + Minimum number of days a certificate has to be valid.\n")); | ||
29 | #endif | ||
30 | |||
31 | printf (_("\ \ No newline at end of file | ||