From df3628f9587ee30221b7e3c44bf2228eeb44a7d6 Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Tue, 26 May 2020 14:19:44 +0900 Subject: ecc-sos: Use unsigned integer format for SSH. Signed-off-by: NIIBE Yutaka --- agent/command-ssh.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/agent/command-ssh.c b/agent/command-ssh.c index eaf92aaf3..4c6671f7a 100644 --- a/agent/command-ssh.c +++ b/agent/command-ssh.c @@ -1975,9 +1975,7 @@ ssh_key_to_blob (gcry_sexp_t sexp, int with_secret, { gcry_mpi_t mpi; - /* Note that we need to use STD format; i.e. prepend a 0x00 - to indicate a positive number if the high bit is set. */ - mpi = gcry_sexp_nth_mpi (value_pair, 1, GCRYMPI_FMT_STD); + mpi = gcry_sexp_nth_mpi (value_pair, 1, GCRYMPI_FMT_USG); if (!mpi) { err = gpg_error (GPG_ERR_INV_SEXP); -- cgit v1.2.3