tools: Move a function from gpg-wks-server to wks-util.c.
authorWerner Koch <wk@gnupg.org>
Thu, 8 Dec 2016 15:11:42 +0000 (16:11 +0100)
committerWerner Koch <wk@gnupg.org>
Thu, 8 Dec 2016 15:59:12 +0000 (16:59 +0100)
commitc3138decd77d788906885b638b344d0d1faf32c0
treeed9f6158e35282b441a3b138a1d8166072803b73
parenta2bedc8ac6fcdcd1de0a9fa3d540006481387dff
tools: Move a function from gpg-wks-server to wks-util.c.

* tools/gpg-wks-server.c (list_key_status_cb): Remove.
(list_key): Move to ...
* tools/wks-util.c (wks_list_key): here and rename.  Add new args
R_FPR and R_MBOXES and remove the CTX.
(list_key_status_cb): New.
* tools/wks-util.c: Include ccparray.h, exectool.h, and mbox-util.h.
* tools/gpg-wks-server.c (process_new_key): Replace list_key by
wks_list_key.
(check_and_publish): Ditto.

Signed-off-by: Werner Koch <wk@gnupg.org>
tools/gpg-wks-server.c
tools/gpg-wks.h
tools/wks-util.c