dirmngr: Add command to only load the swdb.
authorWerner Koch <wk@gnupg.org>
Wed, 16 Nov 2016 20:22:39 +0000 (21:22 +0100)
committerWerner Koch <wk@gnupg.org>
Wed, 16 Nov 2016 20:22:39 +0000 (21:22 +0100)
commit52c10a280af6ce06eb1732ff35b095f2b8d24b9f
tree10f64c25330efed5c82f3574cad270ee2f9a5af8
parent4839e6d002a8ad1f7d3260792c3c9641e258f342
dirmngr: Add command to only load the swdb.

* dirmngr/loadswdb.c: New.
* dirmngr/Makefile.am (dirmngr_SOURCES): Add that file.
* dirmngr/server.c: Remove includes cpparray.h and exectool.h.
(cmd_loadswdb): New.
(parse_version_number,parse_version_string): Remove.
(my_mktmpdir, cmp_version): Remove.
(fetch_into_tmpdir): Remove.
(struct verify_swdb_parm_s): Remove.
(verify_swdb_status_cb): Remove.
(cmd_versioncheck): Remove.
(register_commands): Register LOADSWDB.  Remove VERSIONCHECK.
--

This change is required to to the new design where gpgconf does the
version check w/o network access and only dirmngr is responsible for
getting the swdb.

In the next installment the loading will be triggered as needed.

Signed-off-by: Werner Koch <wk@gnupg.org>
dirmngr/Makefile.am
dirmngr/dirmngr.h
dirmngr/loadswdb.c [new file with mode: 0644]
dirmngr/server.c