From a67786078bb3617ea8d4d308b21781fd0a1c2258 Mon Sep 17 00:00:00 2001 From: Gian Demarmels Date: Fri, 4 Feb 2022 16:50:32 +0100 Subject: resolves merge conflicts --- src/json/json_helper.c | 51 +------------------------------------------------- 1 file changed, 1 insertion(+), 50 deletions(-) (limited to 'src/json') diff --git a/src/json/json_helper.c b/src/json/json_helper.c index c6dee2480..4acac5061 100644 --- a/src/json/json_helper.c +++ b/src/json/json_helper.c @@ -845,7 +845,7 @@ TALER_JSON_spec_i18n_str (const char *name, return ret; } -//FIXME: + enum GNUNET_GenericReturnValue TALER_JSON_parse_agemask (const json_t *root, struct TALER_AgeMask *mask) @@ -873,57 +873,8 @@ TALER_JSON_parse_agemask (const json_t *root, { return GNUNET_SYSERR; } -//FIXME: - return GNUNET_OK; -/** - * Parse given JSON object to CS R. - * - * @param cls closure, NULL - * @param root the json object representing data - * @param[out] spec where to write the data - * @return #GNUNET_OK upon successful parsing; #GNUNET_SYSERR upon error - */ -static enum GNUNET_GenericReturnValue -parse_csr (void *cls, - json_t *root, - struct GNUNET_JSON_Specification *spec) -{ - struct GNUNET_CRYPTO_CsRPublic *r_pub = spec->ptr; - - struct GNUNET_JSON_Specification dspec[] = { - GNUNET_JSON_spec_fixed (spec->field, r_pub, sizeof (struct - GNUNET_CRYPTO_CsRPublic)), - GNUNET_JSON_spec_end () - }; - const char *emsg; - unsigned int eline; - - if (GNUNET_OK != - GNUNET_JSON_parse (root, - dspec, - &emsg, - &eline)) - { - GNUNET_break_op (0); - return GNUNET_SYSERR; - } return GNUNET_OK; } -struct GNUNET_JSON_Specification -TALER_JSON_spec_csr (const char *field, - struct GNUNET_CRYPTO_CsRPublic *r_pub) -{ - struct GNUNET_JSON_Specification ret = { - .parser = &parse_csr, - .cleaner = NULL, - .field = field, - .ptr = r_pub - }; - - return ret; -} - - /* end of json/json_helper.c */ -- cgit v1.2.3