summaryrefslogtreecommitdiff
path: root/src/json/json_pack.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/json/json_pack.c
parent4978b1e966af48a18cac86aa224b3c266a9531d7 (diff)
downloadexchange-7624db4efd91aee964b54ad67be38dd901a66040.tar.gz
exchange-7624db4efd91aee964b54ad67be38dd901a66040.tar.bz2
exchange-7624db4efd91aee964b54ad67be38dd901a66040.zip
-refactor TALER_AgeMask.mask -> TALER_AgeMask.bits
also: fix off-by-one in TALER_age_restriction_commit
Diffstat (limited to 'src/json/json_pack.c')
-rw-r--r--src/json/json_pack.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/json/json_pack.c b/src/json/json_pack.c
index 8f888eaf..ad41eb95 100644
--- a/src/json/json_pack.c
+++ b/src/json/json_pack.c
@@ -64,7 +64,7 @@ TALER_JSON_pack_denom_pub (
GNUNET_JSON_pack_string ("cipher",
"RSA"),
GNUNET_JSON_pack_uint64 ("age_mask",
- pk->age_mask.mask),
+ pk->age_mask.bits),
GNUNET_JSON_pack_rsa_public_key ("rsa_public_key",
pk->details.rsa_public_key));
break;
@@ -74,7 +74,7 @@ TALER_JSON_pack_denom_pub (
GNUNET_JSON_pack_string ("cipher",
"CS"),
GNUNET_JSON_pack_uint64 ("age_mask",
- pk->age_mask.mask),
+ pk->age_mask.bits),
GNUNET_JSON_pack_data_varsize ("cs_public_key",
&pk->details.cs_public_key,
sizeof (pk->details.cs_public_key)));