gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnunet] 144/171: -fixes


From: gnunet
Subject: [GNUnet-SVN] [gnunet] 144/171: -fixes
Date: Thu, 04 Jan 2018 16:10:52 +0100

This is an automated email from the git hooks/post-receive script.

martin-schanzenbach pushed a commit to branch master
in repository gnunet.

commit df344790f7f2e7c39cfd951ce373c4ec52b6cda7
Author: Schanzenbach, Martin <address@hidden>
AuthorDate: Mon Oct 9 14:52:47 2017 +0200

    -fixes
---
 .../gnunet-service-identity-provider.c             | 28 +++++++++++++++-------
 1 file changed, 20 insertions(+), 8 deletions(-)

diff --git a/src/identity-provider/gnunet-service-identity-provider.c 
b/src/identity-provider/gnunet-service-identity-provider.c
index 364c097b5..6d99e8467 100644
--- a/src/identity-provider/gnunet-service-identity-provider.c
+++ b/src/identity-provider/gnunet-service-identity-provider.c
@@ -1257,7 +1257,7 @@ ticket_reissue_proc (void *cls,
                                               &reissue_ticket_cont,
                                               rh);
   for (; i > 0; i--)
-    GNUNET_free (attr_arr[i]);
+    GNUNET_free (attr_arr[i-1]);
   GNUNET_free (ecdhe_privkey);
   GNUNET_free (label);
   GNUNET_free (attr_arr);
@@ -1322,7 +1322,9 @@ reenc_next_attribute (struct TicketRevocationHandle *rh)
   attribute_serialize (rh->attrs->list_head->attribute,
                        buf);
   rh->attrs->list_head->attribute->attribute_version++;
-  GNUNET_asprintf (&policy, "%s:%lu", rh->attrs->list_head->attribute->name, 
rh->attrs->list_head->attribute->attribute_version);
+  GNUNET_asprintf (&policy, "%s:%lu",
+                   rh->attrs->list_head->attribute->name,
+                   rh->attrs->list_head->attribute->attribute_version);
   /**
    * Encrypt the attribute value and store in namestore
    */
@@ -1423,6 +1425,21 @@ process_attributes_to_update (void *cls,
 }
 
 
+
+static void
+get_ticket_after_abe_bootstrap (void *cls,
+                                struct GNUNET_CRYPTO_AbeMasterKey *abe_key)
+{
+  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+              "Finished ABE bootstrap\n");
+  struct TicketRevocationHandle *rh = cls;
+  rh->abe_key = abe_key;
+  TKT_database->get_ticket_attributes (TKT_database->cls,
+                                       &rh->ticket,
+                                       &process_attributes_to_update,
+                                       rh);
+}
+
 /**
  * Checks a ticket revocation message
  *
@@ -1444,7 +1461,6 @@ check_revoke_ticket_message(void *cls,
   }
   return GNUNET_OK;
 }
-
 /**
  *
  * Handler for ticket revocation message
@@ -1477,11 +1493,7 @@ handle_revoke_ticket_message (void *cls,
   GNUNET_CONTAINER_DLL_insert (idp->revocation_list_head,
                                idp->revocation_list_tail,
                                rh);
-  TKT_database->get_ticket_attributes (TKT_database->cls,
-                                       &rh->ticket,
-                                       &process_attributes_to_update,
-                                       rh);
-  //bootstrap_abe (&rh->identity, &collect_after_abe_bootstrap, rh, GNUNET_NO);
+  bootstrap_abe (&rh->identity, &get_ticket_after_abe_bootstrap, rh, 
GNUNET_NO);
   GNUNET_SERVICE_client_continue (idp->client);
 
 }

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]