summaryrefslogtreecommitdiffstats
path: root/src/core/api/qwebengineprofile.cpp
diff options
context:
space:
mode:
authorKai Uwe Broulik <kai.uwe.broulik@basyskom.com>2025-05-20 08:29:58 +0200
committerKai Uwe Broulik <kai.uwe.broulik@basyskom.com>2025-05-27 09:16:17 +0200
commit671afae06e9f9d228e9563c7c60a31456d2b2741 (patch)
tree700fc0846fb05b93bc126ddf20962cd7211140c8 /src/core/api/qwebengineprofile.cpp
parent5c6200c971b5478c08023f4233f248f70e09e3d7 (diff)
Add API for providing additional CA certificates
This allows to provide additional certificates that are considered when verifying a certificate. This is done by the cert verifier downstream of the platform-specific cert store. Fixes: QTBUG-50586 Change-Id: Ie90547f1013f22f994aaff536fadf906a44a88ef Reviewed-by: Moss Heim <moss.heim@qt.io>
Diffstat (limited to 'src/core/api/qwebengineprofile.cpp')
-rw-r--r--src/core/api/qwebengineprofile.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/core/api/qwebengineprofile.cpp b/src/core/api/qwebengineprofile.cpp
index 4a26703b6..ceeff460a 100644
--- a/src/core/api/qwebengineprofile.cpp
+++ b/src/core/api/qwebengineprofile.cpp
@@ -912,6 +912,19 @@ QWebEngineClientCertificateStore *QWebEngineProfile::clientCertificateStore()
}
/*!
+ \since 6.10
+
+ Returns additional trusted certificates in this profile's CA certificate database.
+
+ \sa QWebEngineProfileBuilder::setAdditionalTrustedCertificates()
+*/
+QList<QSslCertificate> QWebEngineProfile::additionalTrustedCertificates() const
+{
+ Q_D(const QWebEngineProfile);
+ return d->profileAdapter()->additionalTrustedCertificates();
+}
+
+/*!
* Requests an icon for a previously loaded page with this profile from the database. Each profile
* has its own icon database and it is stored in the persistent storage thus the stored icons
* can be accessed without network connection too. The icon must be previously loaded to be