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)
void clear()
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
QByteArray toHex() const
void _setAllKsslCaCertificates(KSslCertificateManager *cm, const QList< KSslCaCertificate > &certsIn)
Definition: ksslcertificatemanager.cpp:528
Definition: kmacroexpander_unix.cpp:34
bool remove()
#define K_GLOBAL_STATIC(TYPE, NAME)
This macro makes it easy to use non-POD types as global statics.
Definition: kglobal.h:221
const T & at(int i) const
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:1037
bool setCertificateBlacklisted(const QByteArray &certHash, bool isBlacklisted)
Definition: ksslcertificatemanager.cpp:420
QList< KSslCaCertificate > allCertificates() const
Definition: ksslcertificatemanager.cpp:388
QDBusConnection sessionBus()
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
const_iterator insert(const T &value)
QDBusReply< KSslCertificateRule > rule(const QSslCertificate &cert, const QString &hostName)
Definition: kssld_interface.h:83
void clearRule(const KSslCertificateRule &rule)
Definition: ksslcertificatemanager.cpp:478
int size() const
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:1112
Q_NOREPLY void setRule(const KSslCertificateRule &rule)
Definition: kssld_interface.h:59
QSet< QByteArray > knownCerts
Definition: ksslcertificatemanager_p.h:90
void append(const T &value)
QList< QSslCertificate > caCertificates() const
Definition: ksslcertificatemanager.cpp:497
KSslCertificateManagerPrivate()
Definition: ksslcertificatemanager.cpp:207
bool isEmpty() const
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
const char * constData() const
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
QByteArray toPem() const
QMutex certListMutex
Definition: ksslcertificatemanager_p.h:91
virtual bool open(QFlags< QIODevice::OpenModeFlag > mode)
iterator end()
bool addCertificate(const KSslCaCertificate &in)
Definition: ksslcertificatemanager.cpp:252
Definition: ksslcertificatemanager.h:37
QByteArray digest(QCryptographicHash::Algorithm algorithm) const
bool contains(const T &value) const
bool hasKey(const QString &key) const
Checks whether the key has an entry in this group.
Definition: kconfiggroup.cpp:1155
void setRejected(bool rejected)
Definition: ksslcertificatemanager.cpp:122
void setRule(const KSslCertificateRule &rule)
Definition: ksslcertificatemanager.cpp:472
QStringList entryList(QFlags< QDir::Filter > filters, QFlags< QDir::SortFlag > sort) const
~KSslCertificateManagerPrivate()
Definition: ksslcertificatemanager.cpp:219
QList< QSslCertificate > systemCaCertificates()
Q_NOREPLY void clearRule(const KSslCertificateRule &rule)
Definition: kssld_interface.h:67
bool isEmpty() const
qint64 write(const char *data, qint64 maxSize)
QString fromLatin1(const char *str, int size)
Definition: ktcpsocket.h:98
void setDefaultCaCertificates(const QList< QSslCertificate > &certificates)
void clear()
bool updateCertificateBlacklisted(const KSslCaCertificate &cert)
Definition: ksslcertificatemanager.cpp:414
QList< QSslCertificate > fromPath(const QString &path, QSsl::EncodingFormat format, QRegExp::PatternSyntax syntax)
iterator begin()
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-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:11 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:11 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.