aboutsummaryrefslogtreecommitdiff
path: root/src/reclaim/gnunet-reclaim.c
diff options
context:
space:
mode:
authorSchanzenbach, Martin <mschanzenbach@posteo.de>2020-02-06 18:38:02 +0100
committerSchanzenbach, Martin <mschanzenbach@posteo.de>2020-02-09 20:38:11 +0100
commit02daf09b5348ffa894621f59ba0d3497a74ff669 (patch)
tree1a6bb5d7ae751808c8e93c349ac4ba73d00b9aa7 /src/reclaim/gnunet-reclaim.c
parent5fb277e8d012d687f4d2d032571cd4b57946bbfb (diff)
downloadgnunet-02daf09b5348ffa894621f59ba0d3497a74ff669.tar.gz
gnunet-02daf09b5348ffa894621f59ba0d3497a74ff669.zip
bugfixes
Diffstat (limited to 'src/reclaim/gnunet-reclaim.c')
-rw-r--r--src/reclaim/gnunet-reclaim.c17
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);