aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/reclaim/json_reclaim.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/reclaim/json_reclaim.c b/src/reclaim/json_reclaim.c
index 353303187..d52d15ed4 100644
--- a/src/reclaim/json_reclaim.c
+++ b/src/reclaim/json_reclaim.c
@@ -24,9 +24,7 @@
24 * @author Martin Schanzenbach 24 * @author Martin Schanzenbach
25 */ 25 */
26#include "platform.h" 26#include "platform.h"
27
28#include "gnunet_util_lib.h" 27#include "gnunet_util_lib.h"
29
30#include "gnunet_json_lib.h" 28#include "gnunet_json_lib.h"
31#include "gnunet_reclaim_lib.h" 29#include "gnunet_reclaim_lib.h"
32#include "gnunet_reclaim_service.h" 30#include "gnunet_reclaim_service.h"
@@ -99,7 +97,7 @@ parse_attr (void *cls, json_t *root, struct GNUNET_JSON_Specification *spec)
99 type, data, data_size); 97 type, data, data_size);
100 if ((NULL != attest_str) && (0 != strlen (attest_str))) 98 if ((NULL != attest_str) && (0 != strlen (attest_str)))
101 { 99 {
102 GNUNET_STRINGS_string_to_data (attest_str, 100 GNUNET_STRINGS_string_to_data (attest_str,
103 strlen (attest_str), 101 strlen (attest_str),
104 &attr->attestation, 102 &attr->attestation,
105 sizeof(attr->attestation)); 103 sizeof(attr->attestation));
@@ -279,6 +277,7 @@ GNUNET_RECLAIM_JSON_spec_ticket (struct GNUNET_RECLAIM_Ticket **ticket)
279 return ret; 277 return ret;
280} 278}
281 279
280
282/** 281/**
283 * Parse given JSON object to an attestation claim 282 * Parse given JSON object to an attestation claim
284 * 283 *
@@ -349,6 +348,7 @@ parse_attest (void *cls, json_t *root, struct GNUNET_JSON_Specification *spec)
349 return GNUNET_OK; 348 return GNUNET_OK;
350} 349}
351 350
351
352/** 352/**
353 * Cleanup data left from parsing RSA public key. 353 * Cleanup data left from parsing RSA public key.
354 * 354 *
@@ -367,6 +367,8 @@ clean_attest (void *cls, struct GNUNET_JSON_Specification *spec)
367 *attr = NULL; 367 *attr = NULL;
368 } 368 }
369} 369}
370
371
370/** 372/**
371 * JSON Specification for Reclaim attestation claims. 373 * JSON Specification for Reclaim attestation claims.
372 * 374 *
@@ -388,4 +390,3 @@ GNUNET_RECLAIM_JSON_spec_claim_attest (struct
388 *attr = NULL; 390 *attr = NULL;
389 return ret; 391 return ret;
390} 392}
391