From 405abf074021f448f1b0d12758a6711b8b7a14bc Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Wed, 13 Apr 2022 23:28:47 +0200 Subject: remove redundant http_status fields from challenge feedback --- src/reducer/anastasis_api_recovery_redux.c | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) (limited to 'src/reducer') diff --git a/src/reducer/anastasis_api_recovery_redux.c b/src/reducer/anastasis_api_recovery_redux.c index b438afe..b0c15ec 100644 --- a/src/reducer/anastasis_api_recovery_redux.c +++ b/src/reducer/anastasis_api_recovery_redux.c @@ -553,9 +553,7 @@ start_feedback_cb ( GNUNET_JSON_pack_string ("filename", csr->details.tan_filename), GNUNET_JSON_pack_string ("display_hint", - hint), - GNUNET_JSON_pack_uint64 ("http_status", - (json_int_t) csr->http_status)); + hint)); GNUNET_free (hint); GNUNET_assert (0 == json_object_set_new (feedback, @@ -583,9 +581,7 @@ start_feedback_cb ( GNUNET_JSON_pack_string ("address_hint", csr->details.tan_address_hint), GNUNET_JSON_pack_string ("display_hint", - hint), - GNUNET_JSON_pack_uint64 ("http_status", - (json_int_t) csr->http_status)); + hint)); GNUNET_free (hint); GNUNET_assert (0 == json_object_set_new (feedback, @@ -611,9 +607,7 @@ start_feedback_cb ( GNUNET_JSON_pack_string ("state", "send-to-address"), GNUNET_JSON_pack_string ("display_hint", - hint), - GNUNET_JSON_pack_uint64 ("http_status", - (json_int_t) csr->http_status)); + hint)); GNUNET_free (hint); GNUNET_assert (0 == json_object_set_new (feedback, @@ -885,9 +879,7 @@ answer_feedback_cb ( GNUNET_JSON_pack_string ("state", "incorrect-answer"), GNUNET_JSON_pack_uint64 ("error_code", - csr->ec), - GNUNET_JSON_pack_uint64 ("http_status", - csr->http_status)); + csr->ec)); GNUNET_assert (0 == json_object_set_new (feedback, uuid, -- cgit v1.2.3