summaryrefslogtreecommitdiffstats
path: root/agent/command-ssh.c
diff options
context:
space:
mode:
authorNIIBE Yutaka <gniibe@fsij.org>2022-06-22 08:45:18 +0200
committerNIIBE Yutaka <gniibe@fsij.org>2022-06-22 08:45:18 +0200
commit30b54a0ebbaa8ac491710ad1b4f2fbd1b5814bce (patch)
treebcad2e6b65096f4eb6478519553d7d550002358e /agent/command-ssh.c
parentagent,gpg,tools: Fix use of log_get_fd. (diff)
downloadgnupg2-30b54a0ebbaa8ac491710ad1b4f2fbd1b5814bce.tar.xz
gnupg2-30b54a0ebbaa8ac491710ad1b4f2fbd1b5814bce.zip
agent: Add KEYATTR command.
* agent/agent.h (agent_raw_key_from_file): Add R_KEYMETA argument. (agent_update_private_key): New. * agent/command-ssh.c (data_sign): Follow the change of the function agent_raw_key_from_file. * agent/command.c (do_one_keyinfo): Likewise. (cmd_keyattr): New. (register_commands): Add an entry of cmd_keyattr. * agent/findkey.c (agent_update_private_key): New. (agent_raw_key_from_file): Add R_KEYMETA argument. -- GnuPG-bug-id: 5988 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
Diffstat (limited to 'agent/command-ssh.c')
-rw-r--r--agent/command-ssh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/agent/command-ssh.c b/agent/command-ssh.c
index b52604b70..2c18796bc 100644
--- a/agent/command-ssh.c
+++ b/agent/command-ssh.c
@@ -2760,7 +2760,7 @@ data_sign (ctrl_t ctrl, ssh_key_type_spec_t *spec,
char *fpr, *prompt;
char *comment = NULL;
- err = agent_raw_key_from_file (ctrl, ctrl->keygrip, &key);
+ err = agent_raw_key_from_file (ctrl, ctrl->keygrip, &key, NULL);
if (err)
goto out;
err = ssh_get_fingerprint_string (key, opt.ssh_fingerprint_digest, &fpr);