mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-23 08:31:43 +02:00
code cleanup; fix move ctors and assignment
This commit is contained in:
@@ -33,7 +33,7 @@ namespace Net {
|
||||
|
||||
X509Certificate::X509Certificate(std::istream& istr):
|
||||
Poco::Crypto::X509Certificate(istr)
|
||||
{
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -91,7 +91,7 @@ X509Certificate& X509Certificate::operator = (const X509Certificate& cert)
|
||||
|
||||
X509Certificate& X509Certificate::operator = (X509Certificate&& cert) noexcept
|
||||
{
|
||||
Poco::Crypto::X509Certificate::operator = (cert);
|
||||
Poco::Crypto::X509Certificate::operator = (std::move(cert));
|
||||
return *this;
|
||||
}
|
||||
|
||||
@@ -108,7 +108,7 @@ bool X509Certificate::verify(const std::string& hostName) const
|
||||
|
||||
|
||||
bool X509Certificate::verify(const Poco::Crypto::X509Certificate& certificate, const std::string& hostName)
|
||||
{
|
||||
{
|
||||
#if OPENSSL_VERSION_NUMBER < 0x10002000L
|
||||
std::string commonName;
|
||||
std::set<std::string> dnsNames;
|
||||
|
Reference in New Issue
Block a user