Last active
October 13, 2016 14:41
-
-
Save nnugumanov/2818e913649824a06aeef883283f0684 to your computer and use it in GitHub Desktop.
phantom + sni
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+++ b/pd/ssl/bq_conn_ssl.C | |
@@ -110,6 +110,11 @@ static bool do_accept(SSL *ssl, int &SSL_res, interval_t *timeout) throw() { | |
} | |
static bool do_connect(SSL *ssl, int &SSL_res, interval_t *timeout) throw() { | |
+ if(!SSL_set_tlsext_host_name(ssl, “your host")) { | |
+ log_openssl_error(log::error); | |
+ throw exception_log_t(log::error, "SSL_sni"); | |
+ } | |
+ | |
SSL_set_connect_state(ssl); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment