From c36f3b1351088b86845dd8981a7a9b13b971606e Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Mon, 11 Jul 2011 10:06:41 +0200 Subject: SSL rewamp, one step to finish! These are last changes to clean up and improve SSL rekonq communications. It is yet missing a proper SSL errors API integration. You just need to wait for the next commit... --- src/webpage.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/webpage.cpp') diff --git a/src/webpage.cpp b/src/webpage.cpp index 9185a25b..95d7b6ae 100644 --- a/src/webpage.cpp +++ b/src/webpage.cpp @@ -763,3 +763,15 @@ void WebPage::copyToTempFileResult(KJob* job) else (void)KRun::runUrl(static_cast(job)->destUrl(), _mimeType, rApp->mainWindow()); } + + +bool WebPage::hasSslValid() +{ + bool v = true; + QList certList = _sslInfo.certificateChain(); + Q_FOREACH(const QSslCertificate &cert, certList) + { + v &= cert.isValid(); + } + return v; +} -- cgit v1.2.1