diff options
author | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2020-02-03 21:51:57 +0100 |
---|---|---|
committer | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2020-02-09 20:38:10 +0100 |
commit | 5b6bb2ce4d60635b2af950d72b45f12686fd5218 (patch) | |
tree | ef3b5786591f6a8473a4a2174dd95a439f22af68 /src/reclaim/gnunet-reclaim.c | |
parent | 99d70615e37294d4f964992c6be0495e95777a27 (diff) | |
download | gnunet-5b6bb2ce4d60635b2af950d72b45f12686fd5218.tar.gz gnunet-5b6bb2ce4d60635b2af950d72b45f12686fd5218.zip |
move to 256-bit identifier; some cleanups
Diffstat (limited to 'src/reclaim/gnunet-reclaim.c')
-rw-r--r-- | src/reclaim/gnunet-reclaim.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/reclaim/gnunet-reclaim.c b/src/reclaim/gnunet-reclaim.c index 5f9170f05..c3d305eb5 100644 --- a/src/reclaim/gnunet-reclaim.c +++ b/src/reclaim/gnunet-reclaim.c | |||
@@ -227,7 +227,7 @@ static void | |||
227 | process_attrs (void *cls, | 227 | process_attrs (void *cls, |
228 | const struct GNUNET_CRYPTO_EcdsaPublicKey *identity, | 228 | const struct GNUNET_CRYPTO_EcdsaPublicKey *identity, |
229 | const struct GNUNET_RECLAIM_ATTRIBUTE_Claim *attr, | 229 | const struct GNUNET_RECLAIM_ATTRIBUTE_Claim *attr, |
230 | const struct GNUNET_RECLAIM_ATTESTATION_Claim *attest, | 230 | const struct GNUNET_RECLAIM_ATTESTATION_Claim *attest, |
231 | const struct GNUNET_RECLAIM_ATTESTATION_REFERENCE *reference) | 231 | const struct GNUNET_RECLAIM_ATTESTATION_REFERENCE *reference) |
232 | { | 232 | { |
233 | char *value_str; | 233 | char *value_str; |
@@ -249,9 +249,9 @@ process_attrs (void *cls, | |||
249 | attr->data, | 249 | attr->data, |
250 | attr->data_size); | 250 | attr->data_size); |
251 | attr_type = GNUNET_RECLAIM_ATTRIBUTE_number_to_typename (attr->type); | 251 | attr_type = GNUNET_RECLAIM_ATTRIBUTE_number_to_typename (attr->type); |
252 | id = GNUNET_STRINGS_data_to_string_alloc (&attr->id, sizeof(uint64_t)); | 252 | id = GNUNET_STRINGS_data_to_string_alloc (&attr->id, sizeof(attr->id)); |
253 | fprintf (stdout, | 253 | fprintf (stdout, |
254 | "Name: %s; Value: %s (%s); Version %u; ID: %s\n", | 254 | "Name: %s; Value: %s (%s); Flag %u; ID: %s\n", |
255 | attr->name, | 255 | attr->name, |
256 | value_str, | 256 | value_str, |
257 | attr_type, | 257 | attr_type, |
@@ -289,7 +289,7 @@ ticket_iter (void *cls, const struct GNUNET_RECLAIM_Ticket *ticket) | |||
289 | GNUNET_STRINGS_data_to_string_alloc (&ticket->audience, | 289 | GNUNET_STRINGS_data_to_string_alloc (&ticket->audience, |
290 | sizeof(struct | 290 | sizeof(struct |
291 | GNUNET_CRYPTO_EcdsaPublicKey)); | 291 | GNUNET_CRYPTO_EcdsaPublicKey)); |
292 | ref = GNUNET_STRINGS_data_to_string_alloc (&ticket->rnd, sizeof(uint64_t)); | 292 | ref = GNUNET_STRINGS_data_to_string_alloc (&ticket->rnd, sizeof(ticket->rnd)); |
293 | tkt = | 293 | tkt = |
294 | GNUNET_STRINGS_data_to_string_alloc (ticket, | 294 | GNUNET_STRINGS_data_to_string_alloc (ticket, |
295 | sizeof(struct GNUNET_RECLAIM_Ticket)); | 295 | sizeof(struct GNUNET_RECLAIM_Ticket)); |
@@ -495,7 +495,7 @@ iter_cb (void *cls, | |||
495 | } | 495 | } |
496 | else if (attr_delete && (NULL == attr_to_delete)) | 496 | else if (attr_delete && (NULL == attr_to_delete)) |
497 | { | 497 | { |
498 | label = GNUNET_STRINGS_data_to_string_alloc (&attr->id, sizeof(uint64_t)); | 498 | label = GNUNET_STRINGS_data_to_string_alloc (&attr->id, sizeof(attr->id)); |
499 | if (0 == strcasecmp (attr_delete, label)) | 499 | if (0 == strcasecmp (attr_delete, label)) |
500 | { | 500 | { |
501 | attr_to_delete = GNUNET_RECLAIM_ATTRIBUTE_claim_new (attr->name, | 501 | attr_to_delete = GNUNET_RECLAIM_ATTRIBUTE_claim_new (attr->name, |
@@ -512,9 +512,9 @@ iter_cb (void *cls, | |||
512 | attr->data, | 512 | attr->data, |
513 | attr->data_size); | 513 | attr->data_size); |
514 | attr_type = GNUNET_RECLAIM_ATTRIBUTE_number_to_typename (attr->type); | 514 | attr_type = GNUNET_RECLAIM_ATTRIBUTE_number_to_typename (attr->type); |
515 | id = GNUNET_STRINGS_data_to_string_alloc (&attr->id, sizeof(uint64_t)); | 515 | id = GNUNET_STRINGS_data_to_string_alloc (&attr->id, sizeof(attr->id)); |
516 | fprintf (stdout, | 516 | fprintf (stdout, |
517 | "Name: %s; Value: %s (%s); Version %u; ID: %s\n", | 517 | "Name: %s; Value: %s (%s); Flag %u; ID: %s\n", |
518 | attr->name, | 518 | attr->name, |
519 | attr_str, | 519 | attr_str, |
520 | attr_type, | 520 | attr_type, |