diff options
author | Werner Koch <[email protected]> | 2017-03-01 13:41:47 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2017-03-01 13:41:47 +0000 |
commit | 891ab23411b7f20ef37d8bde81d9857b083235df (patch) | |
tree | f4c638d188133a1409ba4caa9d9118ce14eccba5 /g10/gpg.c | |
parent | gpg: Allow creating keys using an existing ECC key. (diff) | |
download | gnupg-891ab23411b7f20ef37d8bde81d9857b083235df.tar.gz gnupg-891ab23411b7f20ef37d8bde81d9857b083235df.zip |
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
Diffstat (limited to 'g10/gpg.c')
-rw-r--r-- | g10/gpg.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -4546,7 +4546,7 @@ main (int argc, char **argv) add_to_strlist2( &sl, *argv, utf8_strings ); { export_stats_t stats = export_new_stats (); - export_seckeys (ctrl, sl, stats); + export_seckeys (ctrl, sl, opt.export_options, stats); export_print_stats (stats); export_release_stats (stats); } @@ -4559,7 +4559,7 @@ main (int argc, char **argv) add_to_strlist2( &sl, *argv, utf8_strings ); { export_stats_t stats = export_new_stats (); - export_secsubkeys (ctrl, sl, stats); + export_secsubkeys (ctrl, sl, opt.export_options, stats); export_print_stats (stats); export_release_stats (stats); } |