summaryrefslogtreecommitdiffstats
path: root/web/attachments/146863-check_http.c.patch
blob: 7f340bd67fd99c51a83b6effbc402e99fa5816f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
--- check_http.c        2005-08-24 16:08:32.000000000 -0700
+++ check_http.c.patched        2005-08-24 16:08:42.000000000 -0700
@@ -173,6 +173,9 @@
                if ((server_cert = SSL_get_peer_certificate (ssl)) != NULL) {
                        result = check_certificate (&server_cert);
                        X509_free (server_cert);
+                       if (result == STATE_OK) {
+                               result = check_http ();
+                       }
                }
                else {
                        printf (_("CRITICAL - Cannot retrieve server certificate.\n"));
@@ -1369,8 +1372,6 @@
                return STATE_WARNING;
        }

-       printf (_("OK - Certificate will expire on %s.\n"), timestamp);
-
        return STATE_OK;
 }
 #endif
@@ -1472,8 +1473,7 @@
  -S, --ssl\n\
     Connect via SSL\n\
  -C, --certificate=INTEGER\n\
-    Minimum number of days a certificate has to be valid.\n\
-    (when this option is used the url is not checked.)\n"));
+    Minimum number of days a certificate has to be valid.\n"));
 #endif

        printf (_("\