From 738c3460da2d3e420d965564c34a2d941e5085c7 Mon Sep 17 00:00:00 2001 From: Jeff Burdges Date: Mon, 21 Mar 2016 14:07:29 +0000 Subject: Avoid exporting mpi_print helper function I still need to check on the importance of unsigned variant of this function --- src/util/crypto_rsa.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src') 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) * @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 @@ size_t 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 @@ GNUNET_CRYPTO_rsa_blind (const struct GNUNET_HashCode *hash, 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; } -- cgit v1.2.3