summaryrefslogtreecommitdiff
path: root/src/gmcerts.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gmcerts.h')
-rw-r--r--src/gmcerts.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/gmcerts.h b/src/gmcerts.h
index 04904d51..37419b9e 100644
--- a/src/gmcerts.h
+++ b/src/gmcerts.h
@@ -32,6 +32,7 @@ iDeclareTypeSerialization(GmIdentity)
32 32
33enum iGmIdentityFlags { 33enum iGmIdentityFlags {
34 temporary_GmIdentityFlag = 0x1, /* not saved persistently */ 34 temporary_GmIdentityFlag = 0x1, /* not saved persistently */
35 imported_GmIdentityFlag = 0x2, /* user-provided files */
35}; 36};
36 37
37struct Impl_GmIdentity { 38struct Impl_GmIdentity {
@@ -56,8 +57,6 @@ iDeclareTypeConstructionArgs(GmCerts, const char *saveDir)
56 57
57iBool checkTrust_GmCerts (iGmCerts *, iRangecc domain, const iTlsCertificate *cert); 58iBool checkTrust_GmCerts (iGmCerts *, iRangecc domain, const iTlsCertificate *cert);
58 59
59const iGmIdentity * identityForUrl_GmCerts (const iGmCerts *, const iString *url);
60
61/** 60/**
62 * Create a new self-signed TLS client certificate for identifying the user. 61 * Create a new self-signed TLS client certificate for identifying the user.
63 * @a commonName and the other name parameters are inserted in the subject field 62 * @a commonName and the other name parameters are inserted in the subject field
@@ -74,4 +73,9 @@ iGmIdentity * newIdentity_GmCerts (iGmCerts *, int flags, iDate validU
74 const iString *domain, const iString *org, 73 const iString *domain, const iString *org,
75 const iString *country); 74 const iString *country);
76 75
76void deleteIdentity_GmCerts (iGmCerts *, iGmIdentity *identity);
77
78iGmIdentity * identity_GmCerts (iGmCerts *, unsigned int id);
79const iGmIdentity * constIdentity_GmCerts (const iGmCerts *, unsigned int id);
80const iGmIdentity * identityForUrl_GmCerts (const iGmCerts *, const iString *url);
77const iPtrArray * identities_GmCerts (const iGmCerts *); 81const iPtrArray * identities_GmCerts (const iGmCerts *);