mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
g10: Make sure to emit NEED_PASSPHRASE on --import of secret key.
* call-agent.h (agent_import_key): Add keyid parameters. * call-agent.c (agent_import_key): Set keyid parameters. * import.c (transfer_secret_keys): Pass keyid parameters. Signed-off-by: Marcus Brinkmann <mb@g10code.com> GnuPG-bug-id: 2667
This commit is contained in:
parent
78ebc62604
commit
872137b592
3 changed files with 9 additions and 3 deletions
|
@ -2109,7 +2109,8 @@ transfer_secret_keys (ctrl_t ctrl, struct import_stats_s *stats,
|
|||
{
|
||||
char *desc = gpg_format_keydesc (ctrl, pk, FORMAT_KEYDESC_IMPORT, 1);
|
||||
err = agent_import_key (ctrl, desc, &cache_nonce,
|
||||
wrappedkey, wrappedkeylen, batch, force);
|
||||
wrappedkey, wrappedkeylen, batch, force,
|
||||
pk->keyid, pk->main_keyid, pk->pubkey_algo);
|
||||
xfree (desc);
|
||||
}
|
||||
if (!err)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue