mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
Merge branch 'STABLE-BRANCH-2-4'
-- Fixed conflicts: NEWS configure.ac doc/gpg.texi
This commit is contained in:
commit
dfa60c09f5
88 changed files with 2655 additions and 1419 deletions
|
@ -2430,14 +2430,14 @@ card_key_available (ctrl_t ctrl, const struct card_key_info_s *keyinfo,
|
|||
}
|
||||
|
||||
hex2bin (keyinfo->keygrip, grip, sizeof (grip));
|
||||
if ( agent_key_available (grip) )
|
||||
if (!ctrl->ephemeral_mode && agent_key_available (ctrl, grip) )
|
||||
{
|
||||
char *dispserialno;
|
||||
|
||||
/* (Shadow)-key is not available in our key storage. */
|
||||
agent_card_getattr (ctrl, "$DISPSERIALNO", &dispserialno,
|
||||
keyinfo->keygrip);
|
||||
err = agent_write_shadow_key (grip, keyinfo->serialno,
|
||||
err = agent_write_shadow_key (ctrl, grip, keyinfo->serialno,
|
||||
keyinfo->idstr, pkbuf, 0, dispserialno);
|
||||
xfree (dispserialno);
|
||||
if (err)
|
||||
|
@ -3222,7 +3222,7 @@ ssh_identity_register (ctrl_t ctrl, ssh_key_type_spec_t *spec,
|
|||
|
||||
/* Check whether the key is already in our key storage. Don't do
|
||||
anything then besides (re-)adding it to sshcontrol. */
|
||||
if ( !agent_key_available (key_grip_raw) )
|
||||
if ( !agent_key_available (ctrl, key_grip_raw) )
|
||||
goto key_exists; /* Yes, key is available. */
|
||||
|
||||
err = ssh_key_extract_comment (key, &comment);
|
||||
|
@ -3286,7 +3286,7 @@ ssh_identity_register (ctrl_t ctrl, ssh_key_type_spec_t *spec,
|
|||
|
||||
/* Store this key to our key storage. We do not store a creation
|
||||
* timestamp because we simply do not know. */
|
||||
err = agent_write_private_key (key_grip_raw, buffer, buffer_n, 0,
|
||||
err = agent_write_private_key (ctrl, key_grip_raw, buffer, buffer_n, 0,
|
||||
NULL, NULL, NULL, 0);
|
||||
if (err)
|
||||
goto out;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue