From 42bb54ff55ae6e2e2c6bf8a5581d14c1289f0234 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Mon, 24 Aug 2020 16:24:40 +0300 Subject: SidebarWidget: List identities as sidebar items --- src/gmcerts.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/gmcerts.h') 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. */ #pragma once +#include #include iDeclareType(GmIdentity) @@ -49,6 +50,19 @@ iBool checkTrust_GmCerts (iGmCerts *, iRangecc domain, const const iGmIdentity * identityForUrl_GmCerts (const iGmCerts *, const iString *url); +/** + * Create a new self-signed TLS client certificate for identifying the user. + * @a commonName and the other name parameters are inserted in the subject field + * of the certificate. + * + * @param flags Identity flags. A temporary identity is not saved persistently and + * will be erased when the application is shut down. + * @param validUntil Expiration date. Must be in the future. + * + * @returns Created identity. GmCerts retains ownership of returned object. + */ iGmIdentity * newIdentity_GmCerts (iGmCerts *, int flags, iDate validUntil, const iString *commonName, const iString *userId, const iString *org, const iString *country); + +const iPtrArray * identities_GmCerts (const iGmCerts *); -- cgit v1.2.3