mirror of
https://github.com/pocoproject/poco.git
synced 2025-07-04 17:40:01 +02:00
#3515: NetSSL_OpenSSL Testsuite: testInterop() and testProxy() fail due to changed certificate
This commit is contained in:
parent
dbfd27611b
commit
b2d71905e3
@ -36,7 +36,7 @@
|
|||||||
#include <istream>
|
#include <istream>
|
||||||
#include <ostream>
|
#include <ostream>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
using namespace Poco::Net;
|
using namespace Poco::Net;
|
||||||
using Poco::Util::Application;
|
using Poco::Util::Application;
|
||||||
@ -298,7 +298,7 @@ void HTTPSClientSessionTest::testInterop()
|
|||||||
StreamCopier::copyStream(rs, ostr);
|
StreamCopier::copyStream(rs, ostr);
|
||||||
std::string str(ostr.str());
|
std::string str(ostr.str());
|
||||||
assertTrue (str == "This is a test file for NetSSL.\n");
|
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);
|
StreamCopier::copyStream(rs, ostr);
|
||||||
std::string str(ostr.str());
|
std::string str(ostr.str());
|
||||||
assertTrue (str == "This is a test file for NetSSL.\n");
|
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user