21 #ifndef _KSSLCERTIFICATEHOME_H
22 #define _KSSLCERTIFICATEHOME_H
27 #include <tqstringlist.h>
29 #include <tdelibs_export.h>
31 class TDEIO_EXPORT KSSLCertificateHome {
36 enum KSSLAuthAction {AuthNone, AuthSend, AuthPrompt, AuthDont};
41 static KSSLPKCS12* getCertificateByHost(TQString host, TQString password, KSSLAuthAction* aa);
42 static KSSLPKCS12* getCertificateByName(TQString name, TQString password);
43 static KSSLPKCS12* getCertificateByName(TQString name);
44 static TQString getDefaultCertificateName(TQString host, KSSLAuthAction *aa = NULL);
45 static TQString getDefaultCertificateName(KSSLAuthAction *aa = NULL);
46 static KSSLPKCS12* getDefaultCertificate(TQString password, KSSLAuthAction *aa = NULL);
47 static KSSLPKCS12* getDefaultCertificate(KSSLAuthAction *aa = NULL);
48 static bool hasCertificateByName(TQString name);
54 static void setDefaultCertificate(TQString name,
bool send =
true,
bool prompt =
false);
55 static void setDefaultCertificate(
KSSLPKCS12 *cert,
bool send =
true,
bool prompt =
false);
61 static void setDefaultCertificate(TQString name, TQString host,
bool send =
true,
bool prompt =
false);
62 static void setDefaultCertificate(
KSSLPKCS12 *cert, TQString host,
bool send =
true,
bool prompt =
false);
68 static bool addCertificate(TQString filename, TQString password,
bool storePass =
false);
69 static bool addCertificate(
KSSLPKCS12 *cert, TQString passToStore = TQString::null);
75 static bool deleteCertificate(
const TQString &filename,
const TQString &password);
76 static bool deleteCertificate(
KSSLPKCS12 *cert);
77 static bool deleteCertificateByName(
const TQString &name);
82 static TQStringList getCertificateList();
85 class KSSLCertificateHomePrivate;
86 KSSLCertificateHomePrivate *d;