summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f6bfe34)
raw | patch | inline | side by side (parent: f6bfe34)
author | Ton Voon <tonvoon@users.sourceforge.net> | |
Fri, 24 Mar 2006 16:25:46 +0000 (16:25 +0000) | ||
committer | Ton Voon <tonvoon@users.sourceforge.net> | |
Fri, 24 Mar 2006 16:25:46 +0000 (16:25 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1355 f882894a-f735-0410-b71e-b25c423dba1c
plugins/check_http.c | patch | blob | history |
diff --git a/plugins/check_http.c b/plugins/check_http.c
index 54e5ff29619fd55b502718135111253ccc59c20b..58cf83cf236ae8cdf3f11c9579e500c64d3892ca 100644 (file)
--- a/plugins/check_http.c
+++ b/plugins/check_http.c
case 'n': /* do not show html link */
display_html = FALSE;
break;
- case 'S': /* use SSL */
-#ifndef HAVE_SSL
- usage4 (_("Invalid option - SSL is not available"));
-#endif
- use_ssl = TRUE;
- if (specify_port == FALSE)
- server_port = HTTPS_PORT;
- break;
case 'C': /* Check SSL cert validity */
-#ifdef USE_OPENSSL
+#ifdef HAVE_SSL
if (!is_intnonneg (optarg))
usage2 (_("Invalid certificate expiration period"), optarg);
else {
days_till_exp = atoi (optarg);
check_cert = TRUE;
}
-#else
+ /* Fall through to -S option */
+#endif
+ case 'S': /* use SSL */
+#ifndef HAVE_SSL
usage4 (_("Invalid option - SSL is not available"));
#endif
+ use_ssl = TRUE;
+ if (specify_port == FALSE)
+ server_port = HTTPS_PORT;
break;
case 'f': /* onredirect */
if (!strcmp (optarg, "follow"))