summaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorJonathan Buchanan <jonathan.russ.buchanan@gmail.com>2020-05-29 22:31:37 -0400
committerJonathan Buchanan <jonathan.russ.buchanan@gmail.com>2020-05-29 22:31:37 -0400
commit63109da3eb675557a12904fe4700078355f200fa (patch)
tree0e1d85fd72ce0d911a3e85376e3601622f4fb73e /src/util
parentcf4608196bc02093409dbf6b7a24e6ed08c36f76 (diff)
rsa crypto compare functions take const parameters
Diffstat (limited to 'src/util')
-rw-r--r--src/util/crypto_rsa.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/util/crypto_rsa.c b/src/util/crypto_rsa.c
index 2957546a7..cb4640d48 100644
--- a/src/util/crypto_rsa.c
+++ b/src/util/crypto_rsa.c
@@ -620,8 +620,8 @@ rsa_blinding_key_derive (const struct GNUNET_CRYPTO_RsaPublicKey *pkey,
* @return 0 if the two are equal
*/
int
-GNUNET_CRYPTO_rsa_signature_cmp (struct GNUNET_CRYPTO_RsaSignature *s1,
- struct GNUNET_CRYPTO_RsaSignature *s2)
+GNUNET_CRYPTO_rsa_signature_cmp (const struct GNUNET_CRYPTO_RsaSignature *s1,
+ const struct GNUNET_CRYPTO_RsaSignature *s2)
{
void *b1;
void *b2;
@@ -653,8 +653,8 @@ GNUNET_CRYPTO_rsa_signature_cmp (struct GNUNET_CRYPTO_RsaSignature *s1,
* @return 0 if the two are equal
*/
int
-GNUNET_CRYPTO_rsa_public_key_cmp (struct GNUNET_CRYPTO_RsaPublicKey *p1,
- struct GNUNET_CRYPTO_RsaPublicKey *p2)
+GNUNET_CRYPTO_rsa_public_key_cmp (const struct GNUNET_CRYPTO_RsaPublicKey *p1,
+ const struct GNUNET_CRYPTO_RsaPublicKey *p2)
{
void *b1;
void *b2;
@@ -686,8 +686,8 @@ GNUNET_CRYPTO_rsa_public_key_cmp (struct GNUNET_CRYPTO_RsaPublicKey *p1,
* @return 0 if the two are equal
*/
int
-GNUNET_CRYPTO_rsa_private_key_cmp (struct GNUNET_CRYPTO_RsaPrivateKey *p1,
- struct GNUNET_CRYPTO_RsaPrivateKey *p2)
+GNUNET_CRYPTO_rsa_private_key_cmp (const struct GNUNET_CRYPTO_RsaPrivateKey *p1,
+ const struct GNUNET_CRYPTO_RsaPrivateKey *p2)
{
void *b1;
void *b2;