fix: SecureSocket::secureConnect, uset SSL host name before connect
This commit is contained in:
parent
9b40bf2f9b
commit
dc76366a48
1 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue