diff options
Diffstat (limited to 'src/reclaim/gnunet-reclaim.c')
-rw-r--r-- | src/reclaim/gnunet-reclaim.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/reclaim/gnunet-reclaim.c b/src/reclaim/gnunet-reclaim.c index 0170ceff2..121f2b963 100644 --- a/src/reclaim/gnunet-reclaim.c +++ b/src/reclaim/gnunet-reclaim.c | |||
@@ -627,8 +627,10 @@ attest_iter_cb (void *cls, | |||
627 | const struct GNUNET_RECLAIM_AttributeList *attrs) | 627 | const struct GNUNET_RECLAIM_AttributeList *attrs) |
628 | { | 628 | { |
629 | char *attest_str; | 629 | char *attest_str; |
630 | char *attr_str; | ||
630 | char *id; | 631 | char *id; |
631 | const char *attest_type; | 632 | const char *attest_type; |
633 | struct GNUNET_RECLAIM_AttributeListEntry *ale; | ||
632 | 634 | ||
633 | if (GNUNET_YES == GNUNET_RECLAIM_id_is_equal (&attestation, | 635 | if (GNUNET_YES == GNUNET_RECLAIM_id_is_equal (&attestation, |
634 | &attest->id)) | 636 | &attest->id)) |
@@ -647,6 +649,21 @@ attest_iter_cb (void *cls, | |||
647 | attest_type, | 649 | attest_type, |
648 | attest->flag, | 650 | attest->flag, |
649 | id); | 651 | id); |
652 | if (NULL != attrs) | ||
653 | { | ||
654 | fprintf (stdout, | ||
655 | "\t Attributes:\n"); | ||
656 | for (ale = attrs->list_head; NULL != ale; ale = ale->next) | ||
657 | { | ||
658 | attr_str = GNUNET_RECLAIM_attribute_value_to_string (ale->attribute->type, | ||
659 | ale->attribute->data, | ||
660 | ale->attribute->data_size); | ||
661 | |||
662 | fprintf (stdout, | ||
663 | "\t %s: %s\n", ale->attribute->name, attr_str); | ||
664 | GNUNET_free (attr_str); | ||
665 | } | ||
666 | } | ||
650 | GNUNET_free (id); | 667 | GNUNET_free (id); |
651 | } | 668 | } |
652 | GNUNET_RECLAIM_get_attestations_next (attest_iterator); | 669 | GNUNET_RECLAIM_get_attestations_next (attest_iterator); |