diff options
author | Werner Koch <wk@gnupg.org> | 2018-10-02 11:02:08 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2018-10-02 11:03:27 +0200 |
commit | 8e83493dae426fe36a0e0081198b10db1e103ff1 (patch) | |
tree | 7983aa76b79631c2fb437694a525a77ddc1b5f7b /g10/misc.c | |
parent | common: Fix gnupg_reopen_std. (diff) | |
download | gnupg2-8e83493dae426fe36a0e0081198b10db1e103ff1.tar.xz gnupg2-8e83493dae426fe36a0e0081198b10db1e103ff1.zip |
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 <wk@gnupg.org>
Diffstat (limited to 'g10/misc.c')
-rw-r--r-- | g10/misc.c | 2 |
1 files changed, 2 insertions, 0 deletions
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) |