aboutsummaryrefslogtreecommitdiffstats
path: root/dirmngr/crlcache.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2023-03-16 13:52:28 +0000
committerWerner Koch <[email protected]>2023-03-16 13:52:28 +0000
commitf5347fbc25aee7adce6244112aae639b0ff00ccd (patch)
treeeaf144e3170939ca569d23b6d87770ae237e23d5 /dirmngr/crlcache.h
parentgpgsm: New option --no-pretty-dn (diff)
downloadgnupg-f5347fbc25aee7adce6244112aae639b0ff00ccd.tar.gz
gnupg-f5347fbc25aee7adce6244112aae639b0ff00ccd.zip
dirmngr: Add framework to implement a fake CRL feature.
* dirmngr/fakecrl.c: New. * dirmngr/dirmngr.h (opt): Add fake_crl. * dirmngr/dirmngr.c (enum cmd_and_opt_values): Add oFakeCRL. (opts): Add "fake-crl" (parse_rereadable_options): Set opt.fake_crl. * dirmngr/server.c (cmd_isvalid): Take care of fakce CRLs.
Diffstat (limited to 'dirmngr/crlcache.h')
-rw-r--r--dirmngr/crlcache.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/dirmngr/crlcache.h b/dirmngr/crlcache.h
index 7db8f01cc..375943462 100644
--- a/dirmngr/crlcache.h
+++ b/dirmngr/crlcache.h
@@ -45,6 +45,7 @@ crl_sig_result_t;
struct crl_cache_entry_s;
typedef struct crl_cache_entry_s *crl_cache_entry_t;
+/*-- crlcache.c --*/
void crl_cache_init (void);
void crl_cache_deinit (void);
@@ -68,4 +69,11 @@ gpg_error_t crl_cache_load (ctrl_t ctrl, const char *filename);
gpg_error_t crl_cache_reload_crl (ctrl_t ctrl, ksba_cert_t cert);
+/*-- fakecrl.c --*/
+crl_cache_result_t fakecrl_isvalid (ctrl_t ctrl,
+ const char *issuer_hash,
+ const char *cert_id);
+
+
+
#endif /* CRLCACHE_H */