[SCM] ktp-auth-handler packaging branch, master, updated. debian/15.12.1-2-282-g080758e

Maximiliano Curia maxy at moszumanska.debian.org
Fri May 27 23:59:23 UTC 2016


Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-auth-handler.git;a=commitdiff;h=23f12d6

The following commit has been merged in the master branch:
commit 23f12d661effb0f36e64467a1247525e6e9e17ca
Author: David Edmundson <kde at davidedmundson.co.uk>
Date:   Thu Aug 29 23:12:20 2013 +0100

    Verify entire certificate chain at once using inbuilt QCA method
    
    Reviewed-by: Sven Brauch
---
 tls-cert-verifier-op.cpp | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/tls-cert-verifier-op.cpp b/tls-cert-verifier-op.cpp
index ecf6917..b5bb19b 100644
--- a/tls-cert-verifier-op.cpp
+++ b/tls-cert-verifier-op.cpp
@@ -118,12 +118,9 @@ bool TlsCertVerifierOp::verifyCertChain(const QCA::CertificateChain& chain)
 
     // Find all errors then are not ignored by the rule
     QList<KSslError> errors;
-    Q_FOREACH(const QCA::Certificate &cert, chain) {
-        QCA::Validity validity = cert.validate(CACollection(), QCA::CertificateCollection(), QCA::UsageTLSClient, QCA::ValidateAll);
-        if (validity == QCA::ValidityGood) {
-            continue;
-        }
 
+    QCA::Validity validity = chain.validate(CACollection());
+    if (validity != QCA::ValidityGood) {
         KSslError::Error error = validityToError(validity);
         if (!rule.ignoredErrors().contains(error)) {
             errors << KSslError(error);

-- 
ktp-auth-handler packaging



More information about the pkg-kde-commits mailing list