diff options
author | Jérémie Courrèges-Anglas <jca@wxcvbn.org> | 2015-07-25 20:02:14 -0600 |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2015-08-26 11:36:03 +0200 |
commit | 4e786f83decca053c98293fc4a4a555e4d247c1a (patch) | |
tree | 6462308b7b4630394b904455fdd948ab16c236e1 | |
parent | 063bc4e71d168e59437068fc386c9c3e9e25f4c6 (diff) | |
download | monitoring-plugins-4e786f8.tar.gz |
sslutils: Check if OpenSSL supports SSLv3.
-rw-r--r-- | plugins/sslutils.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/sslutils.c b/plugins/sslutils.c index d0ae4741..4933dd0d 100644 --- a/plugins/sslutils.c +++ b/plugins/sslutils.c | |||
@@ -66,7 +66,12 @@ int np_net_ssl_init_with_hostname_version_and_cert(int sd, char *host_name, int | |||
66 | #endif | 66 | #endif |
67 | break; | 67 | break; |
68 | case 3: /* SSLv3 protocol */ | 68 | case 3: /* SSLv3 protocol */ |
69 | #if defined(OPENSSL_NO_SSL3) | ||
70 | printf(("%s\n", _("CRITICAL - SSL protocol version 3 is not supported by your SSL library."))); | ||
71 | return STATE_CRITICAL; | ||
72 | #else | ||
69 | method = SSLv3_client_method(); | 73 | method = SSLv3_client_method(); |
74 | #endif | ||
70 | break; | 75 | break; |
71 | default: /* Unsupported */ | 76 | default: /* Unsupported */ |
72 | printf("%s\n", _("CRITICAL - Unsupported SSL protocol version.")); | 77 | printf("%s\n", _("CRITICAL - Unsupported SSL protocol version.")); |