diff options
Diffstat (limited to 'src/extensions')
| -rw-r--r-- | src/extensions/extensions.c | 2 | ||||
| -rw-r--r-- | src/extensions/policy_brandt_vickrey_auction/policy_brandt_vickrey_auction.c | 12 |
2 files changed, 9 insertions, 5 deletions
diff --git a/src/extensions/extensions.c b/src/extensions/extensions.c index 64574fc2..bf93e9ca 100644 --- a/src/extensions/extensions.c +++ b/src/extensions/extensions.c @@ -357,7 +357,7 @@ enum GNUNET_GenericReturnValue TALER_extensions_from_policy_details ( const json_t *policy_details, const struct TALER_Extension **extension, - char **error_hint) + const char **error_hint) { const json_t *jtype; const char *type; diff --git a/src/extensions/policy_brandt_vickrey_auction/policy_brandt_vickrey_auction.c b/src/extensions/policy_brandt_vickrey_auction/policy_brandt_vickrey_auction.c index e00f810f..8521711b 100644 --- a/src/extensions/policy_brandt_vickrey_auction/policy_brandt_vickrey_auction.c +++ b/src/extensions/policy_brandt_vickrey_auction/policy_brandt_vickrey_auction.c @@ -594,14 +594,16 @@ auction_http_post_handler ( * @param[in] input The policy_details for this handler during deposit * @param[out] serial On success will contain the serial-ID under which the * @param[out] deadline On success will contain a deadline, might be "forever" + * @param[out] error_hint On error, will contain a hint * exchange should store the policy_details in the policy_details table. * @return GNUNET_OK if the request was OK */ enum GNUNET_GenericReturnValue auction_parse_policy_details ( const json_t *input, - struct TALER_ExtensionsPolicySerialID *serial, - struct GNUNET_TIME_Timestamp *deadline) + struct GNUNET_HashCode *serial, + struct GNUNET_TIME_Timestamp *deadline, + const char **error_hint) { enum GNUNET_GenericReturnValue ret = GNUNET_NO; struct GNUNET_CRYPTO_EddsaPublicKey pub; @@ -618,10 +620,12 @@ auction_parse_policy_details ( GNUNET_assert (serial); GNUNET_assert (deadline); + error_hint = NULL; + do { ret = GNUNET_JSON_parse (input, spec, - NULL, + error_hint, NULL); if (GNUNET_OK != ret) @@ -642,7 +646,7 @@ auction_parse_policy_details ( &hc, sizeof(hc)); GNUNET_CRYPTO_hash_context_finish (hc, - &serial->hash); + serial); } ret = GNUNET_OK; |
