From 674c3697f932cb5a2db6d3effc32baba0cb967ff Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Tue, 19 Aug 2014 08:17:59 +0200 Subject: [PATCH] =?UTF-8?q?Fixed=20hostname=20matching=20for=20OpenSSL=20(?= =?UTF-8?q?thanks=20to=20Elm=C3=BCSoft).?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../security/cert/openssl/X509Certificate_OpenSSL.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/vmime/security/cert/openssl/X509Certificate_OpenSSL.cpp b/src/vmime/security/cert/openssl/X509Certificate_OpenSSL.cpp index 70ff50c0..d8d68526 100644 --- a/src/vmime/security/cert/openssl/X509Certificate_OpenSSL.cpp +++ b/src/vmime/security/cert/openssl/X509Certificate_OpenSSL.cpp @@ -416,10 +416,10 @@ bool X509Certificate_OpenSSL::verifyHostName CONF_VALUE* cnf = sk_CONF_VALUE_value(val, j); if ((strcasecmp(cnf->name, "DNS") == 0 && - strcasecmp(cnf->value, hostname.c_str()) == 0) - || - (strncasecmp(cnf->name, "IP", 2) == 0 && - strcasecmp(cnf->value, hostname.c_str()) == 0)) + cnMatch(cnf->value, hostname.c_str())) + || + (strncasecmp(cnf->name, "IP", 2) == 0 && + cnMatch(cnf->value, hostname.c_str()))) { return true; }