wks: Send only the newest UID to the server.
authorWerner Koch <wk@gnupg.org>
Mon, 18 Sep 2017 10:52:20 +0000 (12:52 +0200)
committerWerner Koch <wk@gnupg.org>
Mon, 18 Sep 2017 10:52:20 +0000 (12:52 +0200)
commit7f7f5d06fa5aa3a3c5ab8d2e59ee76207bfdeaa0
tree24341aa29bd58424d584c46e8b9a8eda1bf135b4
parenta0035986a8615df056182bb9af775b8b7b22003d
wks: Send only the newest UID to the server.

* tools/wks-util.c (list_key_status_cb): Rename to key_status_cb.
(wks_filter_uid): New.
(wks_list_key): Allow FPR to be NULL.  Return an error if no
fingerprint was found.
* tools/gpg-wks-server.c (process_new_key)
(check_and_publish): Remove now useless extra check for FPR.
* tools/gpg-wks-client.c (command_check): Ditto.
(command_send): Filter out the newest uid.
--

This fixes the case of having several userids with all the the same
mailbox.  Now we use the latest user id created.  This patch is also a
prerequisite to automatically create a new user id for providers with
the mailbox-only policy.

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