From 135b1e32f01beaceba8a4ecc774e23b56aca1d24 Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Mon, 31 Aug 2015 15:15:03 +0900 Subject: agent: Fix SSH public key for EdDSA. * agent/command-ssh.c (ssh_key_to_blob): Remove the prefix 0x40. --- agent/command-ssh.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'agent/command-ssh.c') 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; -- cgit v1.2.3