gpg: Add import options "keep-ownertrust".
authorWerner Koch <wk@gnupg.org>
Wed, 12 Nov 2014 08:56:40 +0000 (09:56 +0100)
committerWerner Koch <wk@gnupg.org>
Wed, 12 Nov 2014 08:56:40 +0000 (09:56 +0100)
commitffc2307843ce6c4ac3c8d99ba8c70ffa1ae28e39
treeb9af114e1f30a5b8adb3a650f0d6033817711e51
parentb8cdfac353ad96d4ef025c066c16dbde34805661
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
doc/gpg.texi
g10/import.c
g10/options.h