tools: Add options to gpg-wks-server.
authorWerner Koch <wk@gnupg.org>
Sat, 2 Jul 2016 16:59:22 +0000 (18:59 +0200)
committerWerner Koch <wk@gnupg.org>
Sat, 2 Jul 2016 16:59:22 +0000 (18:59 +0200)
commitc619035d9cd0c9cef62facf5365321289051f9a0
tree13978348c97dc1ccd67d7ff52cc748d5d65c08a8
parent0e36a1d1fb79c2b75c081616eed00075190b38aa
tools: Add options to gpg-wks-server.

* tools/gpg-wks.h (opt): Add 'default_from' and 'extra_headers'.
* tools/gpg-wks-server.c (oFrom, oHeader): New.
(parse_arguments): Set them and check args.
(get_submission_address): New.
(send_confirmation_request): Set correct From address.  Add extra
headers.
(process_new_key): Return an error code.

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