Changeset View
Changeset View
Standalone View
Standalone View
src/core/ksslcertificatemanager.cpp
Show First 20 Lines • Show All 196 Lines • ▼ Show 20 Line(s) | |||||
197 | KSslCertificateManagerPrivate::KSslCertificateManagerPrivate() | 197 | KSslCertificateManagerPrivate::KSslCertificateManagerPrivate() | ||
198 | : config(QStringLiteral("ksslcertificatemanager"), KConfig::SimpleConfig), | 198 | : config(QStringLiteral("ksslcertificatemanager"), KConfig::SimpleConfig), | ||
199 | iface(new org::kde::KSSLDInterface(QStringLiteral("org.kde.kssld5"), | 199 | iface(new org::kde::KSSLDInterface(QStringLiteral("org.kde.kssld5"), | ||
200 | QStringLiteral("/modules/kssld"), | 200 | QStringLiteral("/modules/kssld"), | ||
201 | QDBusConnection::sessionBus())), | 201 | QDBusConnection::sessionBus())), | ||
202 | isCertListLoaded(false), | 202 | isCertListLoaded(false), | ||
203 | userCertDir(QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) + QStringLiteral("/kssl/userCaCertificates/")) | 203 | userCertDir(QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) + QStringLiteral("/kssl/userCaCertificates/")) | ||
204 | { | 204 | { | ||
205 | // set Qt's set to empty; this is protected by the lock in K_GLOBAL_STATIC. | | |||
206 | QSslSocket::setDefaultCaCertificates(QList<QSslCertificate>()); | | |||
207 | } | 205 | } | ||
208 | 206 | | |||
209 | KSslCertificateManagerPrivate::~KSslCertificateManagerPrivate() | 207 | KSslCertificateManagerPrivate::~KSslCertificateManagerPrivate() | ||
210 | { | 208 | { | ||
211 | delete iface; | 209 | delete iface; | ||
212 | iface = nullptr; | 210 | iface = nullptr; | ||
213 | } | 211 | } | ||
214 | 212 | | |||
▲ Show 20 Lines • Show All 286 Lines • Show Last 20 Lines |