mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
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
This commit is contained in:
parent
2bbdeb8ee8
commit
891ab23411
4 changed files with 26 additions and 22 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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue