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"); | |
+ } | |
+ |
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
static bool do_connect(SSL *ssl, int &SSL_res, interval_t *timeout) throw() { | |
if(!SSL_set_tlsext_host_name(ssl, "example.com")) { | |
log_openssl_error(log::error); | |
throw exception_log_t(log::error, "SSL_sni"); | |
} | |
SSL_set_connect_state(ssl); | |
while(true) { |
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
static bool do_connect(SSL *ssl, int &SSL_res, interval_t *timeout) throw() { | |
if(!SSL_set_tlsext_host_name(ssl, "example.com")) { | |
log_openssl_error(log::error); | |
throw exception_log_t(log::error, "SSL_sni"); | |
} | |
SSL_set_connect_state(ssl); | |
while(true) { | |
int res = SSL_connect(ssl); | |
if(res > 0) return true; |