mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
dirmngr: Load --hkp-cacert values into the certificate cache.
* dirmngr/dirmngr.c (hkp_cacert_filenames): New var. (parse_rereadable_options): Store filenames from --hkp-cacert in the new var. (main, dirmngr_sighup_action): Pass that var to cert_cache_init. * dirmngr/certcache.c (cert_cache_init): Add arg 'hkp_cacert' and load those certs. (load_certs_from_file): Use autodetect so that PEM and DER encodings are possible. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
9741aa24d9
commit
d1625a9a82
3 changed files with 23 additions and 9 deletions
|
@ -31,7 +31,7 @@ enum {
|
|||
|
||||
|
||||
/* First time initialization of the certificate cache. */
|
||||
void cert_cache_init (void);
|
||||
void cert_cache_init (strlist_t hkp_cacerts);
|
||||
|
||||
/* Deinitialize the certificate cache. */
|
||||
void cert_cache_deinit (int full);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue