commit d1f31b51c3b486b8bef9d3081207dadfa77f61bb
parent 59c4c4f5c6eb9fbef24874871fa84b88890e8cc0
Author: Sebastian <sebasjm@gmail.com>
Date: Fri, 28 Jun 2024 14:38:15 -0300
implement missing v2 interface, remove unused fields
Diffstat:
3 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/src/challenger/challenger-httpd_authorize.c b/src/challenger/challenger-httpd_authorize.c
@@ -258,9 +258,6 @@ CH_handler_authorize (struct CH_HandlerContext *hc,
"enter-%s-form",
CH_address_type);
args = GNUNET_JSON_PACK (
- GNUNET_JSON_pack_allow_null (
- GNUNET_JSON_pack_object_incref ("restrictions",
- CH_restrictions)),
GNUNET_JSON_pack_bool ("fix_address",
0 == address_attempts_left),
GNUNET_JSON_pack_allow_null (
diff --git a/src/challenger/challenger-httpd_challenge.c b/src/challenger/challenger-httpd_challenge.c
@@ -759,7 +759,7 @@ CH_handler_challenge (struct CH_HandlerContext *hc,
bc->address),
GNUNET_JSON_pack_bool ("transmitted",
bc->retransmit),
- GNUNET_JSON_pack_timestamp ("next_tx_time",
+ GNUNET_JSON_pack_timestamp ("retransmission_time",
GNUNET_TIME_absolute_to_timestamp(
GNUNET_TIME_absolute_add (
bc->last_tx_time,
diff --git a/src/challenger/challenger-httpd_config.c b/src/challenger/challenger-httpd_config.c
@@ -68,8 +68,12 @@ CH_handler_config (struct CH_HandlerContext *hc,
"urn:net:taler:specs:challenger:c-reference"),
GNUNET_JSON_pack_string ("name",
"challenger"),
+ GNUNET_JSON_pack_string ("address_type",
+ CH_address_type),
+ GNUNET_JSON_pack_object_incref ("restrictions",
+ CH_restrictions),
GNUNET_JSON_pack_string ("version",
- "1:1:1"));
+ "2:0:0"));
GNUNET_break (MHD_YES ==
MHD_add_response_header (response,
MHD_HTTP_HEADER_EXPIRES,