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:27:50 +0000 (10:27 +0100)
commit42d2474a02aa46e6fecf0e35c067aa0b6481ffbe
treed4a0a475fb95763bfe1e3a6ab4b6e9feb6b2becd
parent65c05f5c18d4331d6f1a5de98b4c6af27bc1aed8
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 da95d0d37841b34e2f3d7047f14ab4d98a7c0c56)
doc/gpg.texi
g10/import.c
g10/options.h