dirmngr: Load --hkp-cacert values into the certificate cache.
authorWerner Koch <wk@gnupg.org>
Tue, 21 Feb 2017 12:57:24 +0000 (13:57 +0100)
committerWerner Koch <wk@gnupg.org>
Tue, 21 Feb 2017 12:57:24 +0000 (13:57 +0100)
commitd1625a9a82b1e5d96bbbf2132c49c53108565ae1
tree91ae85fb1eeda69b2e2b7b8ccde66529e7259c44
parent9741aa24d9056b56cd5366ff5379bd8a3e6118df
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>
dirmngr/certcache.c
dirmngr/certcache.h
dirmngr/dirmngr.c