chiark / gitweb /
gpg: Make --export-options work with --export-secret-keys.
authorWerner Koch <wk@gnupg.org>
Wed, 1 Mar 2017 13:41:47 +0000 (14:41 +0100)
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Mon, 18 Sep 2017 20:41:12 +0000 (21:41 +0100)
commit2cfc85745d79b473f2be099c9a19220b36366738
tree790719b02199ac722c418e0376f110d9b9a3d59a
parentcb41c4b4d456f8f20a3b09a3345a7b5462c17cd3
gpg: Make --export-options work with --export-secret-keys.

* g10/export.c (export_seckeys): Add arg OPTIONS and pass it to
do_export.
(export_secsubkeys): Ditto.
* g10/gpg.c (main): Pass opt.export_options to export_seckeys and
export_secsubkeys
--

Back in the old days we did not used the export options for secret
keys export because of a lot of duplicated code and that the old
secring.gpg was anyway smaller that the pubring.gpg.  With 2.1 it was
pretty easy to enable it.

Reported-by: Peter Lebbing
GnuPG-bug-id: 2973
(cherry picked from commit 891ab23411b7f20ef37d8bde81d9857b083235df)

Gbp-Pq: Name 0044-gpg-Make-export-options-work-with-export-secret-keys.patch
doc/gpg.texi
g10/export.c
g10/gpg.c
g10/main.h