blob: ffe72caa4bcedbd61927d19e37d32fb4a9d1a4d8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
--- nagios-plugins-1.4.15-orig/plugins/sslutils.c 2010-07-27 16:47:16.000000000 -0400
+++ nagios-plugins-1.4.15/plugins/sslutils.c 2010-11-06 08:45:59.000000000 -0400
@@ -51,6 +51,11 @@
printf ("%s\n", _("CRITICAL - Cannot create SSL context."));
return STATE_CRITICAL;
}
+#ifndef SSL_enforce_sanity
+ if (c) {
+ SSL_CTX_set_options(c,SSL_OP_ALL);
+ }
+#endif
if ((s = SSL_new (c)) != NULL){
#ifdef SSL_set_tlsext_host_name
if (host_name != NULL)
|