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)
committerWerner Koch <wk@gnupg.org>
Wed, 1 Mar 2017 13:41:47 +0000 (14:41 +0100)
commit891ab23411b7f20ef37d8bde81d9857b083235df
treef4c638d188133a1409ba4caa9d9118ce14eccba5
parent2bbdeb8ee87a6c7ec211be16391a11b7c6030bed
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
doc/gpg.texi
g10/export.c
g10/gpg.c
g10/main.h