gpg: Add new usage option for drop-subkey filters.
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Tue, 12 Jun 2018 04:41:59 +0000 (00:41 -0400)
committerWerner Koch <wk@gnupg.org>
Tue, 12 Jun 2018 06:19:19 +0000 (08:19 +0200)
commit2ddfb5bef920919443309ece9fa2930282bbce85
tree37566c24d63909a8032718a8dd918713e5912ea3
parent615b9d1fb779f3d5593484aa1e023b0ddff459f0
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: 4019
Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
doc/gpg.texi
g10/import.c