Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add SNI support
  • Loading branch information
Adam- committed Apr 7, 2015
1 parent ac5aebb commit 28aaa65
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/network-openssl.c
Expand Up @@ -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);

Expand Down

0 comments on commit 28aaa65

Please sign in to comment.