mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-28 03:20:11 +01:00
* Allows SecureStreamSocket::attach to be used in server connections
* Move order of condition for isLocalHost in peer certificate verification, to skip DNS lookup if not needed
This commit is contained in:
committed by
Rangel Reale
parent
67b206f663
commit
21f2e115eb
@@ -358,7 +358,7 @@ long SecureSocketImpl::verifyPeerCertificateImpl(const std::string& hostName)
|
||||
{
|
||||
Context::VerificationMode mode = _pContext->verificationMode();
|
||||
if (mode == Context::VERIFY_NONE || !_pContext->extendedCertificateVerificationEnabled() ||
|
||||
(isLocalHost(hostName) && mode != Context::VERIFY_STRICT))
|
||||
(mode != Context::VERIFY_STRICT && isLocalHost(hostName)))
|
||||
{
|
||||
return X509_V_OK;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user