mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
dirmngr: Add FLUSHCRLs command
Summary: * dirmngr/crlcache.c (crl_cache_flush): Also deinit the cache. * dirmngr/server.c (hlp_flushcrls, cmd_flushcrls): New. (register_commands): Add FLUSHCRLS. -- This allows it to flush the CRL cache of a running dirmngr server. This can be useful to debug / analyze CRL issues. GnuPG-Bug-Id: T3967 Differential Revision: https://dev.gnupg.org/D469 Signed-off-by: Andre Heinecke <aheinecke@intevation.de>
This commit is contained in:
parent
10157b4179
commit
00321a025f
2 changed files with 18 additions and 1 deletions
|
@ -1250,13 +1250,15 @@ crl_cache_deinit (void)
|
|||
}
|
||||
|
||||
|
||||
/* Delete the cache from disk. Return 0 on success.*/
|
||||
/* Delete the cache from disk and memory. Return 0 on success.*/
|
||||
int
|
||||
crl_cache_flush (void)
|
||||
{
|
||||
int rc;
|
||||
|
||||
crl_cache_deinit ();
|
||||
rc = cleanup_cache_dir (0)? -1 : 0;
|
||||
crl_cache_init ();
|
||||
|
||||
return rc;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue