diff options
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 |
commit | 7624db4efd91aee964b54ad67be38dd901a66040 (patch) | |
tree | 4692b0fcf8070e530f9ee0dccecb54ce39289a69 /src/pq | |
parent | 4978b1e966af48a18cac86aa224b3c266a9531d7 (diff) |
-refactor TALER_AgeMask.mask -> TALER_AgeMask.bits
also: fix off-by-one in TALER_age_restriction_commit
Diffstat (limited to 'src/pq')
-rw-r--r-- | src/pq/pq_query_helper.c | 2 | ||||
-rw-r--r-- | src/pq/pq_result_helper.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/pq/pq_query_helper.c b/src/pq/pq_query_helper.c index efa250125..1db608edd 100644 --- a/src/pq/pq_query_helper.c +++ b/src/pq/pq_query_helper.c @@ -186,7 +186,7 @@ qconv_denom_pub (void *cls, GNUNET_assert (scratch_length > 0); GNUNET_break (NULL == cls); be[0] = htonl ((uint32_t) denom_pub->cipher); - be[1] = htonl (denom_pub->age_mask.mask); + be[1] = htonl (denom_pub->age_mask.bits); switch (denom_pub->cipher) { case TALER_DENOMINATION_RSA: diff --git a/src/pq/pq_result_helper.c b/src/pq/pq_result_helper.c index 68cbbcd4c..139cf1cbf 100644 --- a/src/pq/pq_result_helper.c +++ b/src/pq/pq_result_helper.c @@ -426,7 +426,7 @@ extract_denom_pub (void *cls, res += sizeof (be); len -= sizeof (be); pk->cipher = ntohl (be[0]); - pk->age_mask.mask = ntohl (be[1]); + pk->age_mask.bits = ntohl (be[1]); switch (pk->cipher) { case TALER_DENOMINATION_RSA: |