agent: Fix SSH public key for EdDSA.

* agent/command-ssh.c (ssh_key_to_blob): Remove the prefix 0x40.
This commit is contained in:
NIIBE Yutaka 2015-08-31 15:15:03 +09:00
parent fad91071ca
commit 135b1e32f0
1 changed files with 5 additions and 0 deletions

View File

@ -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;