mirror of
https://github.com/pocoproject/poco.git
synced 2025-03-29 11:09:42 +01:00
fix(NetSSL): SecureSocketImpl::peerCertificate() should just return certificate, not verify it
This commit is contained in:
parent
401bec5010
commit
68d12fdd52
@ -521,14 +521,9 @@ X509* SecureSocketImpl::peerCertificate() const
|
||||
X509* pCert = nullptr;
|
||||
|
||||
if (_pSSL)
|
||||
{
|
||||
pCert = ::SSL_get_peer_certificate(_pSSL);
|
||||
if (X509_V_OK != SSL_get_verify_result(_pSSL))
|
||||
throw CertificateValidationException("SecureSocketImpl::peerCertificate(): "
|
||||
"Certificate verification error " + Utility::getLastError());
|
||||
}
|
||||
|
||||
return pCert;
|
||||
return ::SSL_get_peer_certificate(_pSSL);
|
||||
else
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user