aboutsummaryrefslogtreecommitdiffstats
path: root/agent/command-ssh.c
diff options
context:
space:
mode:
Diffstat (limited to 'agent/command-ssh.c')
-rw-r--r--agent/command-ssh.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/agent/command-ssh.c b/agent/command-ssh.c
index 030cc70a0..870afe059 100644
--- a/agent/command-ssh.c
+++ b/agent/command-ssh.c
@@ -2014,7 +2014,8 @@ data_sign (ctrl_t ctrl, ssh_signature_encoder_t sig_encoder,
ctrl->use_auth_call = 1;
err = agent_pksign_do (ctrl,
_("Please enter the passphrase "
- "for the ssh key%0A %c"), &signature_sexp, 0);
+ "for the ssh key%0A %c"), &signature_sexp,
+ CACHE_MODE_SSH);
ctrl->use_auth_call = 0;
if (err)
goto out;
@@ -2386,7 +2387,7 @@ ssh_identity_register (ctrl_t ctrl, gcry_sexp_t key, int ttl)
for (i = 0; i < 20; i++)
sprintf (key_grip + 2 * i, "%02X", key_grip_raw[i]);
- err = agent_put_cache (key_grip, pi->pin, ttl);
+ err = agent_put_cache (key_grip, CACHE_MODE_SSH, pi->pin, ttl);
if (err)
goto out;