aboutsummaryrefslogtreecommitdiff
path: root/src/authorization/anastasis_authorization_plugin_post.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/authorization/anastasis_authorization_plugin_post.c')
-rw-r--r--src/authorization/anastasis_authorization_plugin_post.c20
1 files changed, 8 insertions, 12 deletions
diff --git a/src/authorization/anastasis_authorization_plugin_post.c b/src/authorization/anastasis_authorization_plugin_post.c
index 1f20ff3..1240316 100644
--- a/src/authorization/anastasis_authorization_plugin_post.c
+++ b/src/authorization/anastasis_authorization_plugin_post.c
@@ -500,18 +500,14 @@ post_process (struct ANASTASIS_AUTHORIZATION_State *as,
500 if (TALER_MHD_xmime_matches (mime, 500 if (TALER_MHD_xmime_matches (mime,
501 "application/json")) 501 "application/json"))
502 { 502 {
503 json_t *body; 503 resp = TALER_MHD_MAKE_JSON_PACK (
504 504 GNUNET_JSON_pack_uint64 ("code",
505 body = json_pack ("{s:I, s:s, s:s}", 505 TALER_EC_ANASTASIS_TRUTH_CHALLENGE_RESPONSE_REQUIRED),
506 "code", 506 GNUNET_JSON_pack_string ("hint",
507 TALER_EC_ANASTASIS_TRUTH_CHALLENGE_RESPONSE_REQUIRED, 507 TALER_ErrorCode_get_hint (
508 "hint", 508 TALER_EC_ANASTASIS_TRUTH_CHALLENGE_RESPONSE_REQUIRED)),
509 TALER_ErrorCode_get_hint ( 509 GNUNET_JSON_pack_string ("detail",
510 TALER_EC_ANASTASIS_TRUTH_CHALLENGE_RESPONSE_REQUIRED), 510 zip));
511 "detail",
512 zip);
513 GNUNET_break (NULL != body);
514 resp = TALER_MHD_make_json (body);
515 } 511 }
516 else 512 else
517 { 513 {