diff options
Diffstat (limited to 'src/gmcerts.h')
-rw-r--r-- | src/gmcerts.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/gmcerts.h b/src/gmcerts.h index 6f34e5dd..32a383be 100644 --- a/src/gmcerts.h +++ b/src/gmcerts.h | |||
@@ -22,6 +22,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ | |||
22 | 22 | ||
23 | #pragma once | 23 | #pragma once |
24 | 24 | ||
25 | #include <the_Foundation/ptrarray.h> | ||
25 | #include <the_Foundation/tlsrequest.h> | 26 | #include <the_Foundation/tlsrequest.h> |
26 | 27 | ||
27 | iDeclareType(GmIdentity) | 28 | iDeclareType(GmIdentity) |
@@ -49,6 +50,19 @@ iBool checkTrust_GmCerts (iGmCerts *, iRangecc domain, const | |||
49 | 50 | ||
50 | const iGmIdentity * identityForUrl_GmCerts (const iGmCerts *, const iString *url); | 51 | const iGmIdentity * identityForUrl_GmCerts (const iGmCerts *, const iString *url); |
51 | 52 | ||
53 | /** | ||
54 | * Create a new self-signed TLS client certificate for identifying the user. | ||
55 | * @a commonName and the other name parameters are inserted in the subject field | ||
56 | * of the certificate. | ||
57 | * | ||
58 | * @param flags Identity flags. A temporary identity is not saved persistently and | ||
59 | * will be erased when the application is shut down. | ||
60 | * @param validUntil Expiration date. Must be in the future. | ||
61 | * | ||
62 | * @returns Created identity. GmCerts retains ownership of returned object. | ||
63 | */ | ||
52 | iGmIdentity * newIdentity_GmCerts (iGmCerts *, int flags, iDate validUntil, | 64 | iGmIdentity * newIdentity_GmCerts (iGmCerts *, int flags, iDate validUntil, |
53 | const iString *commonName, const iString *userId, | 65 | const iString *commonName, const iString *userId, |
54 | const iString *org, const iString *country); | 66 | const iString *org, const iString *country); |
67 | |||
68 | const iPtrArray * identities_GmCerts (const iGmCerts *); | ||