diff options
author | Werner Koch <wk@gnupg.org> | 2019-03-22 11:40:01 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2019-03-22 11:42:55 +0100 |
commit | e847cf1df7aa55ac2af7efd39ca05882258acbfe (patch) | |
tree | 778497f2d45ded510a8dd8cc86d1c7e03fad8636 /tools/gpg-wks.h | |
parent | scd: Refactor the app selection code. (diff) | |
download | gnupg2-e847cf1df7aa55ac2af7efd39ca05882258acbfe.tar.xz gnupg2-e847cf1df7aa55ac2af7efd39ca05882258acbfe.zip |
wkd: New command --print-wkd-hash for gpg-wks-client.
* tools/gpg-wks-client.c (aPrintWKDHash): New.
(opts) : Add "--print-wkd-hash".
(main): Implement that command.
(proc_userid_from_stdin): New.
* tools/wks-util.c (wks_fname_from_userid): Add option HASH_ONLY.
(wks_cmd_print_wkd_hash): New.
--
GnuPG-bug-id: 4418
Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'tools/gpg-wks.h')
-rw-r--r-- | tools/gpg-wks.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/gpg-wks.h b/tools/gpg-wks.h index e36943090..99969c1ef 100644 --- a/tools/gpg-wks.h +++ b/tools/gpg-wks.h @@ -98,11 +98,12 @@ gpg_error_t wks_parse_policy (policy_flags_t flags, estream_t stream, int ignore_unknown); void wks_free_policy (policy_flags_t policy); -gpg_error_t wks_fname_from_userid (const char *userid, +gpg_error_t wks_fname_from_userid (const char *userid, int hash_only, char **r_fname, char **r_addrspec); gpg_error_t wks_compute_hu_fname (char **r_fname, const char *addrspec); gpg_error_t wks_cmd_install_key (const char *fname, const char *userid); gpg_error_t wks_cmd_remove_key (const char *userid); +gpg_error_t wks_cmd_print_wkd_hash (const char *userid); /*-- wks-receive.c --*/ |