gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnunet] branch master updated: fix libgnunetpq for RSA encoding


From: gnunet
Subject: [gnunet] branch master updated: fix libgnunetpq for RSA encoding
Date: Sat, 07 Dec 2019 15:09:52 +0100

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository gnunet.

The following commit(s) were added to refs/heads/master by this push:
     new 4e59b8e69 fix libgnunetpq for RSA encoding
4e59b8e69 is described below

commit 4e59b8e69f79ded079430e73f7ee023dd26f7c0f
Author: Christian Grothoff <address@hidden>
AuthorDate: Sat Dec 7 15:06:54 2019 +0100

    fix libgnunetpq for RSA encoding
---
 src/pq/pq_query_helper.c | 2 +-
 src/util/crypto_rsa.c    | 2 --
 2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/pq/pq_query_helper.c b/src/pq/pq_query_helper.c
index 3bc84082d..34de97eb3 100644
--- a/src/pq/pq_query_helper.c
+++ b/src/pq/pq_query_helper.c
@@ -304,7 +304,7 @@ qconv_rsa_public_key (void *cls,
                                                   &buf);
   scratch[0] = buf;
   param_values[0] = (void *) buf;
-  param_lengths[0] = buf_size - 1; /* DB doesn't like the trailing \0 */
+  param_lengths[0] = buf_size;
   param_formats[0] = 1;
   return 1;
 }
diff --git a/src/util/crypto_rsa.c b/src/util/crypto_rsa.c
index 2ac4fcf8a..5bea87793 100644
--- a/src/util/crypto_rsa.c
+++ b/src/util/crypto_rsa.c
@@ -356,7 +356,6 @@ GNUNET_CRYPTO_rsa_public_key_encode (const struct
   struct GNUNET_CRYPTO_RsaPublicKeyHeaderP hdr;
   int ret;
 
-/* SEE #5398 / #5968 */
   ret = key_from_sexp (ne, key->sexp, "public-key", "ne");
   if (0 != ret)
     ret = key_from_sexp (ne, key->sexp, "rsa", "ne");
@@ -366,7 +365,6 @@ GNUNET_CRYPTO_rsa_public_key_encode (const struct
     *buffer = NULL;
     return 0;
   }
-
   gcry_mpi_print (GCRYMPI_FMT_USG,
                   NULL,
                   0,

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]