diff options
author | Adam <Adam@anope.org> | 2015-04-07 15:01:57 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2015-04-07 15:01:57 -0400 |
commit | 28aaa653cf681b7bf8500b073f74a255a6fb15eb (patch) | |
tree | 59fb475e0e0f70b8b64f807898a343448793c568 /src/core/network-openssl.c | |
parent | ac5aebb91f2743326015d0f790a383767cbf7115 (diff) | |
download | irssi-28aaa653cf681b7bf8500b073f74a255a6fb15eb.zip |
Add SNI support
Diffstat (limited to 'src/core/network-openssl.c')
-rw-r--r-- | src/core/network-openssl.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/network-openssl.c b/src/core/network-openssl.c index e16403ec..dcd857d8 100644 --- a/src/core/network-openssl.c +++ b/src/core/network-openssl.c @@ -531,6 +531,10 @@ static GIOChannel *irssi_ssl_get_iochannel(GIOChannel *handle, int port, SERVER_ return NULL; } +#ifdef SSL_CTRL_SET_TLSEXT_HOSTNAME + SSL_set_tlsext_host_name(ssl, server->connrec->address); +#endif + SSL_set_mode(ssl, SSL_MODE_ENABLE_PARTIAL_WRITE | SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER); |