wks: Add framework for policy flags.
authorWerner Koch <wk@gnupg.org>
Fri, 2 Sep 2016 14:54:42 +0000 (16:54 +0200)
committerWerner Koch <wk@gnupg.org>
Fri, 2 Sep 2016 14:56:04 +0000 (16:56 +0200)
commit46362cbc0e2260e989820795a6e4245c72335172
tree9e21a8b9bd0e2e2bdebcd388f702d4c20b6c3c47
parent505ee45106d6aa2902bbdd6326f8eb7527c273c4
wks: Add framework for policy flags.

* tools/call-dirmngr.c (wkd_get_policy_flags): New.
* tools/gpg-wks.h (struct policy_flags_s, policy_flags_t): New.
* tools/wks-util.c (wks_parse_policy): New.
* tools/gpg-wks-client.c (command_send): Get the policy flags to show
a new info line.
* tools/gpg-wks-server.c (get_policy_flags): New.
(process_new_key): get policy flag and add a stub for "auth-submit".
(command_list_domains): Check policy flags.

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