diff options
author | Werner Koch <[email protected]> | 2014-11-12 08:56:40 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2014-11-12 08:56:40 +0000 |
commit | ffc2307843ce6c4ac3c8d99ba8c70ffa1ae28e39 (patch) | |
tree | b9af114e1f30a5b8adb3a650f0d6033817711e51 /g10/options.h | |
parent | Remove use of gnulib (part 2) (diff) | |
download | gnupg-ffc2307843ce6c4ac3c8d99ba8c70ffa1ae28e39.tar.gz gnupg-ffc2307843ce6c4ac3c8d99ba8c70ffa1ae28e39.zip |
gpg: Add import options "keep-ownertrust".
* g10/options.h (IMPORT_KEEP_OWNERTTRUST): New.
* g10/import.c (parse_import_options): Add "keep-ownertrust".
(import_one): Act upon new option.
--
This option is in particular useful to convert from a pubring.gpg to
the new pubring.kbx in GnuPG 2.1 or vice versa:
gpg1 --export | gpg2 --import-options keep-ownertrust --import
Diffstat (limited to 'g10/options.h')
-rw-r--r-- | g10/options.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/g10/options.h b/g10/options.h index 0875eb529..95d165157 100644 --- a/g10/options.h +++ b/g10/options.h @@ -324,6 +324,7 @@ EXTERN_UNLESS_MAIN_MODULE int memory_stat_debug_mode; #define IMPORT_MINIMAL (1<<5) #define IMPORT_CLEAN (1<<6) #define IMPORT_NO_SECKEY (1<<7) +#define IMPORT_KEEP_OWNERTTRUST (1<<8) #define EXPORT_LOCAL_SIGS (1<<0) #define EXPORT_ATTRIBUTES (1<<1) |