aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2020-05-26 05:19:44 +0000
committerNIIBE Yutaka <[email protected]>2020-05-26 05:19:44 +0000
commitdf3628f9587ee30221b7e3c44bf2228eeb44a7d6 (patch)
treedec01ff6d45fe7f58454c787ac2e0c3f5e5c1e54
parentecc-sos: When reading private key, it's unsigned. (diff)
downloadgnupg-df3628f9587ee30221b7e3c44bf2228eeb44a7d6.tar.gz
gnupg-df3628f9587ee30221b7e3c44bf2228eeb44a7d6.zip
ecc-sos: Use unsigned integer format for SSH.
Signed-off-by: NIIBE Yutaka <[email protected]>
-rw-r--r--agent/command-ssh.c4
1 files changed, 1 insertions, 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);