aboutsummaryrefslogtreecommitdiff
path: root/src/reclaim/gnunet-service-reclaim.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/reclaim/gnunet-service-reclaim.c')
-rw-r--r--src/reclaim/gnunet-service-reclaim.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/reclaim/gnunet-service-reclaim.c b/src/reclaim/gnunet-service-reclaim.c
index 0cd8c10a5..84afd482e 100644
--- a/src/reclaim/gnunet-service-reclaim.c
+++ b/src/reclaim/gnunet-service-reclaim.c
@@ -732,6 +732,7 @@ handle_issue_ticket_message (void *cls, const struct IssueTicketMessage *im)
732 struct TicketIssueOperation *tio; 732 struct TicketIssueOperation *tio;
733 struct IdpClient *idp = cls; 733 struct IdpClient *idp = cls;
734 struct GNUNET_RECLAIM_AttributeList *attrs; 734 struct GNUNET_RECLAIM_AttributeList *attrs;
735 struct GNUNET_RECLAIM_AttributeListEntry *le;
735 size_t attrs_len; 736 size_t attrs_len;
736 737
737 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Received ISSUE_TICKET message\n"); 738 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Received ISSUE_TICKET message\n");
@@ -739,6 +740,10 @@ handle_issue_ticket_message (void *cls, const struct IssueTicketMessage *im)
739 attrs_len = ntohs (im->attr_len); 740 attrs_len = ntohs (im->attr_len);
740 attrs = GNUNET_RECLAIM_attribute_list_deserialize ((char *) &im[1], 741 attrs = GNUNET_RECLAIM_attribute_list_deserialize ((char *) &im[1],
741 attrs_len); 742 attrs_len);
743 for (le = attrs->list_head; NULL != le; le = le->next)
744 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
745 "List entry: %s\n", le->attribute->name);
746
742 tio->r_id = ntohl (im->id); 747 tio->r_id = ntohl (im->id);
743 tio->client = idp; 748 tio->client = idp;
744 GNUNET_CONTAINER_DLL_insert (idp->issue_op_head, idp->issue_op_tail, tio); 749 GNUNET_CONTAINER_DLL_insert (idp->issue_op_head, idp->issue_op_tail, tio);
@@ -1053,8 +1058,9 @@ handle_attribute_store_message (void *cls,
1053 data_len = ntohs (sam->attr_len); 1058 data_len = ntohs (sam->attr_len);
1054 1059
1055 ash = GNUNET_new (struct AttributeStoreHandle); 1060 ash = GNUNET_new (struct AttributeStoreHandle);
1056 ash->claim = GNUNET_RECLAIM_attribute_deserialize ((char *) &sam[1], 1061 GNUNET_RECLAIM_attribute_deserialize ((char *) &sam[1],
1057 data_len); 1062 data_len,
1063 &ash->claim);
1058 1064
1059 ash->r_id = ntohl (sam->id); 1065 ash->r_id = ntohl (sam->id);
1060 ash->identity = sam->identity; 1066 ash->identity = sam->identity;
@@ -1548,8 +1554,9 @@ handle_attribute_delete_message (void *cls,
1548 data_len = ntohs (dam->attr_len); 1554 data_len = ntohs (dam->attr_len);
1549 1555
1550 adh = GNUNET_new (struct AttributeDeleteHandle); 1556 adh = GNUNET_new (struct AttributeDeleteHandle);
1551 adh->claim = GNUNET_RECLAIM_attribute_deserialize ((char *) &dam[1], 1557 GNUNET_RECLAIM_attribute_deserialize ((char *) &dam[1],
1552 data_len); 1558 data_len,
1559 &adh->claim);
1553 adh->attest = NULL; 1560 adh->attest = NULL;
1554 1561
1555 adh->r_id = ntohl (dam->id); 1562 adh->r_id = ntohl (dam->id);