From 7bfc86c938d11c14ea78b196c82ceba2a2f5317d Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Fri, 1 Jul 2016 16:50:12 +0200 Subject: gpg: New option --export-filter * g10/gpg.c (oExportFilter): New. (opts): Add --export-filter. (main): Handle option. * g10/export.c: Include recsel.h, init.h, and mbox-util.h. (export_keep_uid): New global var. (cleanup_export_globals): New. (parse_and_set_export_filter): New. (filter_getval): New. (apply_keep_uid_filter): New. (do_export_stream): Apply filter if set. Signed-off-by: Werner Koch --- g10/main.h | 1 + 1 file changed, 1 insertion(+) (limited to 'g10/main.h') diff --git a/g10/main.h b/g10/main.h index 58f2a73f8..3ee276202 100644 --- a/g10/main.h +++ b/g10/main.h @@ -379,6 +379,7 @@ void export_release_stats (export_stats_t stats); 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); int export_pubkeys (ctrl_t ctrl, strlist_t users, unsigned int options, export_stats_t stats); -- cgit v1.2.3