diff options
author | Jeff Burdges <burdges@gnunet.org> | 2016-03-21 14:07:29 +0000 |
---|---|---|
committer | Jeff Burdges <burdges@gnunet.org> | 2016-03-21 14:07:29 +0000 |
commit | 738c3460da2d3e420d965564c34a2d941e5085c7 (patch) | |
tree | 50a118eba988cb55eb69297bbfa7ce17a6566907 /src/util/crypto_rsa.c | |
parent | d13b8484c6c71061f737085ee56c0d1a6c1dd9a4 (diff) |
Avoid exporting mpi_print helper function
I still need to check on the importance of unsigned variant
of this function
Diffstat (limited to 'src/util/crypto_rsa.c')
-rw-r--r-- | src/util/crypto_rsa.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/util/crypto_rsa.c b/src/util/crypto_rsa.c index 9fecfb738d..f36d130f8e 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; } |