Home GnuPG
Diffusion GnuPG 2f4492f3be6a

wkd: New option --add-revocs and some fixes.

Description

wkd: New option --add-revocs and some fixes.

* tools/gpg-wks.h (opt): Add add_revocs.
* tools/wks-util.c (wks_get_key): Add arg 'binary'.
(wks_armor_key): New.
(wks_find_add_revocs): New.
(wks_cmd_install_key): Get key in binary mode and add revocations if
enabled.
* tools/gpg-wks-client.c (oAddRevocs): New.
(opts): Add --add-revocs.
(parse_arguments): Set option,
(command_send): Get key in binary mode, add revocations if enabled,
and explictly armor key.  Remove kludge to skip the Content-type line
in no_encrypt mode.
(mirror_one_keys_userid): Always filter the key to get rid of the
armor as received from dirmngr.  Add revocations from the local
keyring.

Note that this also fixes an oddity of the new mirror command which
used to store the keys armored as received from dirmngr.

Details

Provenance
wernerAuthored on Nov 29 2022, 4:47 PM
Parents
rGdeac3e91eb68: wkd: Make use of --debug extprog.
Branches
Unknown
Tags
Unknown