diff options
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; +} |