dirmngr: Fix signature checking.
authorWerner Koch <wk@gnupg.org>
Thu, 27 Oct 2016 18:35:28 +0000 (20:35 +0200)
committerWerner Koch <wk@gnupg.org>
Thu, 27 Oct 2016 18:35:28 +0000 (20:35 +0200)
commit5a1f6a0062488aaf345b1c73ba98a540e673d619
tree3b09e2e7f7ff5d7ca90c861b8e6505bc6d45c10c
parent8fced66be35db5ac2a6bfdb9bccb2c0e582d8256
dirmngr: Fix signature checking.

* dirmngr/server.c: Include cpparray.h.
(verify_swdb_parm_s): New.
(verify_swdb_status_cb): New.
(cmd_versioncheck): Use gpgv to correclty verify the signature.
Rename some variable to comply with GNU standards.
--

Relying on the return code of gpg is not a robust way to check
signatures.  We better use our dedicated tool.

Signed-off-by: Werner Koch <wk@gnupg.org>
dirmngr/server.c