23 #include <tqstringlist.h>
24 #include "ksslcertificate.h"
25 #include "ksslsigners.h"
28 #include <dcopclient.h>
29 #include <kdatastream.h>
54 TQByteArray data, retval;
56 TQDataStream arg(data, IO_WriteOnly);
58 arg << ssl << email << code;
59 bool rc = dcc->call(
"kded",
"kssld",
60 "caAdd(TQString,bool,bool,bool)",
61 data, rettype, retval);
63 if (rc && rettype ==
"bool") {
64 TQDataStream retStream(retval, IO_ReadOnly);
75 TQByteArray data, retval;
77 TQDataStream arg(data, IO_WriteOnly);
78 bool rc = dcc->call(
"kded",
"kssld",
80 data, rettype, retval);
82 if (rc && rettype ==
"bool") {
83 TQDataStream retStream(retval, IO_ReadOnly);
99 TQByteArray data, retval;
101 TQDataStream arg(data, IO_WriteOnly);
103 bool rc = dcc->call(
"kded",
"kssld",
104 "caUseForSSL(TQString)",
105 data, rettype, retval);
107 if (rc && rettype ==
"bool") {
108 TQDataStream retStream(retval, IO_ReadOnly);
124 TQByteArray data, retval;
126 TQDataStream arg(data, IO_WriteOnly);
128 bool rc = dcc->call(
"kded",
"kssld",
129 "caUseForEmail(TQString)",
130 data, rettype, retval);
132 if (rc && rettype ==
"bool") {
133 TQDataStream retStream(retval, IO_ReadOnly);
149 TQByteArray data, retval;
151 TQDataStream arg(data, IO_WriteOnly);
153 bool rc = dcc->call(
"kded",
"kssld",
154 "caUseForCode(TQString)",
155 data, rettype, retval);
157 if (rc && rettype ==
"bool") {
158 TQDataStream retStream(retval, IO_ReadOnly);
174 TQByteArray data, retval;
176 TQDataStream arg(data, IO_WriteOnly);
178 bool rc = dcc->call(
"kded",
"kssld",
179 "caRemove(TQString)",
180 data, rettype, retval);
182 if (rc && rettype ==
"bool") {
183 TQDataStream retStream(retval, IO_ReadOnly);
195 TQByteArray data, retval;
197 TQDataStream arg(data, IO_WriteOnly);
198 bool rc = dcc->call(
"kded",
"kssld",
200 data, rettype, retval);
202 if (rc && rettype ==
"TQStringList") {
203 TQDataStream retStream(retval, IO_ReadOnly);
213 TQByteArray data, retval;
215 TQDataStream arg(data, IO_WriteOnly);
217 bool rc = dcc->call(
"kded",
"kssld",
218 "caGetCert(TQString)",
219 data, rettype, retval);
221 if (rc && rettype ==
"TQString") {
222 TQDataStream retStream(retval, IO_ReadOnly);
231 TQByteArray data, retval;
233 TQDataStream arg(data, IO_WriteOnly);
234 arg << subject << ssl << email << code;
235 bool rc = dcc->call(
"kded",
"kssld",
236 "caSetUse(TQString,bool,bool,bool)",
237 data, rettype, retval);
239 if (rc && rettype ==
"bool") {
240 TQDataStream retStream(retval, IO_ReadOnly);
TQString toString()
Convert this certificate to a string.
TQString getSubject() const
Get the subject of the certificate (X.509 map).
TQString getCert(TQString subject)
Get a signer certificate from the database.
bool regenerate()
Regenerate the signer-root file from the user's settings.
bool addCA(KSSLCertificate &cert, bool ssl, bool email, bool code)
Add a signer to the database.
bool useForEmail(KSSLCertificate &cert)
Determine if a certificate can be used for S/MIME certificate signing.
bool setUse(TQString subject, bool ssl, bool email, bool code)
Set the use of a particular entry in the certificate signer database.
KSSLSigners()
Construct a KSSLSigner object.
bool useForSSL(KSSLCertificate &cert)
Determine if a certificate can be used for SSL certificate signing.
TQStringList list()
List the signers in the database.
bool remove(KSSLCertificate &cert)
Remove a certificate signer from the database.
bool useForCode(KSSLCertificate &cert)
Determine if a certificate can be used for code certificate signing.
~KSSLSigners()
Destroy this KSSLSigner object.