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