diff options
author | Werner Koch <[email protected]> | 2024-03-04 13:28:48 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2024-03-04 13:28:48 +0000 |
commit | 36a3550bffd233b1cf7b94ecd15c986ec18e1494 (patch) | |
tree | 29f5b34d5d8dd15f490cf1ead187a4b1212bd824 /tools/gpg-wks-server.c | |
parent | gpg: Prepare for a new export option export-realclean. (diff) | |
download | gnupg-36a3550bffd233b1cf7b94ecd15c986ec18e1494.tar.gz gnupg-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 'tools/gpg-wks-server.c')
-rw-r--r-- | tools/gpg-wks-server.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/gpg-wks-server.c b/tools/gpg-wks-server.c index d3406bd79..31de67618 100644 --- a/tools/gpg-wks-server.c +++ b/tools/gpg-wks-server.c @@ -308,7 +308,7 @@ main (int argc, char **argv) /* Set defaults for non given options. */ if (!opt.gpg_program) - opt.gpg_program = gnupg_module_name (GNUPG_MODULE_NAME_GPG); + opt.gpg_program = xstrdup (gnupg_module_name (GNUPG_MODULE_NAME_GPG)); if (!opt.directory) opt.directory = "/var/lib/gnupg/wks"; |