blob: a56e1d728c527bae849df69e6a2f187799f549e3 (
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
|
--- check_http.c.orig 2012-06-27 19:32:47.000000000 +0200
+++ check_http.c 2013-06-25 21:08:19.000000000 +0200
@@ -304,21 +304,22 @@
/* Fall through to -S option */
#endif
case 'S': /* use SSL */
#ifndef HAVE_SSL
usage4 (_("Invalid option - SSL is not available"));
-#endif
+#else
use_ssl = TRUE;
if (optarg == NULL || c != 'S')
ssl_version = 0;
else {
ssl_version = atoi(optarg);
if (ssl_version < 1 || ssl_version > 3)
usage4 (_("Invalid option - Valid values for SSL Version are 1 (TLSv1), 2 (SSLv2) or 3 (SSLv3)"));
}
if (specify_port == FALSE)
server_port = HTTPS_PORT;
+#endif
break;
case SNI_OPTION:
use_sni = TRUE;
break;
case 'f': /* onredirect */
|