fix: SecureSocket::secureConnect, uset SSL host name before connect

This commit is contained in:
sithlord48
2025-12-01 22:15:58 -05:00
committed by Chris Rizzitello
parent 9b40bf2f9b
commit dc76366a48

View File

@ -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;