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
|
@ -397,8 +397,10 @@ gpg_error_t parse_and_set_export_filter (const char *string);
|
|||
|
||||
int export_pubkeys (ctrl_t ctrl, strlist_t users, unsigned int options,
|
||||
export_stats_t stats);
|
||||
int export_seckeys (ctrl_t ctrl, strlist_t users, export_stats_t stats);
|
||||
int export_secsubkeys (ctrl_t ctrl, strlist_t users, export_stats_t stats);
|
||||
int export_seckeys (ctrl_t ctrl, strlist_t users, unsigned int options,
|
||||
export_stats_t stats);
|
||||
int export_secsubkeys (ctrl_t ctrl, strlist_t users, unsigned int options,
|
||||
export_stats_t stats);
|
||||
|
||||
gpg_error_t export_pubkey_buffer (ctrl_t ctrl, const char *keyspec,
|
||||
unsigned int options,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue