KDECore
ksslcertificatemanager.cpp
Go to the documentation of this file.
44 #very.old.com = ExpireUTC 2008-08-20T18:22:14, TooWeakEncryption <- not actually planned to implement
51 #* = ExpireUTC 9999-12-31T23:59:59, Reject #we know that something is wrong with that certificate
169 QList<KSslError::Error> KSslCertificateRule::filterErrors(const QList<KSslError::Error> &errors) const
213 userCertDir(KGlobal::dirs()->saveLocation("data", QString::fromLatin1("kssl/userCaCertificates/")))
396 foreach (const QSslCertificate &cert, QSslCertificate::fromPath(userCertDir + QLatin1String("*"),
453 if (!QDBusConnection::sessionBus().interface()->isServiceRegistered(QString::fromLatin1("org.kde.kded"))) {
516 QList<KSslError::Error> KSslCertificateManager::nonIgnorableErrors(const QList<KSslError::Error> &/*e*/)
528 void _setAllKsslCaCertificates(KSslCertificateManager *cm, const QList<KSslCaCertificate> &certsIn)
QSslCertificate certificate() const
Definition: ksslcertificatemanager.cpp:98
void setAllCertificates(const QList< KSslCaCertificate > &certsIn)
Definition: ksslcertificatemanager.cpp:345
void loadDefaultCaCertificates()
Definition: ksslcertificatemanager.cpp:225
QList< KSslCaCertificate > _allKsslCaCertificates(KSslCertificateManager *cm)
Definition: ksslcertificatemanager.cpp:523
org::kde::KSSLDInterface * iface
Definition: ksslcertificatemanager_p.h:83
void _setAllKsslCaCertificates(KSslCertificateManager *cm, const QList< KSslCaCertificate > &certsIn)
Definition: ksslcertificatemanager.cpp:528
Definition: kmacroexpander_unix.cpp:34
#define K_GLOBAL_STATIC(TYPE, NAME)
This macro makes it easy to use non-POD types as global statics.
Definition: kglobal.h:221
bool isCertListLoaded
Definition: ksslcertificatemanager_p.h:92
static QList< QSslCertificate > deduplicate(const QList< QSslCertificate > &certs)
Definition: ksslcertificatemanager.cpp:193
static KSslCertificateManager * self()
Definition: ksslcertificatemanager.cpp:466
KConfigGroup group(const QByteArray &group)
Returns an object for the named subgroup.
Definition: kconfigbase.cpp:44
void writeEntry(const QString &key, const QVariant &value, WriteConfigFlags pFlags=Normal)
Writes a value to the configuration object.
Definition: kconfiggroup.cpp:1038
bool setCertificateBlacklisted(const QByteArray &certHash, bool isBlacklisted)
Definition: ksslcertificatemanager.cpp:420
QList< KSslCaCertificate > allCertificates() const
Definition: ksslcertificatemanager.cpp:388
QList< KSslError::Error > ignoredErrors() const
Definition: ksslcertificatemanager.cpp:163
KSslCertificateRule rule(const QSslCertificate &cert, const QString &hostName) const
Definition: ksslcertificatemanager.cpp:490
KSslCertificateRule(const QSslCertificate &cert=QSslCertificate(), const QString &hostName=QString())
Definition: ksslcertificatemanager.cpp:69
void setIgnoredErrors(const QList< KSslError::Error > &errors)
Definition: ksslcertificatemanager.cpp:144
QDBusReply< KSslCertificateRule > rule(const QSslCertificate &cert, const QString &hostName)
Definition: kssld_interface.h:83
void clearRule(const KSslCertificateRule &rule)
Definition: ksslcertificatemanager.cpp:478
bool isErrorIgnored(KSslError::Error error) const
Definition: ksslcertificatemanager.cpp:134
static bool certLessThan(const KSslCaCertificate &cacert1, const KSslCaCertificate &cacert2)
Definition: ksslcertificatemanager.cpp:334
void deleteEntry(const QString &pKey, WriteConfigFlags pFlags=Normal)
Deletes the entry specified by pKey in the current group.
Definition: kconfiggroup.cpp:1113
Q_NOREPLY void setRule(const KSslCertificateRule &rule)
Definition: kssld_interface.h:59
QSet< QByteArray > knownCerts
Definition: ksslcertificatemanager_p.h:90
QList< QSslCertificate > caCertificates() const
Definition: ksslcertificatemanager.cpp:497
KSslCertificateManagerPrivate()
Definition: ksslcertificatemanager.cpp:207
KSslCertificateRule & operator=(const KSslCertificateRule &other)
Definition: ksslcertificatemanager.cpp:91
void setExpiryDateTime(const QDateTime &dateTime)
Definition: ksslcertificatemanager.cpp:110
QDateTime expiryDateTime() const
Definition: ksslcertificatemanager.cpp:116
bool removeCertificate(const KSslCaCertificate &old)
Definition: ksslcertificatemanager.cpp:285
~KSslCertificateRule()
Definition: ksslcertificatemanager.cpp:85
QList< QSslCertificate > defaultCaCertificates
Definition: ksslcertificatemanager_p.h:87
QString userCertDir
Definition: ksslcertificatemanager_p.h:93
Definition: ksslcertificatemanager_p.h:28
static KSslCertificateManagerPrivate * get(KSslCertificateManager *q)
Definition: ksslcertificatemanager_p.h:68
QMutex certListMutex
Definition: ksslcertificatemanager_p.h:91
bool addCertificate(const KSslCaCertificate &in)
Definition: ksslcertificatemanager.cpp:252
Definition: ksslcertificatemanager.h:37
bool hasKey(const QString &key) const
Checks whether the key has an entry in this group.
Definition: kconfiggroup.cpp:1156
void setRejected(bool rejected)
Definition: ksslcertificatemanager.cpp:122
void setRule(const KSslCertificateRule &rule)
Definition: ksslcertificatemanager.cpp:472
~KSslCertificateManagerPrivate()
Definition: ksslcertificatemanager.cpp:219
Q_NOREPLY void clearRule(const KSslCertificateRule &rule)
Definition: kssld_interface.h:67
Definition: ktcpsocket.h:98
bool updateCertificateBlacklisted(const KSslCaCertificate &cert)
Definition: ksslcertificatemanager.cpp:414
QList< KSslError::Error > filterErrors(const QList< KSslError::Error > &errors) const
Definition: ksslcertificatemanager.cpp:169
static QList< KSslError > nonIgnorableErrors(const QList< KSslError > &)
Definition: ksslcertificatemanager.cpp:508
::OrgKdeKSSLDInterface KSSLDInterface
Definition: ksslcertificatemanager_p.h:59
static OrgKdeKLauncherInterface * klauncher()
Returns the D-Bus interface of the service launcher.
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:47:09 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:47:09 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.