Home GnuPG
Diffusion GnuPG 86b64876bef0

gpg: Add new usage option for drop-subkey filters.

Description

gpg: Add new usage option for drop-subkey filters.

* g10/import.c (impex_filter_getval): Add new "usage" property for
drop-subkey filter.

For example, this permits extraction of only encryption-capable
subkeys like so:

gpg --export-filter 'drop-subkey=usage !~ e' --export $FPR

(cherry picked from commit 2ddfb5bef920919443309ece9fa2930282bbce85)

  • GnuPG-Bug-id: T4019
  • Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>

Details

Provenance
dkgAuthored on Jun 12 2018, 6:41 AM
wernerCommitted on Jun 12 2018, 9:04 AM
Parents
rGdc96fd883571: doc: Mention new command --show-keys in the 2.2.7 NEWS.
Branches
Unknown
Tags
Unknown
Tasks
T4019: --export-filter drop-subkey filter type should have usage option property