gpg: Add import option "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 09:23:53 +0000 (10:23 +0100)
commitda95d0d37841b34e2f3d7047f14ab4d98a7c0c56
treef6290f47ff0cfba1469f14f7c75e8556f1c1bc76
parenteb756e2510bfcae3339e0907a7e4cacdea59b175
gpg: Add import option "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

(cherry-picked from commit ffc2307843ce6c4ac3c8d99ba8c70ffa1ae28e39)
doc/gpg.texi
g10/import.c
g10/options.h