diff options
author | Werner Koch <[email protected]> | 2019-05-03 13:54:54 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2019-05-03 13:54:54 +0000 |
commit | bdf252e76ada0056bec2ee7940255f32552328c5 (patch) | |
tree | cb239466bff0ed49319cb223058af18b6bb88466 /agent/command-ssh.c | |
parent | common: In private key mode write "Key:" always last in name-value. (diff) | |
download | gnupg-bdf252e76ada0056bec2ee7940255f32552328c5.tar.gz gnupg-bdf252e76ada0056bec2ee7940255f32552328c5.zip |
agent: Put Token lines into the key files.
* agent/findkey.c (write_extended_private_key): Add args serialno and
keyref. Write a Token line if that does not yet exist.
(agent_write_private_key): Add args serialno and keyref and change all
callers.
(agent_write_shadow_key): Skip leading spaces.
* agent/keyformat.txt: Improve extended key format docs.
--
Noet that the extended key forma is the defaqult in 2.3. This patch
is a first step to better handle tokens which carray the same key.
Signed-off-by: Werner Koch <[email protected]>
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 ebd28ab5a..727bb9b94 100644 --- a/agent/command-ssh.c +++ b/agent/command-ssh.c @@ -3142,7 +3142,7 @@ ssh_identity_register (ctrl_t ctrl, ssh_key_type_spec_t *spec, goto out; /* Store this key to our key storage. */ - err = agent_write_private_key (key_grip_raw, buffer, buffer_n, 0); + err = agent_write_private_key (key_grip_raw, buffer, buffer_n, 0, NULL, NULL); if (err) goto out; |