From e8ea1f3e34e2a07cbe2fd4725e7362027d0c51c3 Mon Sep 17 00:00:00 2001 From: "Schanzenbach, Martin" Date: Fri, 7 Feb 2020 21:15:59 +0100 Subject: add expiration --- src/reclaim/gnunet-service-reclaim.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'src/reclaim/gnunet-service-reclaim.c') diff --git a/src/reclaim/gnunet-service-reclaim.c b/src/reclaim/gnunet-service-reclaim.c index ddfe05556..b617d0ec3 100644 --- a/src/reclaim/gnunet-service-reclaim.c +++ b/src/reclaim/gnunet-service-reclaim.c @@ -1865,7 +1865,6 @@ attest_iter_finished (void *cls) env = GNUNET_MQ_msg (arm, GNUNET_MESSAGE_TYPE_RECLAIM_ATTESTATION_RESULT); arm->id = htonl (ai->request_id); arm->attestation_len = htons (0); - arm->attributes_len = htons (0); GNUNET_MQ_send (ai->client->mq, env); GNUNET_CONTAINER_DLL_remove (ai->client->attest_iter_head, ai->client->attest_iter_tail, @@ -1908,10 +1907,8 @@ attest_iter_cb (void *cls, struct Iterator *ai = cls; struct GNUNET_MQ_Envelope *env; struct AttestationResultMessage *arm; - struct GNUNET_RECLAIM_AttributeList *attrs; struct GNUNET_RECLAIM_Attestation *att; char *data_tmp; - size_t attrs_size; if ((rd_count != 1) || (GNUNET_GNSRECORD_TYPE_RECLAIM_ATTESTATION != rd->record_type)) @@ -1921,24 +1918,18 @@ attest_iter_cb (void *cls, } att = GNUNET_RECLAIM_attestation_deserialize (rd->data, rd->data_size); - attrs = GNUNET_RECLAIM_attestation_get_attributes (att); - attrs_size = GNUNET_RECLAIM_attribute_list_serialize_get_size (attrs); GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Found attestation under: %s\n", label); GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Sending ATTESTATION_RESULT message\n"); env = GNUNET_MQ_msg_extra (arm, - rd->data_size + attrs_size, + rd->data_size, GNUNET_MESSAGE_TYPE_RECLAIM_ATTESTATION_RESULT); arm->id = htonl (ai->request_id); arm->attestation_len = htons (rd->data_size); - arm->attributes_len = htons (attrs_size); GNUNET_CRYPTO_ecdsa_key_get_public (zone, &arm->identity); data_tmp = (char *) &arm[1]; GNUNET_memcpy (data_tmp, rd->data, rd->data_size); - data_tmp += rd->data_size; - GNUNET_RECLAIM_attribute_list_serialize (attrs, - data_tmp); GNUNET_MQ_send (ai->client->mq, env); } -- cgit v1.2.3