aboutsummaryrefslogtreecommitdiff
path: root/src/mint/taler-mint-httpd_deposit.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-01-16 15:04:47 +0100
committerChristian Grothoff <christian@grothoff.org>2015-01-16 15:04:47 +0100
commit7fe250407c440e59bece248747ffe8b29a8833b3 (patch)
treea662277cbce80249ddf8b3fef9e129d5dff7e8fd /src/mint/taler-mint-httpd_deposit.c
parent4bd515191b6db342ff465e0595cfeafe6da8a680 (diff)
clean up (and rename) request_json_require_nav to properly report parsing errors
Diffstat (limited to 'src/mint/taler-mint-httpd_deposit.c')
-rw-r--r--src/mint/taler-mint-httpd_deposit.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mint/taler-mint-httpd_deposit.c b/src/mint/taler-mint-httpd_deposit.c
index d92dd5ef7..eaced51c2 100644
--- a/src/mint/taler-mint-httpd_deposit.c
+++ b/src/mint/taler-mint-httpd_deposit.c
@@ -131,9 +131,10 @@ TALER_MINT_handler_deposit (struct RequestHandler *rh,
if (cond) { GNUNET_break (0); goto EXITIF_exit; } \
} while (0)
#define PARSE_DATA(field, addr) \
- EXITIF (GNUNET_OK != request_json_require_nav \
- (connection, json, \
- JNAV_FIELD, field, JNAV_RET_DATA, addr, sizeof (*addr)))
+ EXITIF (GNUNET_OK != \
+ GNUNET_MINT_parse_navigate_json \
+ (connection, json, \
+ JNAV_FIELD, field, JNAV_RET_DATA, addr, sizeof (*addr)))
PARSE_DATA ("coin_pub", &deposit->coin_pub);
PARSE_DATA ("denom_pub", &deposit->denom_pub);
PARSE_DATA ("ubsig", &ubsig);