Skip to content

Instantly share code, notes, and snippets.

@nnugumanov
Last active October 13, 2016 14:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nnugumanov/2818e913649824a06aeef883283f0684 to your computer and use it in GitHub Desktop.
Save nnugumanov/2818e913649824a06aeef883283f0684 to your computer and use it in GitHub Desktop.
phantom + sni
+++ 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