wks: Use dedicated type to convey user ids.
authorWerner Koch <wk@gnupg.org>
Mon, 18 Sep 2017 09:16:07 +0000 (11:16 +0200)
committerWerner Koch <wk@gnupg.org>
Mon, 18 Sep 2017 09:16:07 +0000 (11:16 +0200)
commit4e0696de897cac6a34d55a69d8889faf26f1a923
tree9f3c6e2b4bf1a23b85000ded5380f0d8f52b631b
parent006ca124ed95845d43af8c14d7ab2bc085b47b4c
wks: Use dedicated type to convey user ids.

* tools/gpg-wks.h (uidinfo_list_s, uidinfo_list_t): New.
* tools/wks-util.c (append_to_uidinfo_list): New.
(free_uidinfo_list): New.
(wks_list_key): Change arg r_mboxes to uidinfo_list_t.  Use
append_to_uidinfo_list.
* tools/gpg-wks-server.c (sserver_ctx_s): Replace strlist_t by
uidinfo_list_t.
(process_new_key): Ditto.
(check_and_publish): Ditto.
(command_receive_cb): Replace free_strlist by free_uidinfo_list.
* tools/gpg-wks-client.c (command_check): Replace strlist_t by
uidinfo_list_t.  Also print user id in verbose mode.

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