From 0b6423f9c99d9edf8c96fefd0f6c453859395aa1 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Mon, 30 Sep 2013 00:03:24 +0200 Subject: Import Nagios Plugins site Import the Nagios Plugins web site, Cronjobs, infrastructure scripts, and configuration files. --- web/attachments/105911-check_tcp.c.patch | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 web/attachments/105911-check_tcp.c.patch (limited to 'web/attachments/105911-check_tcp.c.patch') diff --git a/web/attachments/105911-check_tcp.c.patch b/web/attachments/105911-check_tcp.c.patch new file mode 100644 index 0000000..d080c65 --- /dev/null +++ b/web/attachments/105911-check_tcp.c.patch @@ -0,0 +1,22 @@ +--- check_tcp.c.orig Thu Sep 16 13:03:28 2004 ++++ check_tcp.c Wed Oct 20 12:52:06 2004 +@@ -553,8 +553,9 @@ + + /* Initialize SSL context */ + SSLeay_add_ssl_algorithms (); +- meth = SSLv2_client_method (); ++ meth = SSLv23_client_method (); + SSL_load_error_strings (); ++ OpenSSL_add_all_algorithms(); + if ((ctx = SSL_CTX_new (meth)) == NULL) + { + printf ("ERROR: Cannot create SSL context.\n"); +@@ -577,7 +578,7 @@ + if ((ssl = SSL_new (ctx)) != NULL) + { + SSL_set_fd (ssl, sd); +- if (SSL_connect (ssl) != -1) ++ if (SSL_connect(ssl) == 1) + return OK; + ERR_print_errors_fp (stderr); + } -- cgit v1.2.3-74-g34f1