Permalink
Browse files

TLS: Set SNI hostname before connect

  • Loading branch information...
moparisthebest committed Sep 11, 2015
1 parent 73636a0 commit dbad9285b8a4267cc7e7e3c3fd84699ed406a13a
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/common/server.c
@@ -487,6 +487,10 @@ ssl_do_connect (server * serv)
char buf[128];

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)
{
char err_buf[128];

0 comments on commit dbad928

Please sign in to comment.