diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2011-07-11 10:06:41 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2011-07-18 11:37:08 +0200 |
commit | c36f3b1351088b86845dd8981a7a9b13b971606e (patch) | |
tree | a039935a831f91fccf6e56ffb6e98e08bf27a513 /src/webpage.cpp | |
parent | WARNING: HISTORY_VERSION upgrade!! (diff) | |
download | rekonq-c36f3b1351088b86845dd8981a7a9b13b971606e.tar.xz |
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...
Diffstat (limited to 'src/webpage.cpp')
-rw-r--r-- | src/webpage.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
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<KIO::FileCopyJob *>(job)->destUrl(), _mimeType, rApp->mainWindow()); } + + +bool WebPage::hasSslValid() +{ + bool v = true; + QList<QSslCertificate> certList = _sslInfo.certificateChain(); + Q_FOREACH(const QSslCertificate &cert, certList) + { + v &= cert.isValid(); + } + return v; +} |