diff options
author | Jonathan Buchanan <jonathan.russ.buchanan@gmail.com> | 2020-05-29 22:31:37 -0400 |
---|---|---|
committer | Jonathan Buchanan <jonathan.russ.buchanan@gmail.com> | 2020-05-29 22:31:37 -0400 |
commit | 63109da3eb675557a12904fe4700078355f200fa (patch) | |
tree | 0e1d85fd72ce0d911a3e85376e3601622f4fb73e /src | |
parent | cf4608196bc02093409dbf6b7a24e6ed08c36f76 (diff) | |
download | gnunet-63109da3eb675557a12904fe4700078355f200fa.tar.gz gnunet-63109da3eb675557a12904fe4700078355f200fa.zip |
rsa crypto compare functions take const parameters
Diffstat (limited to 'src')
-rw-r--r-- | src/include/gnunet_crypto_lib.h | 12 | ||||
-rw-r--r-- | src/util/crypto_rsa.c | 12 |
2 files changed, 12 insertions, 12 deletions
diff --git a/src/include/gnunet_crypto_lib.h b/src/include/gnunet_crypto_lib.h index 437a1283f..d11c6b58c 100644 --- a/src/include/gnunet_crypto_lib.h +++ b/src/include/gnunet_crypto_lib.h | |||
@@ -2160,8 +2160,8 @@ GNUNET_CRYPTO_rsa_public_key_dup (const struct GNUNET_CRYPTO_RsaPublicKey *key); | |||
2160 | * @return 0 if the two are equal | 2160 | * @return 0 if the two are equal |
2161 | */ | 2161 | */ |
2162 | int | 2162 | int |
2163 | GNUNET_CRYPTO_rsa_signature_cmp (struct GNUNET_CRYPTO_RsaSignature *s1, | 2163 | GNUNET_CRYPTO_rsa_signature_cmp (const struct GNUNET_CRYPTO_RsaSignature *s1, |
2164 | struct GNUNET_CRYPTO_RsaSignature *s2); | 2164 | const struct GNUNET_CRYPTO_RsaSignature *s2); |
2165 | 2165 | ||
2166 | /** | 2166 | /** |
2167 | * Compare the values of two private keys. | 2167 | * Compare the values of two private keys. |
@@ -2171,8 +2171,8 @@ GNUNET_CRYPTO_rsa_signature_cmp (struct GNUNET_CRYPTO_RsaSignature *s1, | |||
2171 | * @return 0 if the two are equal | 2171 | * @return 0 if the two are equal |
2172 | */ | 2172 | */ |
2173 | int | 2173 | int |
2174 | GNUNET_CRYPTO_rsa_private_key_cmp (struct GNUNET_CRYPTO_RsaPrivateKey *p1, | 2174 | GNUNET_CRYPTO_rsa_private_key_cmp (const struct GNUNET_CRYPTO_RsaPrivateKey *p1, |
2175 | struct GNUNET_CRYPTO_RsaPrivateKey *p2); | 2175 | const struct GNUNET_CRYPTO_RsaPrivateKey *p2); |
2176 | 2176 | ||
2177 | 2177 | ||
2178 | /** | 2178 | /** |
@@ -2183,8 +2183,8 @@ GNUNET_CRYPTO_rsa_private_key_cmp (struct GNUNET_CRYPTO_RsaPrivateKey *p1, | |||
2183 | * @return 0 if the two are equal | 2183 | * @return 0 if the two are equal |
2184 | */ | 2184 | */ |
2185 | int | 2185 | int |
2186 | GNUNET_CRYPTO_rsa_public_key_cmp (struct GNUNET_CRYPTO_RsaPublicKey *p1, | 2186 | GNUNET_CRYPTO_rsa_public_key_cmp (const struct GNUNET_CRYPTO_RsaPublicKey *p1, |
2187 | struct GNUNET_CRYPTO_RsaPublicKey *p2); | 2187 | const struct GNUNET_CRYPTO_RsaPublicKey *p2); |
2188 | 2188 | ||
2189 | 2189 | ||
2190 | /** | 2190 | /** |
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, | |||
620 | * @return 0 if the two are equal | 620 | * @return 0 if the two are equal |
621 | */ | 621 | */ |
622 | int | 622 | int |
623 | GNUNET_CRYPTO_rsa_signature_cmp (struct GNUNET_CRYPTO_RsaSignature *s1, | 623 | GNUNET_CRYPTO_rsa_signature_cmp (const struct GNUNET_CRYPTO_RsaSignature *s1, |
624 | struct GNUNET_CRYPTO_RsaSignature *s2) | 624 | const struct GNUNET_CRYPTO_RsaSignature *s2) |
625 | { | 625 | { |
626 | void *b1; | 626 | void *b1; |
627 | void *b2; | 627 | void *b2; |
@@ -653,8 +653,8 @@ GNUNET_CRYPTO_rsa_signature_cmp (struct GNUNET_CRYPTO_RsaSignature *s1, | |||
653 | * @return 0 if the two are equal | 653 | * @return 0 if the two are equal |
654 | */ | 654 | */ |
655 | int | 655 | int |
656 | GNUNET_CRYPTO_rsa_public_key_cmp (struct GNUNET_CRYPTO_RsaPublicKey *p1, | 656 | GNUNET_CRYPTO_rsa_public_key_cmp (const struct GNUNET_CRYPTO_RsaPublicKey *p1, |
657 | struct GNUNET_CRYPTO_RsaPublicKey *p2) | 657 | const struct GNUNET_CRYPTO_RsaPublicKey *p2) |
658 | { | 658 | { |
659 | void *b1; | 659 | void *b1; |
660 | void *b2; | 660 | void *b2; |
@@ -686,8 +686,8 @@ GNUNET_CRYPTO_rsa_public_key_cmp (struct GNUNET_CRYPTO_RsaPublicKey *p1, | |||
686 | * @return 0 if the two are equal | 686 | * @return 0 if the two are equal |
687 | */ | 687 | */ |
688 | int | 688 | int |
689 | GNUNET_CRYPTO_rsa_private_key_cmp (struct GNUNET_CRYPTO_RsaPrivateKey *p1, | 689 | GNUNET_CRYPTO_rsa_private_key_cmp (const struct GNUNET_CRYPTO_RsaPrivateKey *p1, |
690 | struct GNUNET_CRYPTO_RsaPrivateKey *p2) | 690 | const struct GNUNET_CRYPTO_RsaPrivateKey *p2) |
691 | { | 691 | { |
692 | void *b1; | 692 | void *b1; |
693 | void *b2; | 693 | void *b2; |