summaryrefslogtreecommitdiff
path: root/src/gmcerts.h
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-08-24 16:24:40 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-08-24 16:24:40 +0300
commit42bb54ff55ae6e2e2c6bf8a5581d14c1289f0234 (patch)
tree9a4cd949264e98bf47032199779ee27bd1193f58 /src/gmcerts.h
parent455a635080a1c1c4b164af3060836f0d8c1b3c1c (diff)
SidebarWidget: List identities as sidebar items
Diffstat (limited to 'src/gmcerts.h')
-rw-r--r--src/gmcerts.h14
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
27iDeclareType(GmIdentity) 28iDeclareType(GmIdentity)
@@ -49,6 +50,19 @@ iBool checkTrust_GmCerts (iGmCerts *, iRangecc domain, const
49 50
50const iGmIdentity * identityForUrl_GmCerts (const iGmCerts *, const iString *url); 51const 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 */
52iGmIdentity * newIdentity_GmCerts (iGmCerts *, int flags, iDate validUntil, 64iGmIdentity * 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
68const iPtrArray * identities_GmCerts (const iGmCerts *);