gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r36949 - gnunet/src/util


From: gnunet
Subject: [GNUnet-SVN] r36949 - gnunet/src/util
Date: Mon, 21 Mar 2016 15:07:30 +0100

Author: burdges
Date: 2016-03-21 15:07:29 +0100 (Mon, 21 Mar 2016)
New Revision: 36949

Modified:
   gnunet/src/util/crypto_rsa.c
Log:
Avoid exporting mpi_print helper function

I still need to check on the importance of unsigned variant
of this function



Modified: gnunet/src/util/crypto_rsa.c
===================================================================
--- gnunet/src/util/crypto_rsa.c        2016-03-21 14:06:01 UTC (rev 36948)
+++ gnunet/src/util/crypto_rsa.c        2016-03-21 14:07:29 UTC (rev 36949)
@@ -572,9 +572,9 @@
  * @param[out] buffer set to a buffer with the result
  * @return number of bytes stored in @a buffer
  */
-size_t
-GNUNET_CRYPTO_mpi_print (gcry_mpi_t v,
-                         char **buffer)
+static size_t
+mpi_print (gcry_mpi_t v,
+           char **buffer)
 {
   size_t n;
   char *b;
@@ -609,7 +609,7 @@
 GNUNET_CRYPTO_rsa_blinding_key_encode (const struct 
GNUNET_CRYPTO_rsa_BlindingKey *bkey,
                                        char **buffer)
 {
-  return GNUNET_CRYPTO_mpi_print (bkey->r, buffer);
+  return mpi_print (bkey->r, buffer);
 }
 
 
@@ -800,7 +800,7 @@
   gcry_mpi_release (ne[1]);
   gcry_mpi_release (r_e);
 
-  n = GNUNET_CRYPTO_mpi_print (data_r_e, buffer);
+  n = mpi_print (data_r_e, buffer);
   gcry_mpi_release (data_r_e);
   return n;
 }




reply via email to

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