summaryrefslogtreecommitdiffstats
path: root/tools/wks-util.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2024-03-04 14:28:48 +0100
committerWerner Koch <wk@gnupg.org>2024-03-04 14:28:48 +0100
commit36a3550bffd233b1cf7b94ecd15c986ec18e1494 (patch)
tree29f5b34d5d8dd15f490cf1ead187a4b1212bd824 /tools/wks-util.c
parentgpg: Prepare for a new export option export-realclean. (diff)
downloadgnupg2-36a3550bffd233b1cf7b94ecd15c986ec18e1494.tar.xz
gnupg2-36a3550bffd233b1cf7b94ecd15c986ec18e1494.zip
wks: Add option --realclean to gpg-wks-client.
* tools/gpg-wks-client.c (oRealClean): New. (opts): Add "realclean". (parse_arguments): Implement. (main): Take a copy of the module name to fix bad assignment from a former patch. * tools/gpg-wks-server.c (main): Ditto. * tools/gpg-wks.h (opt): Add field realclean. * tools/wks-util.c (wks_get_key): Call gpg with export-realclean depending on the new option. -- The default for gpg-wks-client is to install keys with all valid key signatures. The new option will eventually allow to install the keys only with key signatures done by trusted-keys. Also the export-option is in gpg, it requires one more gpg patch to make it actually work.
Diffstat (limited to '')
-rw-r--r--tools/wks-util.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/wks-util.c b/tools/wks-util.c
index ee1305b00..640116ce8 100644
--- a/tools/wks-util.c
+++ b/tools/wks-util.c
@@ -246,7 +246,8 @@ wks_get_key (estream_t *r_key, const char *fingerprint, const char *addrspec,
ccparray_put (&ccp, "--always-trust");
if (!binary)
ccparray_put (&ccp, "--armor");
- ccparray_put (&ccp, "--export-options=export-clean");
+ ccparray_put (&ccp, opt.realclean? "--export-options=export-realclean"
+ /* */ : "--export-options=export-clean");
ccparray_put (&ccp, "--export-filter");
ccparray_put (&ccp, filterexp);
ccparray_put (&ccp, "--export");