From 24da0f41e07b9cce6e7ad0173546db08547049eb Mon Sep 17 00:00:00 2001 From: Konrad Rosenbaum Date: Mon, 23 Jul 2012 08:57:55 +0200 Subject: [PATCH] fix: ignore SSL NoError; show smoke data path in about box --- src/iface/sslexception.cpp | 8 +++++++- src/main.cpp | 5 ++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/iface/sslexception.cpp b/src/iface/sslexception.cpp index 80457fc..6b8340e 100644 --- a/src/iface/sslexception.cpp +++ b/src/iface/sslexception.cpp @@ -38,6 +38,7 @@ MSslExceptions::MSslExceptions(QString p) QSslCertificate c(el.text().toAscii()); if(c.isNull())continue; sslexcept.append(QPair(c,e)); + qDebug()<<"Note: will ignore SSL exception of type"<&errs) { //stage 1: record unknown exceptions for(int i=0;ip(errs[i].certificate(),errs[i].error()); bool known=false; for(int j=0;j&errs) } //stage 2: compare to acceptable exceptions for(int i=0;ip(errs[i].certificate(),errs[i].error()); bool known=false; for(int j=0;j&errs) break; } } - if(!known)return false; + if(!known){ + qDebug()<<"Ooops! Non-ignored SSL exception of type"<<(int)errs[i].error()<<"certificate\n"<MagicSmoke v. %1" "© Konrad Rosenbaum, 2007-2011
" "© Peter Keller, 2007-2008
" "protected under the GNU GPL v.3 or at your option any newer

" "See also the MagicSmoke Homepage.

" - "This version was compiled from repository '%3' revision '%4'.") + "This version was compiled from repository '%3' revision '%4'.

" + "The current application data base path is '%5'.") .arg(MSInterface::staticVersionInfo(WOb::VersionHR)) //%1 .arg(HOMEPAGE_BASEURL) //%2 .arg(MSInterface::staticVersionInfo(WOb::VersionRootURL)) //%3 .arg(MSInterface::staticVersionInfo(WOb::VersionNumber)) //%4 + .arg(ifc?ifc->dataDir(): ::dataDir) ); mb.setStandardButtons(QMessageBox::Ok); mb.exec(); -- 1.7.2.5