aboutsummaryrefslogtreecommitdiff
path: root/src/service/rest/reclaim_plugin.c
diff options
context:
space:
mode:
authorMartin Schanzenbach <schanzen@gnunet.org>2024-05-07 14:44:42 +0200
committerMartin Schanzenbach <schanzen@gnunet.org>2024-05-07 14:44:42 +0200
commitd43b76cb0f1d7c66ec8253f9ec5effa55a824694 (patch)
tree4ae37cbf9090da758ce5e27787eef236cf3316f7 /src/service/rest/reclaim_plugin.c
parentdbfd21c2f14d439ce897edb427222a4445a07072 (diff)
downloadgnunet-d43b76cb0f1d7c66ec8253f9ec5effa55a824694.tar.gz
gnunet-d43b76cb0f1d7c66ec8253f9ec5effa55a824694.zip
RECLAIM: Forgot to modify consume API to new issue behaviour
Diffstat (limited to 'src/service/rest/reclaim_plugin.c')
-rw-r--r--src/service/rest/reclaim_plugin.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/service/rest/reclaim_plugin.c b/src/service/rest/reclaim_plugin.c
index adddab5c6..ed86601d1 100644
--- a/src/service/rest/reclaim_plugin.c
+++ b/src/service/rest/reclaim_plugin.c
@@ -24,6 +24,7 @@
24 * @brief GNUnet reclaim REST plugin 24 * @brief GNUnet reclaim REST plugin
25 * 25 *
26 */ 26 */
27#include "gnunet_json_lib.h"
27#include "platform.h" 28#include "platform.h"
28#include "microhttpd.h" 29#include "microhttpd.h"
29#include <inttypes.h> 30#include <inttypes.h>
@@ -1225,10 +1226,13 @@ consume_ticket_cont (struct GNUNET_REST_RequestHandle *con_handle,
1225 struct RequestHandle *handle = cls; 1226 struct RequestHandle *handle = cls;
1226 struct GNUNET_RECLAIM_Ticket *ticket; 1227 struct GNUNET_RECLAIM_Ticket *ticket;
1227 char term_data[handle->rest_handle->data_size + 1]; 1228 char term_data[handle->rest_handle->data_size + 1];
1229 const char *rp_uri;
1228 json_t *data_json; 1230 json_t *data_json;
1229 json_error_t err; 1231 json_error_t err;
1230 struct GNUNET_JSON_Specification tktspec[] = 1232 struct GNUNET_JSON_Specification tktspec[] =
1231 { GNUNET_RECLAIM_JSON_spec_ticket (&ticket), GNUNET_JSON_spec_end () }; 1233 { GNUNET_RECLAIM_JSON_spec_ticket (&ticket),
1234 GNUNET_JSON_spec_string("rp_uri", &rp_uri),
1235 GNUNET_JSON_spec_end () };
1232 1236
1233 if (0 >= handle->rest_handle->data_size) 1237 if (0 >= handle->rest_handle->data_size)
1234 { 1238 {
@@ -1260,6 +1264,7 @@ consume_ticket_cont (struct GNUNET_REST_RequestHandle *con_handle,
1260 handle->resp_object = json_object (); 1264 handle->resp_object = json_object ();
1261 handle->idp_op = GNUNET_RECLAIM_ticket_consume (idp, 1265 handle->idp_op = GNUNET_RECLAIM_ticket_consume (idp,
1262 ticket, 1266 ticket,
1267 rp_uri,
1263 &consume_cont, 1268 &consume_cont,
1264 handle); 1269 handle);
1265 GNUNET_JSON_parse_free (tktspec); 1270 GNUNET_JSON_parse_free (tktspec);