diff options
Diffstat (limited to 'src/reclaim/gnunet-reclaim.c')
-rw-r--r-- | src/reclaim/gnunet-reclaim.c | 31 |
1 files changed, 23 insertions, 8 deletions
diff --git a/src/reclaim/gnunet-reclaim.c b/src/reclaim/gnunet-reclaim.c index 3e31fef4c..0170ceff2 100644 --- a/src/reclaim/gnunet-reclaim.c +++ b/src/reclaim/gnunet-reclaim.c | |||
@@ -553,13 +553,27 @@ iter_cb (void *cls, | |||
553 | attr->data_size); | 553 | attr->data_size); |
554 | attr_type = GNUNET_RECLAIM_attribute_number_to_typename (attr->type); | 554 | attr_type = GNUNET_RECLAIM_attribute_number_to_typename (attr->type); |
555 | id = GNUNET_STRINGS_data_to_string_alloc (&attr->id, sizeof(attr->id)); | 555 | id = GNUNET_STRINGS_data_to_string_alloc (&attr->id, sizeof(attr->id)); |
556 | fprintf (stdout, | 556 | if (GNUNET_YES == GNUNET_RECLAIM_id_is_zero (&attr->attestation)) |
557 | "Name: %s; Value: %s (%s); Flag %u; ID: %s\n", | 557 | { |
558 | attr->name, | 558 | fprintf (stdout, |
559 | attr_str, | 559 | "Name: %s; Value: %s (%s); Flag %u; ID: %s\n", |
560 | attr_type, | 560 | attr->name, |
561 | attr->flag, | 561 | attr_str, |
562 | id); | 562 | attr_type, |
563 | attr->flag, | ||
564 | id); | ||
565 | } | ||
566 | else | ||
567 | { | ||
568 | fprintf (stdout, | ||
569 | "Name: %s; Value: %s (%s); Flag %u; ID: %s\n", | ||
570 | attr->name, | ||
571 | attr_str, | ||
572 | attr_type, | ||
573 | attr->flag, | ||
574 | id); | ||
575 | |||
576 | } | ||
563 | GNUNET_free (id); | 577 | GNUNET_free (id); |
564 | } | 578 | } |
565 | GNUNET_RECLAIM_get_attributes_next (attr_iterator); | 579 | GNUNET_RECLAIM_get_attributes_next (attr_iterator); |
@@ -609,7 +623,8 @@ attest_iter_finished (void *cls) | |||
609 | static void | 623 | static void |
610 | attest_iter_cb (void *cls, | 624 | attest_iter_cb (void *cls, |
611 | const struct GNUNET_CRYPTO_EcdsaPublicKey *identity, | 625 | const struct GNUNET_CRYPTO_EcdsaPublicKey *identity, |
612 | const struct GNUNET_RECLAIM_Attestation *attest) | 626 | const struct GNUNET_RECLAIM_Attestation *attest, |
627 | const struct GNUNET_RECLAIM_AttributeList *attrs) | ||
613 | { | 628 | { |
614 | char *attest_str; | 629 | char *attest_str; |
615 | char *id; | 630 | char *id; |