--- 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 (_("\