Home GnuPG
Diffusion GnuPG e037657edaf0

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

Unpublished Commit ยท Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

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

Details