diff options
author | Sebastian Harl <sh@teamix.net> | 2012-06-06 13:47:39 +0200 |
---|---|---|
committer | Sebastian Harl <sh@teamix.net> | 2012-06-06 13:48:52 +0200 |
commit | 679a2296065893fd428891d610499c04a50aaa29 (patch) | |
tree | 3ac61772bc958006a30decc68f50c8716c63b02f /plugins | |
parent | 804e7d878cad5c76474fd2abf2130ff446dbda5d (diff) | |
download | monitoring-plugins-679a2296065893fd428891d610499c04a50aaa29.tar.gz |
sslutils: Check if OpenSSL supports SSLv2.
Recent versions/builds seem to disable that feature.
Diffstat (limited to 'plugins')
-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 2157764f..4e3fc4e8 100644 --- a/plugins/sslutils.c +++ b/plugins/sslutils.c | |||
@@ -55,7 +55,12 @@ int np_net_ssl_init_with_hostname_and_version (int sd, char *host_name, int vers | |||
55 | method = TLSv1_client_method(); | 55 | method = TLSv1_client_method(); |
56 | break; | 56 | break; |
57 | case 2: /* SSLv2 protocol */ | 57 | case 2: /* SSLv2 protocol */ |
58 | #ifdef OPENSSL_NO_SSL2 | ||
59 | printf (("%s\n", _("CRITICAL - SSL Protocol Version 2 is not supported by your build of OpenSSL."))); | ||
60 | return STATE_CRITICAL; | ||
61 | #else | ||
58 | method = SSLv2_client_method(); | 62 | method = SSLv2_client_method(); |
63 | #endif | ||
59 | break; | 64 | break; |
60 | case 3: /* SSLv3 protocol */ | 65 | case 3: /* SSLv3 protocol */ |
61 | method = SSLv3_client_method(); | 66 | method = SSLv3_client_method(); |