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>