mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-02-20 00:10:09 -05:00
sslutils: Check if OpenSSL supports SSLv3.
This commit is contained in:
parent
063bc4e71d
commit
4e786f83de
1 changed files with 5 additions and 0 deletions
|
|
@ -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."));
|
||||
|
|
|
|||
Loading…
Reference in a new issue