From b2d71905e332cd53f987e13c0497fc29ee3d5ee0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=BCnter=20Obiltschnig?= Date: Mon, 7 Feb 2022 17:58:31 +0100 Subject: [PATCH] #3515: NetSSL_OpenSSL Testsuite: testInterop() and testProxy() fail due to changed certificate --- NetSSL_OpenSSL/testsuite/src/HTTPSClientSessionTest.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/NetSSL_OpenSSL/testsuite/src/HTTPSClientSessionTest.cpp b/NetSSL_OpenSSL/testsuite/src/HTTPSClientSessionTest.cpp index df0f35e5d3..e68d37b10e 100644 --- a/NetSSL_OpenSSL/testsuite/src/HTTPSClientSessionTest.cpp +++ b/NetSSL_OpenSSL/testsuite/src/HTTPSClientSessionTest.cpp @@ -36,7 +36,7 @@ #include #include #include - +#include using namespace Poco::Net; using Poco::Util::Application; @@ -298,7 +298,7 @@ void HTTPSClientSessionTest::testInterop() StreamCopier::copyStream(rs, ostr); std::string str(ostr.str()); assertTrue (str == "This is a test file for NetSSL.\n"); - assertTrue (cert.commonName() == "secure.appinf.com" || cert.commonName() == "*.appinf.com"); + assertTrue (cert.commonName().find(".appinf.com") != std::string::npos); } @@ -319,7 +319,7 @@ void HTTPSClientSessionTest::testProxy() StreamCopier::copyStream(rs, ostr); std::string str(ostr.str()); assertTrue (str == "This is a test file for NetSSL.\n"); - assertTrue (cert.commonName() == "secure.appinf.com" || cert.commonName() == "*.appinf.com"); + assertTrue (cert.commonName().find(".appinf.com") != std::string::npos); }