[Pkg-owncloud-commits] [owncloud-client] 21/47: more verbose ssl error logging

Sandro Knauß hefee-guest at moszumanska.debian.org
Mon Feb 17 18:06:33 UTC 2014


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository owncloud-client.

commit f79ecfe00189f54142fcce1157f097e96fa6f709
Author: Daniel Molkentin <danimo at owncloud.com>
Date:   Sat Feb 8 00:29:12 2014 +0100

    more verbose ssl error logging
---
 src/mirall/account.cpp | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/mirall/account.cpp b/src/mirall/account.cpp
index 93022e5..f15f848 100644
--- a/src/mirall/account.cpp
+++ b/src/mirall/account.cpp
@@ -301,7 +301,11 @@ void Account::setState(int state)
 void Account::slotHandleErrors(QNetworkReply *reply , QList<QSslError> errors)
 {
     NetworkJobTimeoutPauser pauser(reply);
-    qDebug() << "SSL-Warnings happened for url " << reply->url().toString();
+    qDebug() << "SSL-Errors happened for url " << reply->url().toString();
+    foreach(const QSslError &error, errors) {
+       qDebug() << "\tError in " << error.certificate() << ":"
+                << error.errorString() << "("<< error.error()<< ")";
+    }
 
     if( _treatSslErrorsAsFailure ) {
         // User decided once not to trust. Honor this decision.
@@ -317,7 +321,7 @@ void Account::slotHandleErrors(QNetworkReply *reply , QList<QSslError> errors)
             QSslSocket::addDefaultCaCertificates(approvedCerts);
             addApprovedCerts(approvedCerts);
             // all ssl certs are known and accepted. We can ignore the problems right away.
-            qDebug() << "Certs are already known and trusted, Warnings are not valid.";
+            qDebug() << "Certs are already known and trusted, Errors are not valid.";
             reply->ignoreSslErrors();
         } else {
             _treatSslErrorsAsFailure = true;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list