mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
gpg: Make import filter data object more flexible.
* g10/main.h (import_filter_t): New. * g10/import.c (struct import_filter_s): Declare struct. (import_keep_uid, import_drop_sig): Replace by ... (import_filter): new. Adjust all users. (cleanup_import_globals): Move code to ... (release_import_filter): new. (save_and_clear_import_filter): New. (restore_import_filter): New. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
829949f382
commit
c9237bf2ba
2 changed files with 63 additions and 15 deletions
|
@ -348,10 +348,16 @@ gcry_mpi_t encode_md_value (PKT_public_key *pk,
|
|||
/*-- import.c --*/
|
||||
struct import_stats_s;
|
||||
typedef struct import_stats_s *import_stats_t;
|
||||
struct import_filter_s;
|
||||
typedef struct import_filter_s *import_filter_t;
|
||||
typedef gpg_error_t (*import_screener_t)(kbnode_t keyblock, void *arg);
|
||||
|
||||
int parse_import_options(char *str,unsigned int *options,int noisy);
|
||||
|
||||
gpg_error_t parse_and_set_import_filter (const char *string);
|
||||
import_filter_t save_and_clear_import_filter (void);
|
||||
void restore_import_filter (import_filter_t filt);
|
||||
|
||||
gpg_error_t read_key_from_file (ctrl_t ctrl, const char *fname,
|
||||
kbnode_t *r_keyblock);
|
||||
void import_keys (ctrl_t ctrl, char **fnames, int nnames,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue