From f4465ea1e3f7417622753eb038a95e16a97883a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Old=C5=99ich=20Jedli=C4=8Dka?= Date: Mon, 9 Jun 2014 10:11:53 +0200 Subject: [PATCH] Catch also NoAddressFoundException from DNS. The certificate validation might fail on NoAddressFoundException - if the hostname from certificate could not be translated to IP address. --- NetSSL_OpenSSL/src/X509Certificate.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/NetSSL_OpenSSL/src/X509Certificate.cpp b/NetSSL_OpenSSL/src/X509Certificate.cpp index 0df4baf8c..aacd873b9 100644 --- a/NetSSL_OpenSSL/src/X509Certificate.cpp +++ b/NetSSL_OpenSSL/src/X509Certificate.cpp @@ -124,6 +124,9 @@ bool X509Certificate::verify(const Poco::Crypto::X509Certificate& certificate, c } } } + catch (NoAddressFoundException&) + { + } catch (HostNotFoundException&) { }