mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
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 <wk@gnupg.org>
This commit is contained in:
parent
111ba901f5
commit
2baa00ea18
7 changed files with 71 additions and 2 deletions
|
@ -371,6 +371,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);
|
||||
|
@ -394,6 +395,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);
|
||||
|
||||
|
@ -406,6 +409,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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue