wks: Move a few server functions to wks-util.
authorWerner Koch <wk@gnupg.org>
Tue, 4 Dec 2018 08:45:42 +0000 (09:45 +0100)
committerWerner Koch <wk@gnupg.org>
Tue, 4 Dec 2018 14:31:41 +0000 (15:31 +0100)
commit99094c992c20dd22971beb3527cfda109cd1df89
treee2d2d6e0efc3993d21cf788f06da7f9a0cee3af0
parent802b23289cc9b43a56e5032c2681eb21d4014784
wks: Move a few server functions to wks-util.

* tools/gpg-wks-server.c (write_to_file): Move to ...
* tools/wks-util.c: here.
* tools/gpg-wks-server.c (compute_hu_fname): Move to ...
* tools/wks-util.c (wks_compute_hu_fname): here.
* tools/gpg-wks-server.c (fname_from_userid): Move to ...
* tools/wks-util.c (wks_fname_from_userid): here.
* tools/gpg-wks-server.c (command_install_key): Move to ...
* tools/wks-util.c (wks_cmd_install_key): here and change caller.
* tools/gpg-wks-server.c (command_remove_key): Move to ...
* tools/wks-util.c (wks_cmd_remove_key): here and change callers.

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