From dc76366a487a9da325ecbc00bf4cb2d95914e87d Mon Sep 17 00:00:00 2001 From: sithlord48 Date: Mon, 1 Dec 2025 22:15:58 -0500 Subject: [PATCH] fix: SecureSocket::secureConnect, uset SSL host name before connect --- src/lib/net/SecureSocket.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/net/SecureSocket.cpp b/src/lib/net/SecureSocket.cpp index 95b8ffc56..221da3459 100644 --- a/src/lib/net/SecureSocket.cpp +++ b/src/lib/net/SecureSocket.cpp @@ -468,9 +468,9 @@ int SecureSocket::secureConnect(int socket) LOG_DEBUG2("connecting secure socket"); - // TODO: S1-1766, enable hostname verification. - // the cert will need to be installed in the trusted store on the client. - // we'll probably need to find a way of securely transferring the cert. + // enable hostname verification. + const auto name = Settings::value(Settings::Core::ScreenName).toString().toStdString(); + SSL_set1_host(m_ssl->m_ssl, name.c_str()); int r = SSL_connect(m_ssl->m_ssl); static int retry;