mirror of
https://github.com/moparisthebest/hexchat
synced 2024-11-24 10:12:22 -05:00
TLS: Set SNI hostname before connect
This commit is contained in:
parent
73636a00b5
commit
dbad9285b8
@ -487,6 +487,10 @@ ssl_do_connect (server * serv)
|
|||||||
char buf[128];
|
char buf[128];
|
||||||
|
|
||||||
g_sess = serv->server_session;
|
g_sess = serv->server_session;
|
||||||
|
|
||||||
|
/* Set SNI hostname before connect */
|
||||||
|
SSL_set_tlsext_host_name(serv->ssl, serv->hostname);
|
||||||
|
|
||||||
if (SSL_connect (serv->ssl) <= 0)
|
if (SSL_connect (serv->ssl) <= 0)
|
||||||
{
|
{
|
||||||
char err_buf[128];
|
char err_buf[128];
|
||||||
|
Loading…
Reference in New Issue
Block a user