Changeset View
Changeset View
Standalone View
Standalone View
dirmngr/crlcache.c
| Show First 20 Lines • Show All 1,244 Lines • ▼ Show 20 Lines | crl_cache_deinit (void) | ||||
| if (current_cache) | if (current_cache) | ||||
| { | { | ||||
| release_cache (current_cache); | release_cache (current_cache); | ||||
| current_cache = NULL; | current_cache = NULL; | ||||
| } | } | ||||
| } | } | ||||
| /* Delete the cache from disk. Return 0 on success.*/ | /* Delete the cache from disk and memory. Return 0 on success.*/ | ||||
| int | int | ||||
| crl_cache_flush (void) | crl_cache_flush (void) | ||||
| { | { | ||||
| int rc; | int rc; | ||||
| crl_cache_deinit (); | |||||
| rc = cleanup_cache_dir (0)? -1 : 0; | rc = cleanup_cache_dir (0)? -1 : 0; | ||||
| crl_cache_init (); | |||||
| return rc; | return rc; | ||||
| } | } | ||||
| /* Check whether the certificate identified by ISSUER_HASH and | /* Check whether the certificate identified by ISSUER_HASH and | ||||
| SN/SNLEN is valid; i.e. not listed in our cache. With | SN/SNLEN is valid; i.e. not listed in our cache. With | ||||
| FORCE_REFRESH set to true, a new CRL will be retrieved even if the | FORCE_REFRESH set to true, a new CRL will be retrieved even if the | ||||
| ▲ Show 20 Lines • Show All 1,322 Lines • Show Last 20 Lines | |||||