diff options
author | Gian Demarmels <gian@demarmels.org> | 2022-02-04 16:50:32 +0100 |
---|---|---|
committer | Gian Demarmels <gian@demarmels.org> | 2022-02-04 16:50:32 +0100 |
commit | a67786078bb3617ea8d4d308b21781fd0a1c2258 (patch) | |
tree | 67d476fe3e096001997f6de77d1db92bcd643bbb /src/json | |
parent | 8674f32aec8113ced6b2c2be625728b31158fff8 (diff) |
resolves merge conflicts
Diffstat (limited to 'src/json')
-rw-r--r-- | src/json/json_helper.c | 51 |
1 files changed, 1 insertions, 50 deletions
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 */ |