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/json | |
parent | 4978b1e966af48a18cac86aa224b3c266a9531d7 (diff) |
-refactor TALER_AgeMask.mask -> TALER_AgeMask.bits
also: fix off-by-one in TALER_age_restriction_commit
Diffstat (limited to 'src/json')
-rw-r--r-- | src/json/json_helper.c | 2 | ||||
-rw-r--r-- | src/json/json_pack.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/json/json_helper.c b/src/json/json_helper.c index 4ec9a6982..4896fb598 100644 --- a/src/json/json_helper.c +++ b/src/json/json_helper.c @@ -253,7 +253,7 @@ parse_denom_pub (void *cls, GNUNET_JSON_spec_string ("cipher", &cipher), GNUNET_JSON_spec_uint32 ("age_mask", - &denom_pub->age_mask.mask), + &denom_pub->age_mask.bits), GNUNET_JSON_spec_end () }; const char *emsg; diff --git a/src/json/json_pack.c b/src/json/json_pack.c index 8f888eaf0..ad41eb955 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))); |