wks: Support alternative submission address.
authorWerner Koch <wk@gnupg.org>
Tue, 20 Feb 2018 08:00:00 +0000 (09:00 +0100)
committerWerner Koch <wk@gnupg.org>
Tue, 20 Feb 2018 08:00:00 +0000 (09:00 +0100)
commit1877603761911ea5b1c15f4aef11a2cf86a8682c
tree034bac693c9aca59b5ad90876514179316f951a1
parentfffefd3c98dfcd2c75c7572c4e6fb32b73de5978
wks: Support alternative submission address.

* tools/gpg-wks.h (policy_flags_s): Add field 'submission_address'.
* tools/wks-util.c (wks_parse_policy): Parse that field.
(wks_free_policy): New.
* tools/gpg-wks-client.c (command_send): Also try to take the
submission-address from the policy file.  Free POLICY.
* tools/gpg-wks-server.c (process_new_key): Free POLICYBUF.
(command_list_domains): Free 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