From 13962a20a8455a93d82470178f8989cf290c5a0c Mon Sep 17 00:00:00 2001 From: van Hauser Date: Thu, 15 Jun 2017 11:45:46 +0200 Subject: [PATCH] fix for SSL error:00000000:lib(0):func(0):reason(0) bug --- CHANGES | 1 + hydra-mod.c | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGES b/CHANGES index 3a851c2..ee7a523 100644 --- a/CHANGES +++ b/CHANGES @@ -3,6 +3,7 @@ Changelog for hydra Release 8.6-dev * http-form module now supports URLs up to 6000 bytes (thanks to petrock6@github for the patch) +* Fix for SSL connections that failed with error:00000000:lib(0):func(0):reason(0) (thanks gaia@github for reporting) * merged several patches by Diadlo@github to make the code easier readable. thanks for that! diff --git a/hydra-mod.c b/hydra-mod.c index fd16e54..0b9fd78 100644 --- a/hydra-mod.c +++ b/hydra-mod.c @@ -514,10 +514,9 @@ int internal__hydra_connect_to_ssl(int socket, char *hostname) { return -1; } } else { -// if ((sslContext = SSL_CTX_new(SSLv23_client_method())) == NULL) { #ifndef TLSv1_2_client_method #if OPENSSL_VERSION_NUMBER < 0x10100000L - #define TLSv1_2_client_method TLSv1_client_method + #define TLSv1_2_client_method TLSv1_2_client_method #else #define TLSv1_2_client_method TLS_client_method #endif