summaryrefslogtreecommitdiffstats
path: root/tools/gpg-wks.h
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2018-12-04 09:45:42 +0100
committerWerner Koch <wk@gnupg.org>2018-12-04 15:31:41 +0100
commit99094c992c20dd22971beb3527cfda109cd1df89 (patch)
treee2d2d6e0efc3993d21cf788f06da7f9a0cee3af0 /tools/gpg-wks.h
parentbuild: Remove --with-*-prefix from configure_opts. (diff)
downloadgnupg2-99094c992c20dd22971beb3527cfda109cd1df89.tar.xz
gnupg2-99094c992c20dd22971beb3527cfda109cd1df89.zip
wks: Move a few server functions to wks-util.
* tools/gpg-wks-server.c (write_to_file): Move to ... * tools/wks-util.c: here. * tools/gpg-wks-server.c (compute_hu_fname): Move to ... * tools/wks-util.c (wks_compute_hu_fname): here. * tools/gpg-wks-server.c (fname_from_userid): Move to ... * tools/wks-util.c (wks_fname_from_userid): here. * tools/gpg-wks-server.c (command_install_key): Move to ... * tools/wks-util.c (wks_cmd_install_key): here and change caller. * tools/gpg-wks-server.c (command_remove_key): Move to ... * tools/wks-util.c (wks_cmd_remove_key): here and change callers. Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'tools/gpg-wks.h')
-rw-r--r--tools/gpg-wks.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/gpg-wks.h b/tools/gpg-wks.h
index fba73f085..e36943090 100644
--- a/tools/gpg-wks.h
+++ b/tools/gpg-wks.h
@@ -98,6 +98,13 @@ 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,
+ 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);
+
+
/*-- wks-receive.c --*/
/* Flag values for the receive callback. */