aboutsummaryrefslogtreecommitdiff
path: root/src/testing/testing_api_helpers_exchange.c
diff options
context:
space:
mode:
authorÖzgür Kesim <oec-taler@kesim.org>2022-03-02 10:59:42 +0100
committerÖzgür Kesim <oec-taler@kesim.org>2022-03-02 10:59:42 +0100
commit7624db4efd91aee964b54ad67be38dd901a66040 (patch)
tree4692b0fcf8070e530f9ee0dccecb54ce39289a69 /src/testing/testing_api_helpers_exchange.c
parent4978b1e966af48a18cac86aa224b3c266a9531d7 (diff)
downloadexchange-7624db4efd91aee964b54ad67be38dd901a66040.tar.xz
-refactor TALER_AgeMask.mask -> TALER_AgeMask.bits
also: fix off-by-one in TALER_age_restriction_commit
Diffstat (limited to 'src/testing/testing_api_helpers_exchange.c')
-rw-r--r--src/testing/testing_api_helpers_exchange.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/testing/testing_api_helpers_exchange.c b/src/testing/testing_api_helpers_exchange.c
index 1eecbfeb3..c2c5136e1 100644
--- a/src/testing/testing_api_helpers_exchange.c
+++ b/src/testing/testing_api_helpers_exchange.c
@@ -425,7 +425,7 @@ TALER_TESTING_find_pk (const struct TALER_EXCHANGE_Keys *keys,
(GNUNET_TIME_timestamp_cmp (now,
<,
pk->withdraw_valid_until)) &&
- (age_restricted == (0 != pk->key.age_mask.mask)) )
+ (age_restricted == (0 != pk->key.age_mask.bits)) )
return pk;
}
/* do 2nd pass to check if expiration times are to blame for
@@ -442,7 +442,7 @@ TALER_TESTING_find_pk (const struct TALER_EXCHANGE_Keys *keys,
GNUNET_TIME_timestamp_cmp (now,
>,
pk->withdraw_valid_until) ) &&
- (age_restricted == (0 != pk->key.age_mask.mask)) )
+ (age_restricted == (0 != pk->key.age_mask.bits)) )
{
GNUNET_log
(GNUNET_ERROR_TYPE_WARNING,