diff options
author | Werner Koch <[email protected]> | 2017-02-21 12:57:24 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2017-02-21 12:57:24 +0000 |
commit | d1625a9a82b1e5d96bbbf2132c49c53108565ae1 (patch) | |
tree | 91ae85fb1eeda69b2e2b7b8ccde66529e7259c44 /dirmngr/certcache.h | |
parent | dirmngr: Load "sks-keyservers.netCA.pem" into the cache. (diff) | |
download | gnupg-d1625a9a82b1e5d96bbbf2132c49c53108565ae1.tar.gz gnupg-d1625a9a82b1e5d96bbbf2132c49c53108565ae1.zip |
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 <[email protected]>
Diffstat (limited to 'dirmngr/certcache.h')
-rw-r--r-- | dirmngr/certcache.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dirmngr/certcache.h b/dirmngr/certcache.h index fec2ff4fe..92529bf11 100644 --- a/dirmngr/certcache.h +++ b/dirmngr/certcache.h @@ -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); |