From d1625a9a82b1e5d96bbbf2132c49c53108565ae1 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 21 Feb 2017 13:57:24 +0100 Subject: 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 --- dirmngr/certcache.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dirmngr/certcache.h') 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); -- cgit v1.2.3