summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2012-06-11 23:23:40 +0200
committerHolger Weiss <holger@zedat.fu-berlin.de>2012-06-11 23:23:40 +0200
commit3fd1bd97ca874aecd4ad046f642c894bd1347f88 (patch)
treec164b152bd4ed39f786a16ceef44ee8ed083a12b
parent094a6fa2f3b9283c46428a7e38900b98294fc6d4 (diff)
downloadmonitoring-plugins-3fd1bd97ca874aecd4ad046f642c894bd1347f88.tar.gz
Don't use SSLv2 when compiling against GnuTLS
GnuTLS doesn't support SSL version 2.
-rw-r--r--plugins/sslutils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/sslutils.c b/plugins/sslutils.c
index 4e3fc4e8..12cd7341 100644
--- a/plugins/sslutils.c
+++ b/plugins/sslutils.c
@@ -55,8 +55,8 @@ 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 58#if defined(USE_GNUTLS) || defined(OPENSSL_NO_SSL2)
59 printf (("%s\n", _("CRITICAL - SSL Protocol Version 2 is not supported by your build of OpenSSL."))); 59 printf (("%s\n", _("CRITICAL - SSL Protocol Version 2 is not supported by your SSL library.")));
60 return STATE_CRITICAL; 60 return STATE_CRITICAL;
61#else 61#else
62 method = SSLv2_client_method(); 62 method = SSLv2_client_method();