aboutsummaryrefslogtreecommitdiffstats
path: root/g10/main.h
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/main.h
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/main.h')
-rw-r--r--g10/main.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/g10/main.h b/g10/main.h
index 704eb339f..3b44b16c6 100644
--- a/g10/main.h
+++ b/g10/main.h
@@ -390,6 +390,7 @@ struct impex_filter_parm_s
{
ctrl_t ctrl;
kbnode_t node;
+ char hexfpr[2*MAX_FINGERPRINT_LEN + 1];
};
const char *impex_filter_getval (void *cookie, const char *propname);
@@ -413,6 +414,8 @@ void export_print_stats (export_stats_t stats);
int parse_export_options(char *str,unsigned int *options,int noisy);
gpg_error_t parse_and_set_export_filter (const char *string);
+void push_export_filters (void);
+void pop_export_filters (void);
int exact_subkey_match_p (KEYDB_SEARCH_DESC *desc, kbnode_t node);
@@ -425,6 +428,7 @@ int export_secsubkeys (ctrl_t ctrl, strlist_t users, unsigned int options,
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);