aboutsummaryrefslogtreecommitdiffstats
path: root/g10/gpgv.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2020-03-13 12:17:51 +0000
committerWerner Koch <[email protected]>2020-03-13 12:19:31 +0000
commit32493ce50ad880de7b548d7870c6040a8233a8f5 (patch)
tree61ae869cc0e4c550c257bf2001723aaf735df605 /g10/gpgv.c
parentdoc: Add a comment to explain the signature postscript. (diff)
downloadgnupg-32493ce50ad880de7b548d7870c6040a8233a8f5.tar.gz
gnupg-32493ce50ad880de7b548d7870c6040a8233a8f5.zip
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 callers. * 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: 4856 Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'g10/gpgv.c')
-rw-r--r--g10/gpgv.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/g10/gpgv.c b/g10/gpgv.c
index 5ddc2a67c..ae37fa340 100644
--- a/g10/gpgv.c
+++ b/g10/gpgv.c
@@ -715,12 +715,15 @@ gpg_dirmngr_get_pka (ctrl_t ctrl, const char *userid,
gpg_error_t
export_pubkey_buffer (ctrl_t ctrl, const char *keyspec, unsigned int options,
+ const void *prefix, size_t prefixlen,
export_stats_t stats,
kbnode_t *r_keyblock, void **r_data, size_t *r_datalen)
{
(void)ctrl;
(void)keyspec;
(void)options;
+ (void)prefix;
+ (void)prefixlen;
(void)stats;
*r_keyblock = NULL;