#3515: NetSSL_OpenSSL Testsuite: testInterop() and testProxy() fail due to changed certificate

This commit is contained in:
Günter Obiltschnig 2022-02-07 17:58:31 +01:00
parent dbfd27611b
commit b2d71905e3

View File

@ -36,7 +36,7 @@
#include <istream>
#include <ostream>
#include <sstream>
#include <iostream>
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);
}