summaryrefslogtreecommitdiffstats
path: root/tools/gpg-wks.h
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2018-02-20 09:00:00 +0100
committerWerner Koch <wk@gnupg.org>2018-02-20 09:00:00 +0100
commit1877603761911ea5b1c15f4aef11a2cf86a8682c (patch)
tree034bac693c9aca59b5ad90876514179316f951a1 /tools/gpg-wks.h
parentspeedo: Use --enable-wks-tools for non-W32 builds. (diff)
downloadgnupg2-1877603761911ea5b1c15f4aef11a2cf86a8682c.tar.xz
gnupg2-1877603761911ea5b1c15f4aef11a2cf86a8682c.zip
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>
Diffstat (limited to 'tools/gpg-wks.h')
-rw-r--r--tools/gpg-wks.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/gpg-wks.h b/tools/gpg-wks.h
index ece7add5f..1522b7288 100644
--- a/tools/gpg-wks.h
+++ b/tools/gpg-wks.h
@@ -60,6 +60,7 @@ struct
/* The parsed policy flags. */
struct policy_flags_s
{
+ char *submission_address;
unsigned int mailbox_only : 1;
unsigned int dane_only : 1;
unsigned int auth_submit : 1;
@@ -92,6 +93,7 @@ gpg_error_t wks_filter_uid (estream_t *r_newkey, estream_t key,
gpg_error_t wks_send_mime (mime_maker_t mime);
gpg_error_t wks_parse_policy (policy_flags_t flags, estream_t stream,
int ignore_unknown);
+void wks_free_policy (policy_flags_t policy);
/*-- wks-receive.c --*/