From 91d5f42664759595ba554db9133d124fb0e80bdc Mon Sep 17 00:00:00 2001 From: Oliver Roberts Date: Thu, 14 Mar 2024 20:20:45 +0000 Subject: [PATCH] Set TLS Server Name Indication for secure connections (#724) --- src/tcp/ssl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tcp/ssl.c b/src/tcp/ssl.c index 13484116e..c0456dd4f 100644 --- a/src/tcp/ssl.c +++ b/src/tcp/ssl.c @@ -794,6 +794,8 @@ BOOL MakeSecureConnection(struct Connection *conn) BOOL errorState = FALSE; int res; + SSL_set_tlsext_host_name(conn->ssl, conn->server->hostname); + // 5) establish the ssl connection and take care of non-blocking IO D(DBF_NET, "connect SSL context %08lx", conn->ssl); STARTCLOCK(DBF_NET);