Skip to content
This repository has been archived by the owner on Feb 10, 2024. It is now read-only.

Commit

Permalink
TLS: Set SNI hostname before connect
Browse files Browse the repository at this point in the history
  • Loading branch information
moparisthebest committed Sep 11, 2015
1 parent 73636a0 commit dbad928
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/common/server.c
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit dbad928

Please sign in to comment.