mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-08-20 13:23:57 -07:00
SSL SNI implemented
This commit is contained in:
parent
54633f3c48
commit
4c25bddad7
2 changed files with 5 additions and 0 deletions
|
@ -511,7 +511,11 @@ int internal__hydra_connect_to_ssl(int socket) {
|
|||
return -1;
|
||||
}
|
||||
|
||||
/* add SNI */
|
||||
SSL_set_tlsext_host_name(ssl, "localhost");
|
||||
|
||||
SSL_set_fd(ssl, socket);
|
||||
|
||||
if (SSL_connect(ssl) <= 0) {
|
||||
// fprintf(stderr, "[ERROR] SSL Connect %d\n", SSL_connect(ssl));
|
||||
if (verbose) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue