Catch also NoAddressFoundException from DNS.

The certificate validation might fail on NoAddressFoundException - if the
hostname from certificate could not be translated to IP address.
This commit is contained in:
Oldřich Jedlička 2014-06-09 10:11:53 +02:00
parent b8a8b4b2ca
commit f4465ea1e3

View File

@ -124,6 +124,9 @@ bool X509Certificate::verify(const Poco::Crypto::X509Certificate& certificate, c
}
}
}
catch (NoAddressFoundException&)
{
}
catch (HostNotFoundException&)
{
}