mirror of
https://github.com/3proxy/3proxy.git
synced 2025-06-08 20:44:47 +08:00
Merge ab702614d3
into 56c739f478
This commit is contained in:
commit
5e1847de50
@ -223,7 +223,11 @@ SSL_CONN ssl_handshake_to_server(SOCKET s, char * hostname, SSL_CERT *server_cer
|
||||
ssl_conn_free(conn);
|
||||
return NULL;
|
||||
}
|
||||
#if OPENSSL_VERSION_NUMBER < 0x00908070L
|
||||
#error OpenSSL vv. below 0.9.8f are not supported
|
||||
#else
|
||||
if(hostname && *hostname)SSL_set_tlsext_host_name(conn->ssl, hostname);
|
||||
#endif
|
||||
err = SSL_connect(conn->ssl);
|
||||
if ( err == -1 ) {
|
||||
*errSSL = ERR_error_string(ERR_get_error(), errbuf);
|
||||
|
Loading…
Reference in New Issue
Block a user