mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-08-20 13:23:57 -07:00
Allow compilation with older openssl
Uses `TLSv1_client_method` if `TLSv1_2_client_method` is not defined as a symbol in OpenSSL.
This commit is contained in:
parent
ed7a823175
commit
11e987e30d
1 changed files with 3 additions and 0 deletions
|
@ -479,6 +479,9 @@ int internal__hydra_connect_to_ssl(int socket) {
|
|||
}
|
||||
} else {
|
||||
// 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 (verbose) {
|
||||
err = ERR_get_error();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue