aboutsummaryrefslogtreecommitdiff
path: root/src/reclaim
diff options
context:
space:
mode:
Diffstat (limited to 'src/reclaim')
-rw-r--r--src/reclaim/Makefile.am4
-rw-r--r--src/reclaim/json_reclaim.c2
-rw-r--r--src/reclaim/plugin_rest_reclaim.c3
3 files changed, 2 insertions, 7 deletions
diff --git a/src/reclaim/Makefile.am b/src/reclaim/Makefile.am
index 6d448cc3c..b6d73bdf7 100644
--- a/src/reclaim/Makefile.am
+++ b/src/reclaim/Makefile.am
@@ -9,16 +9,12 @@ if USE_COVERAGE
9endif 9endif
10 10
11 11
12if HAVE_REST
13REST_PLUGIN = \ 12REST_PLUGIN = \
14 libgnunet_plugin_rest_openid_connect.la \ 13 libgnunet_plugin_rest_openid_connect.la \
15 libgnunet_plugin_rest_reclaim.la 14 libgnunet_plugin_rest_reclaim.la
16endif
17 15
18if HAVE_JSON
19ATTESTATION_PLUGIN = \ 16ATTESTATION_PLUGIN = \
20 libgnunet_plugin_reclaim_attestation_jwt.la 17 libgnunet_plugin_reclaim_attestation_jwt.la
21endif
22 18
23EXTRA_DIST = \ 19EXTRA_DIST = \
24 reclaim.conf \ 20 reclaim.conf \
diff --git a/src/reclaim/json_reclaim.c b/src/reclaim/json_reclaim.c
index d52d15ed4..c470ea567 100644
--- a/src/reclaim/json_reclaim.c
+++ b/src/reclaim/json_reclaim.c
@@ -332,7 +332,7 @@ parse_attest (void *cls, json_t *root, struct GNUNET_JSON_Specification *spec)
332 (void **) &data, 332 (void **) &data,
333 &data_size))) 333 &data_size)))
334 { 334 {
335 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Attestation value invalid!\n"); 335 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Attestation value invalid!\n");
336 return GNUNET_SYSERR; 336 return GNUNET_SYSERR;
337 } 337 }
338 attr = GNUNET_RECLAIM_attestation_new (name_str, type, data, data_size); 338 attr = GNUNET_RECLAIM_attestation_new (name_str, type, data, data_size);
diff --git a/src/reclaim/plugin_rest_reclaim.c b/src/reclaim/plugin_rest_reclaim.c
index 0800e5b20..863dd0450 100644
--- a/src/reclaim/plugin_rest_reclaim.c
+++ b/src/reclaim/plugin_rest_reclaim.c
@@ -508,8 +508,7 @@ add_attestation_cont (struct GNUNET_REST_RequestHandle *con_handle,
508 handle->rest_handle->data, 508 handle->rest_handle->data,
509 handle->rest_handle->data_size); 509 handle->rest_handle->data_size);
510 data_json = json_loads (term_data, JSON_DECODE_ANY, &err); 510 data_json = json_loads (term_data, JSON_DECODE_ANY, &err);
511 GNUNET_assert (GNUNET_OK == 511 GNUNET_JSON_parse (data_json, attrspec, NULL, NULL);
512 GNUNET_JSON_parse (data_json, attrspec, NULL, NULL));
513 json_decref (data_json); 512 json_decref (data_json);
514 if (NULL == attribute) 513 if (NULL == attribute)
515 { 514 {