mirror of
git://git.gnupg.org/gnupg.git
synced 2025-06-18 20:37:01 +02:00
ecc-sos: Use unsigned integer format for SSH.
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
parent
324dbe3eb5
commit
df3628f958
@ -1975,9 +1975,7 @@ ssh_key_to_blob (gcry_sexp_t sexp, int with_secret,
|
|||||||
{
|
{
|
||||||
gcry_mpi_t mpi;
|
gcry_mpi_t mpi;
|
||||||
|
|
||||||
/* Note that we need to use STD format; i.e. prepend a 0x00
|
mpi = gcry_sexp_nth_mpi (value_pair, 1, GCRYMPI_FMT_USG);
|
||||||
to indicate a positive number if the high bit is set. */
|
|
||||||
mpi = gcry_sexp_nth_mpi (value_pair, 1, GCRYMPI_FMT_STD);
|
|
||||||
if (!mpi)
|
if (!mpi)
|
||||||
{
|
{
|
||||||
err = gpg_error (GPG_ERR_INV_SEXP);
|
err = gpg_error (GPG_ERR_INV_SEXP);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user