Home GnuPG
Diffusion GnuPG 32493ce50ad8

gpg: Add property "fpr" for use by --export-filter.


gpg: Add property "fpr" for use by --export-filter.

* g10/export.c (push_export_filters): New.
(pop_export_filters): New.
(export_pubkey_buffer): Add args prefix and prefixlen.  Adjust
* g10/import.c (impex_filter_getval): Add property "fpr".
* g10/main.h (struct impex_filter_parm_s): Add field hexfpr.

The push and pop feature will help us to use the export filter
internally in gpg. Same for the export_pubkey_buffer change.

  • GnuPG-bug-id: T4856
  • Signed-off-by: Werner Koch <wk@gnupg.org>