From bb53ff49396cae88836ff391fd20589a687ae83f Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Sun, 8 Nov 2020 13:45:51 +0200 Subject: Manually trusting a server certificate --- src/gmcerts.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/gmcerts.h') diff --git a/src/gmcerts.h b/src/gmcerts.h index f0ed37b5..2fd1023a 100644 --- a/src/gmcerts.h +++ b/src/gmcerts.h @@ -60,7 +60,8 @@ iDeclareTypeConstructionArgs(GmCerts, const char *saveDir) typedef iBool (*iGmCertsIdentityFilterFunc)(void *context, const iGmIdentity *); iBool checkTrust_GmCerts (iGmCerts *, iRangecc domain, const iTlsCertificate *cert); - +void setTrusted_GmCerts (iGmCerts *, iRangecc domain, const iBlock *fingerprint, + const iDate *validUntil); /** * 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 -- cgit v1.2.3