aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorLucien Heuzeveldt <lucienclaude.heuzeveldt@students.bfh.ch>2022-01-10 22:09:35 +0100
committerGian Demarmels <gian@demarmels.org>2022-02-04 15:36:10 +0100
commitdaa7fdcfb1053bdd943ad7cd1bd8eb623d1c9157 (patch)
tree1cfce5401b493dfd017608cbbb05ee91ab9b247b /src/util
parent9c2aefaa515ce8d493bfe4de4eab9edc09d5447e (diff)
implement spend
Diffstat (limited to 'src/util')
-rw-r--r--src/util/denom.c18
1 files changed, 6 insertions, 12 deletions
diff --git a/src/util/denom.c b/src/util/denom.c
index a4965c050..c7cf62c3e 100644
--- a/src/util/denom.c
+++ b/src/util/denom.c
@@ -625,10 +625,8 @@ TALER_denom_pub_cmp (const struct TALER_DenominationPublicKey *denom1,
return GNUNET_CRYPTO_rsa_public_key_cmp (denom1->details.rsa_public_key,
denom2->details.rsa_public_key);
case TALER_DENOMINATION_CS:
- return 0 == GNUNET_memcmp (&denom1->details.cs_public_key,
- &denom2->details.cs_public_key)
- ? GNUNET_OK
- : GNUNET_SYSERR;
+ return GNUNET_memcmp (&denom1->details.cs_public_key,
+ &denom2->details.cs_public_key);
default:
GNUNET_assert (0);
}
@@ -650,10 +648,8 @@ TALER_denom_sig_cmp (const struct TALER_DenominationSignature *sig1,
return GNUNET_CRYPTO_rsa_signature_cmp (sig1->details.rsa_signature,
sig2->details.rsa_signature);
case TALER_DENOMINATION_CS:
- return 0 == GNUNET_memcmp (&sig1->details.cs_signature,
- &sig2->details.cs_signature)
- ? GNUNET_OK
- : GNUNET_SYSERR;
+ return GNUNET_memcmp (&sig1->details.cs_signature,
+ &sig2->details.cs_signature);
default:
GNUNET_assert (0);
}
@@ -676,10 +672,8 @@ TALER_blinded_denom_sig_cmp (
return GNUNET_CRYPTO_rsa_signature_cmp (sig1->details.blinded_rsa_signature,
sig2->details.blinded_rsa_signature);
case TALER_DENOMINATION_CS:
- return 0 == GNUNET_memcmp (&sig1->details.blinded_cs_answer,
- &sig2->details.blinded_cs_answer)
- ? GNUNET_OK
- : GNUNET_SYSERR;
+ return GNUNET_memcmp (&sig1->details.blinded_cs_answer,
+ &sig2->details.blinded_cs_answer);
default:
GNUNET_assert (0);
}