Skip to content

Commit

Permalink
#3515: NetSSL_OpenSSL Testsuite: testInterop() and testProxy() fail d…
Browse files Browse the repository at this point in the history
…ue to changed certificate
  • Loading branch information
obiltschnig committed Feb 7, 2022
1 parent dbfd276 commit b2d7190
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions NetSSL_OpenSSL/testsuite/src/HTTPSClientSessionTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
#include <istream>
#include <ostream>
#include <sstream>

#include <iostream>

using namespace Poco::Net;
using Poco::Util::Application;
Expand Down Expand Up @@ -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);
}


Expand All @@ -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);
}


Expand Down

0 comments on commit b2d7190

Please sign in to comment.