diff options
author | NIIBE Yutaka <[email protected]> | 2015-08-31 06:15:03 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2015-08-31 06:15:03 +0000 |
commit | 135b1e32f01beaceba8a4ecc774e23b56aca1d24 (patch) | |
tree | 54b07b2d7ee865c58c9e18fa4e0fb3e075d60d28 /agent/command-ssh.c | |
parent | g10: Simplify cache. Only include data that is actually used. (diff) | |
download | gnupg-135b1e32f01beaceba8a4ecc774e23b56aca1d24.tar.gz gnupg-135b1e32f01beaceba8a4ecc774e23b56aca1d24.zip |
agent: Fix SSH public key for EdDSA.
* agent/command-ssh.c (ssh_key_to_blob): Remove the prefix 0x40.
Diffstat (limited to '')
-rw-r--r-- | agent/command-ssh.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/agent/command-ssh.c b/agent/command-ssh.c index 3d29f9744..689241f67 100644 --- a/agent/command-ssh.c +++ b/agent/command-ssh.c @@ -1964,6 +1964,11 @@ ssh_key_to_blob (gcry_sexp_t sexp, int with_secret, err = gpg_error (GPG_ERR_INV_SEXP); goto out; } + if (*p_elems == 'q') + { /* Remove the prefix 0x40. */ + data++; + datalen--; + } err = stream_write_string (stream, data, datalen); if (err) goto out; |