mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +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:
parent
fad91071ca
commit
135b1e32f0
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue