From 82405b0ce5593b30a1b0ee1a1995f2214a71751c Mon Sep 17 00:00:00 2001 From: Lucien Heuzeveldt Date: Thu, 6 Jan 2022 15:55:50 +0100 Subject: implement CS key handling and csr endpoint --- src/json/json_helper.c | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) (limited to 'src/json/json_helper.c') diff --git a/src/json/json_helper.c b/src/json/json_helper.c index ef1617ef..c07129d1 100644 --- a/src/json/json_helper.c +++ b/src/json/json_helper.c @@ -262,6 +262,26 @@ parse_denom_pub (void *cls, GNUNET_JSON_spec_end () }; + if (GNUNET_OK != + GNUNET_JSON_parse (root, + ispec, + &emsg, + &eline)) + { + GNUNET_break_op (0); + return GNUNET_SYSERR; + } + return GNUNET_OK; + } + case TALER_DENOMINATION_CS: + { + struct GNUNET_JSON_Specification ispec[] = { + GNUNET_JSON_spec_fixed ("cs_public_key", + &denom_pub->details.cs_public_key, + sizeof (denom_pub->details.cs_public_key)), + GNUNET_JSON_spec_end () + }; + if (GNUNET_OK != GNUNET_JSON_parse (root, ispec, @@ -686,7 +706,7 @@ TALER_JSON_parse_agemask (const json_t *root, { return GNUNET_SYSERR; } - +//FIXME: return GNUNET_OK; /** * Parse given JSON object to CS R. -- cgit v1.2.3