1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-06-02 22:38:02 +02:00

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

View File

@ -1964,6 +1964,11 @@ ssh_key_to_blob (gcry_sexp_t sexp, int with_secret,
err = gpg_error (GPG_ERR_INV_SEXP); err = gpg_error (GPG_ERR_INV_SEXP);
goto out; goto out;
} }
if (*p_elems == 'q')
{ /* Remove the prefix 0x40. */
data++;
datalen--;
}
err = stream_write_string (stream, data, datalen); err = stream_write_string (stream, data, datalen);
if (err) if (err)
goto out; goto out;