aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJeff Burdges <burdges@gnunet.org>2016-03-21 14:07:29 +0000
committerJeff Burdges <burdges@gnunet.org>2016-03-21 14:07:29 +0000
commit738c3460da2d3e420d965564c34a2d941e5085c7 (patch)
tree50a118eba988cb55eb69297bbfa7ce17a6566907 /src
parentd13b8484c6c71061f737085ee56c0d1a6c1dd9a4 (diff)
downloadgnunet-738c3460da2d3e420d965564c34a2d941e5085c7.tar.gz
gnunet-738c3460da2d3e420d965564c34a2d941e5085c7.zip
Avoid exporting mpi_print helper function
I still need to check on the importance of unsigned variant of this function
Diffstat (limited to 'src')
-rw-r--r--src/util/crypto_rsa.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/util/crypto_rsa.c b/src/util/crypto_rsa.c
index 9fecfb738..f36d130f8 100644
--- a/src/util/crypto_rsa.c
+++ b/src/util/crypto_rsa.c
@@ -572,9 +572,9 @@ GNUNET_CRYPTO_rsa_blinding_key_free (struct GNUNET_CRYPTO_rsa_BlindingKey *bkey)
572 * @param[out] buffer set to a buffer with the result 572 * @param[out] buffer set to a buffer with the result
573 * @return number of bytes stored in @a buffer 573 * @return number of bytes stored in @a buffer
574 */ 574 */
575size_t 575static size_t
576GNUNET_CRYPTO_mpi_print (gcry_mpi_t v, 576mpi_print (gcry_mpi_t v,
577 char **buffer) 577 char **buffer)
578{ 578{
579 size_t n; 579 size_t n;
580 char *b; 580 char *b;
@@ -609,7 +609,7 @@ size_t
609GNUNET_CRYPTO_rsa_blinding_key_encode (const struct GNUNET_CRYPTO_rsa_BlindingKey *bkey, 609GNUNET_CRYPTO_rsa_blinding_key_encode (const struct GNUNET_CRYPTO_rsa_BlindingKey *bkey,
610 char **buffer) 610 char **buffer)
611{ 611{
612 return GNUNET_CRYPTO_mpi_print (bkey->r, buffer); 612 return mpi_print (bkey->r, buffer);
613} 613}
614 614
615 615
@@ -800,7 +800,7 @@ GNUNET_CRYPTO_rsa_blind (const struct GNUNET_HashCode *hash,
800 gcry_mpi_release (ne[1]); 800 gcry_mpi_release (ne[1]);
801 gcry_mpi_release (r_e); 801 gcry_mpi_release (r_e);
802 802
803 n = GNUNET_CRYPTO_mpi_print (data_r_e, buffer); 803 n = mpi_print (data_r_e, buffer);
804 gcry_mpi_release (data_r_e); 804 gcry_mpi_release (data_r_e);
805 return n; 805 return n;
806} 806}