fix: SecureSocket::secureConnect, uset SSL host name before connect
This commit is contained in:
committed by
Chris Rizzitello
parent
9b40bf2f9b
commit
dc76366a48
@ -468,9 +468,9 @@ int SecureSocket::secureConnect(int socket)
|
|||||||
|
|
||||||
LOG_DEBUG2("connecting secure socket");
|
LOG_DEBUG2("connecting secure socket");
|
||||||
|
|
||||||
// TODO: S1-1766, enable hostname verification.
|
// enable hostname verification.
|
||||||
// the cert will need to be installed in the trusted store on the client.
|
const auto name = Settings::value(Settings::Core::ScreenName).toString().toStdString();
|
||||||
// we'll probably need to find a way of securely transferring the cert.
|
SSL_set1_host(m_ssl->m_ssl, name.c_str());
|
||||||
int r = SSL_connect(m_ssl->m_ssl);
|
int r = SSL_connect(m_ssl->m_ssl);
|
||||||
|
|
||||||
static int retry;
|
static int retry;
|
||||||
|
|||||||
Reference in New Issue
Block a user