Merge pull request #70 from allfro/patch-1

Allow compilation with older openssl
This commit is contained in:
van Hauser 2015-07-12 21:16:26 +02:00
commit 3e15b52678

View file

@ -479,6 +479,9 @@ int internal__hydra_connect_to_ssl(int socket) {
} }
} else { } else {
// if ((sslContext = SSL_CTX_new(SSLv23_client_method())) == NULL) { // if ((sslContext = SSL_CTX_new(SSLv23_client_method())) == NULL) {
#ifndef TLSv1_2_client_method
#define TLSv1_2_client_method TLSv1_client_method
#endif
if ((sslContext = SSL_CTX_new(TLSv1_2_client_method())) == NULL) { if ((sslContext = SSL_CTX_new(TLSv1_2_client_method())) == NULL) {
if (verbose) { if (verbose) {
err = ERR_get_error(); err = ERR_get_error();