21#ifndef _INCLUDE_KSSLCCACHE_H
22#define _INCLUDE_KSSLCCACHE_H
26#include <tqstringlist.h>
27#include <tqdatetime.h>
29#include <tdelibs_export.h>
31class TDEIO_EXPORT KSSLCertificateCache {
34enum KSSLCertificatePolicy { Unknown, Reject, Accept, Prompt, Ambiguous };
44 KSSLCertificateCache();
45 ~KSSLCertificateCache();
47 void addCertificate(
KSSLCertificate& cert, KSSLCertificatePolicy policy,
48 bool permanent =
true);
58 KSSLCertificatePolicy getPolicyByCN(TQString& cn);
62 bool seenCN(TQString& cn);
65 bool removeByCN(TQString& cn);
70 bool modifyByCN(TQString& cn,
71 KSSLCertificateCache::KSSLCertificatePolicy policy,
76 KSSLCertificateCache::KSSLCertificatePolicy policy,
85 TQStringList getKDEKeyByEmail(
const TQString &email);
95 class KSSLCertificateCachePrivate;
96 KSSLCertificateCachePrivate *d;
98 void loadDefaultPolicies();
104TDEIO_EXPORT TQDataStream& operator<<(TQDataStream& s,
const KSSLCertificateCache::KSSLCertificatePolicy& p);
105TDEIO_EXPORT TQDataStream& operator>>(TQDataStream& s, KSSLCertificateCache::KSSLCertificatePolicy& p);