[monitoring-plugins] sslutils: Check if OpenSSL supports SSLv3.

Holger Weiss git at monitoring-plugins.org
Wed Aug 26 11:40:10 CEST 2015


    Module: monitoring-plugins
    Branch: maint
    Commit: 4e786f83decca053c98293fc4a4a555e4d247c1a
    Author: Jérémie Courrèges-Anglas <jca at wxcvbn.org>
 Committer: Holger Weiss <holger at zedat.fu-berlin.de>
      Date: Sat Jul 25 20:02:14 2015 -0600
       URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=4e786f8

sslutils: Check if OpenSSL supports SSLv3.

---

 plugins/sslutils.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/plugins/sslutils.c b/plugins/sslutils.c
index d0ae474..4933dd0 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
 #endif
 		break;
 	case 3: /* SSLv3 protocol */
+#if defined(OPENSSL_NO_SSL3)
+		printf(("%s\n", _("CRITICAL - SSL protocol version 3 is not supported by your SSL library.")));
+		return STATE_CRITICAL;
+#else
 		method = SSLv3_client_method();
+#endif
 		break;
 	default: /* Unsupported */
 		printf("%s\n", _("CRITICAL - Unsupported SSL protocol version."));



More information about the Commits mailing list