diff options
author | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2019-04-13 11:33:41 +0200 |
---|---|---|
committer | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2019-04-14 10:01:24 +0200 |
commit | 41d086c02574e08a820612faf2cfb6e68049b316 (patch) | |
tree | 2f80bb52d05d3824451fa02b64b19467324cbdfe /src/reclaim/gnunet-service-reclaim.c | |
parent | 0a6ac045814213ff33e9317a40daf7250528249a (diff) | |
download | gnunet-41d086c02574e08a820612faf2cfb6e68049b316.tar.gz gnunet-41d086c02574e08a820612faf2cfb6e68049b316.zip |
RECLAIM: less unneccessary crypto; syntax and build fixes
Diffstat (limited to 'src/reclaim/gnunet-service-reclaim.c')
-rw-r--r-- | src/reclaim/gnunet-service-reclaim.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/reclaim/gnunet-service-reclaim.c b/src/reclaim/gnunet-service-reclaim.c index 51d8554e2..fa3236af4 100644 --- a/src/reclaim/gnunet-service-reclaim.c +++ b/src/reclaim/gnunet-service-reclaim.c | |||
@@ -23,6 +23,10 @@ | |||
23 | * @brief reclaim Service | 23 | * @brief reclaim Service |
24 | * | 24 | * |
25 | */ | 25 | */ |
26 | #include "platform.h" | ||
27 | |||
28 | #include "gnunet_util_lib.h" | ||
29 | |||
26 | #include "gnunet-service-reclaim_tickets.h" | 30 | #include "gnunet-service-reclaim_tickets.h" |
27 | #include "gnunet_constants.h" | 31 | #include "gnunet_constants.h" |
28 | #include "gnunet_gnsrecord_lib.h" | 32 | #include "gnunet_gnsrecord_lib.h" |
@@ -32,8 +36,6 @@ | |||
32 | #include "gnunet_reclaim_attribute_lib.h" | 36 | #include "gnunet_reclaim_attribute_lib.h" |
33 | #include "gnunet_reclaim_plugin.h" | 37 | #include "gnunet_reclaim_plugin.h" |
34 | #include "gnunet_signatures.h" | 38 | #include "gnunet_signatures.h" |
35 | #include "gnunet_util_lib.h" | ||
36 | #include "platform.h" | ||
37 | #include "reclaim.h" | 39 | #include "reclaim.h" |
38 | 40 | ||
39 | /** | 41 | /** |
@@ -804,7 +806,7 @@ ticket_reissue_proc (void *cls, const struct GNUNET_RECLAIM_Ticket *ticket, | |||
804 | code_record[0].data = authz_record_data; | 806 | code_record[0].data = authz_record_data; |
805 | code_record[0].data_size = authz_record_len; | 807 | code_record[0].data_size = authz_record_len; |
806 | code_record[0].expiration_time = GNUNET_TIME_UNIT_DAYS.rel_value_us; | 808 | code_record[0].expiration_time = GNUNET_TIME_UNIT_DAYS.rel_value_us; |
807 | code_record[0].record_type = GNUNET_GNSRECORD_TYPE_RECLAIM_AUTHZ; | 809 | code_record[0].record_type = GNUNET_GNSRECORD_TYPE_RECLAIM_ATTR_REF; |
808 | code_record[0].flags = GNUNET_GNSRECORD_RF_RELATIVE_EXPIRATION; | 810 | code_record[0].flags = GNUNET_GNSRECORD_RF_RELATIVE_EXPIRATION; |
809 | 811 | ||
810 | label = GNUNET_STRINGS_data_to_string_alloc (&ticket->rnd, sizeof (uint64_t)); | 812 | label = GNUNET_STRINGS_data_to_string_alloc (&ticket->rnd, sizeof (uint64_t)); |
@@ -924,8 +926,8 @@ static void reenc_next_attribute (void *cls) | |||
924 | /* First check if attribute still exists */ | 926 | /* First check if attribute still exists */ |
925 | label = GNUNET_STRINGS_data_to_string_alloc (&rh->attrs->list_head->claim->id, | 927 | label = GNUNET_STRINGS_data_to_string_alloc (&rh->attrs->list_head->claim->id, |
926 | sizeof (uint64_t)); | 928 | sizeof (uint64_t)); |
927 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "ID: %lu\n", | 929 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Name: %s\n", |
928 | rh->attrs->list_head->claim->id); | 930 | rh->attrs->list_head->claim->name); |
929 | rh->ns_qe = GNUNET_NAMESTORE_records_lookup ( | 931 | rh->ns_qe = GNUNET_NAMESTORE_records_lookup ( |
930 | nsh, &rh->identity, label, &check_attr_error, rh, &check_attr_cb, rh); | 932 | nsh, &rh->identity, label, &check_attr_error, rh, &check_attr_cb, rh); |
931 | GNUNET_free (label); | 933 | GNUNET_free (label); |