aboutsummaryrefslogtreecommitdiffstats
path: root/g10/misc.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2018-10-02 09:02:08 +0000
committerWerner Koch <[email protected]>2018-10-02 09:03:27 +0000
commit8e83493dae426fe36a0e0081198b10db1e103ff1 (patch)
tree7983aa76b79631c2fb437694a525a77ddc1b5f7b /g10/misc.c
parentcommon: Fix gnupg_reopen_std. (diff)
downloadgnupg-8e83493dae426fe36a0e0081198b10db1e103ff1.tar.gz
gnupg-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 <[email protected]>
Diffstat (limited to 'g10/misc.c')
-rw-r--r--g10/misc.c2
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)