diff options
Diffstat (limited to 'web/attachments/106647-check_tcp.c.patch')
| -rw-r--r-- | web/attachments/106647-check_tcp.c.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/web/attachments/106647-check_tcp.c.patch b/web/attachments/106647-check_tcp.c.patch new file mode 100644 index 0000000..d080c65 --- /dev/null +++ b/web/attachments/106647-check_tcp.c.patch | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | --- check_tcp.c.orig Thu Sep 16 13:03:28 2004 | ||
| 2 | +++ check_tcp.c Wed Oct 20 12:52:06 2004 | ||
| 3 | @@ -553,8 +553,9 @@ | ||
| 4 | |||
| 5 | /* Initialize SSL context */ | ||
| 6 | SSLeay_add_ssl_algorithms (); | ||
| 7 | - meth = SSLv2_client_method (); | ||
| 8 | + meth = SSLv23_client_method (); | ||
| 9 | SSL_load_error_strings (); | ||
| 10 | + OpenSSL_add_all_algorithms(); | ||
| 11 | if ((ctx = SSL_CTX_new (meth)) == NULL) | ||
| 12 | { | ||
| 13 | printf ("ERROR: Cannot create SSL context.\n"); | ||
| 14 | @@ -577,7 +578,7 @@ | ||
| 15 | if ((ssl = SSL_new (ctx)) != NULL) | ||
| 16 | { | ||
| 17 | SSL_set_fd (ssl, sd); | ||
| 18 | - if (SSL_connect (ssl) != -1) | ||
| 19 | + if (SSL_connect(ssl) == 1) | ||
| 20 | return OK; | ||
| 21 | ERR_print_errors_fp (stderr); | ||
| 22 | } | ||
