diff options
Diffstat (limited to 'src/gmcerts.h')
-rw-r--r-- | src/gmcerts.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/gmcerts.h b/src/gmcerts.h index 35beca7c..1730ca8e 100644 --- a/src/gmcerts.h +++ b/src/gmcerts.h | |||
@@ -23,6 +23,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ | |||
23 | #pragma once | 23 | #pragma once |
24 | 24 | ||
25 | #include <the_Foundation/ptrarray.h> | 25 | #include <the_Foundation/ptrarray.h> |
26 | #include <the_Foundation/stringset.h> | ||
26 | #include <the_Foundation/tlsrequest.h> | 27 | #include <the_Foundation/tlsrequest.h> |
27 | 28 | ||
28 | iDeclareType(GmIdentity) | 29 | iDeclareType(GmIdentity) |
@@ -34,16 +35,21 @@ enum iGmIdentityFlags { | |||
34 | }; | 35 | }; |
35 | 36 | ||
36 | struct Impl_GmIdentity { | 37 | struct Impl_GmIdentity { |
37 | // iString fileName; | ||
38 | iBlock fingerprint; | 38 | iBlock fingerprint; |
39 | iTlsCertificate *cert; | 39 | iTlsCertificate *cert; |
40 | iSortedArray useUrls; /* Strings */ | 40 | iStringSet *useUrls; |
41 | iChar icon; | 41 | iChar icon; |
42 | iString notes; /* private, local usage notes */ | 42 | iString notes; /* private, local usage notes */ |
43 | int flags; | 43 | int flags; |
44 | }; | 44 | }; |
45 | 45 | ||
46 | iBool isUsed_GmIdentity (const iGmIdentity *); | 46 | iBool isUsed_GmIdentity (const iGmIdentity *); |
47 | iBool isUsedOn_GmIdentity (const iGmIdentity *, const iString *url); | ||
48 | |||
49 | void setUse_GmIdentity (iGmIdentity *, const iString *url, iBool use); | ||
50 | void clearUse_GmIdentity (iGmIdentity *); | ||
51 | |||
52 | /*----------------------------------------------------------------------------------------------*/ | ||
47 | 53 | ||
48 | iDeclareType(GmCerts) | 54 | iDeclareType(GmCerts) |
49 | iDeclareTypeConstructionArgs(GmCerts, const char *saveDir) | 55 | iDeclareTypeConstructionArgs(GmCerts, const char *saveDir) |