mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-08-21 05:43:52 -07:00
Merge pull request #70 from allfro/patch-1
Allow compilation with older openssl
This commit is contained in:
commit
3e15b52678
1 changed files with 3 additions and 0 deletions
|
@ -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();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue