From 8e83493dae426fe36a0e0081198b10db1e103ff1 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 2 Oct 2018 11:02:08 +0200 Subject: gpg: New options import-drop-uids and export-drop-uids. * g10/options.h (IMPORT_DROP_UIDS): New. (EXPORT_DROP_UIDS): New. * g10/import.c (parse_import_options): Add option "import-drop-uids". (import_one): Don't bail out with that options and no uids found. Also remove all uids. (remove_all_uids): New. * g10/export.c (parse_export_options): Add option "export-drop-uids". (do_export_one_keyblock): Implement option. -- These options are required for experiments with changes to the keyserver infrastructure. Signed-off-by: Werner Koch --- g10/misc.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'g10/misc.c') diff --git a/g10/misc.c b/g10/misc.c index d7a3ee3f2..89b21e257 100644 --- a/g10/misc.c +++ b/g10/misc.c @@ -1521,6 +1521,8 @@ optlen(const char *s) return strlen(s); } + +/* Note: This function returns true on success. */ int parse_options(char *str,unsigned int *options, struct parse_options *opts,int noisy) -- cgit