diff options
author | NIIBE Yutaka <gniibe@fsij.org> | 2022-06-22 08:45:18 +0200 |
---|---|---|
committer | NIIBE Yutaka <gniibe@fsij.org> | 2022-06-22 08:45:18 +0200 |
commit | 30b54a0ebbaa8ac491710ad1b4f2fbd1b5814bce (patch) | |
tree | bcad2e6b65096f4eb6478519553d7d550002358e /agent/command-ssh.c | |
parent | agent,gpg,tools: Fix use of log_get_fd. (diff) | |
download | gnupg2-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.c | 2 |
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); |