summaryrefslogtreecommitdiff
path: root/src/json/json_pack.c
diff options
context:
space:
mode:
authorLucien Heuzeveldt <lucienclaude.heuzeveldt@students.bfh.ch>2022-01-06 15:55:50 +0100
committerGian Demarmels <gian@demarmels.org>2022-02-04 15:34:19 +0100
commit82405b0ce5593b30a1b0ee1a1995f2214a71751c (patch)
treea71d2c78a344cc9e9b68e88cfdb8615f698d3383 /src/json/json_pack.c
parent36f551ff33ac0974788aff28d4b19390ca484f4b (diff)
downloadexchange-82405b0ce5593b30a1b0ee1a1995f2214a71751c.tar.gz
exchange-82405b0ce5593b30a1b0ee1a1995f2214a71751c.tar.bz2
exchange-82405b0ce5593b30a1b0ee1a1995f2214a71751c.zip
implement CS key handling and csr endpoint
Diffstat (limited to 'src/json/json_pack.c')
-rw-r--r--src/json/json_pack.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/json/json_pack.c b/src/json/json_pack.c
index 6fea72a3..86986718 100644
--- a/src/json/json_pack.c
+++ b/src/json/json_pack.c
@@ -68,6 +68,17 @@ TALER_JSON_pack_denom_pub (
GNUNET_JSON_pack_rsa_public_key ("rsa_public_key",
pk->details.rsa_public_key));
break;
+ case TALER_DENOMINATION_CS:
+ ps.object
+ = GNUNET_JSON_PACK (
+ GNUNET_JSON_pack_uint64 ("cipher",
+ TALER_DENOMINATION_CS),
+ GNUNET_JSON_pack_uint64 ("age_mask",
+ pk->age_mask.mask),
+ GNUNET_JSON_pack_data_varsize ("cs_public_key",
+ &pk->details.cs_public_key,
+ sizeof (pk->details.cs_public_key)));
+ break;
default:
GNUNET_assert (0);
}
@@ -94,6 +105,7 @@ TALER_JSON_pack_denom_sig (
GNUNET_JSON_pack_rsa_signature ("rsa_signature",
sig->details.rsa_signature));
break;
+ // TODO: case TALER_DENOMINATION_CS:
default:
GNUNET_assert (0);
}
@@ -120,6 +132,7 @@ TALER_JSON_pack_blinded_denom_sig (
GNUNET_JSON_pack_rsa_signature ("blinded_rsa_signature",
sig->details.blinded_rsa_signature));
break;
+ // TODO: case TALER_DENOMINATION_CS:
default:
GNUNET_assert (0);
}