4
0
mirror of https://github.com/QuasarApp/qca.git synced 2025-05-08 00:39:33 +00:00

identity result not plugin's job

svn path=/trunk/kdesupport/qca/; revision=407599
This commit is contained in:
Justin Karneges 2005-04-24 19:15:55 +00:00
parent db68d7059e
commit 7f1146c396
2 changed files with 0 additions and 15 deletions
include/QtCrypto
plugins/qca-openssl

@ -448,7 +448,6 @@ public:
virtual SessionInfo sessionInfo() const = 0;
virtual QByteArray unprocessed() = 0;
virtual TLS::IdentityResult peerIdentityResult() const = 0;
virtual Validity peerCertificateValidity() const = 0;
virtual CertificateChain peerCertificateChain() const = 0;
};

@ -3373,7 +3373,6 @@ public:
SSL_METHOD *method;
SSL_CTX *context;
BIO *rbio, *wbio;
QCA::TLS::IdentityResult ir;
QCA::Validity vr;
bool v_eof;
@ -3421,7 +3420,6 @@ public:
recvQueue.resize(0);
mode = Idle;
peercert = QCA::Certificate();
ir = QCA::TLS::NoCert;
vr = QCA::ErrorValidityUnknown;
v_eof = false;
}
@ -3688,11 +3686,6 @@ public:
return a;
}
virtual QCA::TLS::IdentityResult peerIdentityResult() const
{
return ir;
}
virtual QCA::Validity peerCertificateValidity() const
{
return vr;
@ -3786,20 +3779,13 @@ public:
int ret = SSL_get_verify_result(ssl);
if(ret == X509_V_OK)
{
ir = QCA::TLS::Valid;
code = QCA::ValidityGood;
}
else
{
ir = QCA::TLS::BadCert;
code = convert_verify_error(ret);
}
}
else
{
peercert = QCA::Certificate();
ir = QCA::TLS::NoCert;
}
vr = code;
}