mirror of
https://github.com/pocoproject/poco.git
synced 2025-11-10 16:37:43 +01:00
#3191: Fixing a bug in the NetSSL_Win module (Host name verification failed error)
This commit is contained in:
@@ -726,7 +726,7 @@ void SecureSocketImpl::connectSSL(bool completeHandshake)
|
||||
|
||||
if (_peerHostName.empty())
|
||||
{
|
||||
_peerHostName = _pSocket->address().host().toString();
|
||||
_peerHostName = _pSocket->peerAddress().host().toString();
|
||||
}
|
||||
|
||||
initClientContext();
|
||||
@@ -1548,7 +1548,7 @@ void SecureSocketImpl::stateIllegal()
|
||||
|
||||
void SecureSocketImpl::stateConnected()
|
||||
{
|
||||
_peerHostName = _pSocket->address().host().toString();
|
||||
_peerHostName = _pSocket->peerAddress().host().toString();
|
||||
initClientContext();
|
||||
performInitialClientHandshake();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user