gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [gnunet] 107/171: -fix


From: gnunet
Subject: [GNUnet-SVN] [gnunet] 107/171: -fix
Date: Thu, 04 Jan 2018 16:10:15 +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 e2e3e29545fe739ed9b3fa46f114c64e52a8924b
Author: Schanzenbach, Martin <address@hidden>
AuthorDate: Sun Jul 9 21:20:49 2017 +0200

    -fix
---
 src/identity-provider/gnunet-service-identity-provider.c | 13 ++++++-------
 src/identity-provider/test_idp.conf                      |  4 ++++
 2 files changed, 10 insertions(+), 7 deletions(-)

diff --git a/src/identity-provider/gnunet-service-identity-provider.c 
b/src/identity-provider/gnunet-service-identity-provider.c
index 0aaee93e5..1a6619227 100644
--- a/src/identity-provider/gnunet-service-identity-provider.c
+++ b/src/identity-provider/gnunet-service-identity-provider.c
@@ -527,7 +527,7 @@ serialize_abe_keyinfo (const struct IssueHandle *handle,
   char *enc_keyinfo;
   char *serialized_key;
   char *buf;
-  struct GNUNET_CRYPTO_EcdhePublicKey *ecdh_pubkey;
+  struct GNUNET_CRYPTO_EcdhePublicKey ecdh_pubkey;
   ssize_t size;
   
   struct GNUNET_CRYPTO_SymmetricSessionKey skey;
@@ -545,11 +545,10 @@ serialize_abe_keyinfo (const struct IssueHandle *handle,
                  serialized_key,
                  size);
   // ECDH keypair E = eG
-  ecdh_pubkey = NULL;
   *ecdh_privkey = GNUNET_CRYPTO_ecdhe_key_create();
   GNUNET_CRYPTO_ecdhe_key_get_public (*ecdh_privkey,
-                                      ecdh_pubkey);
-  enc_keyinfo = GNUNET_malloc (size);
+                                      &ecdh_pubkey);
+  enc_keyinfo = GNUNET_malloc (size + strlen (handle->scopes) + 1);
   // Derived key K = H(eB)
   GNUNET_assert (GNUNET_OK == GNUNET_CRYPTO_ecdh_ecdsa (*ecdh_privkey,
                                                         &handle->aud_key,
@@ -562,7 +561,7 @@ serialize_abe_keyinfo (const struct IssueHandle *handle,
   *result = GNUNET_malloc (sizeof (struct GNUNET_CRYPTO_EcdhePublicKey)+
                            enc_size);
   GNUNET_memcpy (*result,
-                 ecdh_pubkey,
+                 &ecdh_pubkey,
                  sizeof (struct GNUNET_CRYPTO_EcdhePublicKey));
   GNUNET_memcpy (*result + sizeof (struct GNUNET_CRYPTO_EcdhePublicKey),
                  enc_keyinfo,
@@ -1276,7 +1275,7 @@ handle_issue_message (void *cls,
                                        
GNUNET_CONTAINER_MULTIHASHMAPOPTION_REPLACE);
   }
   GNUNET_free (scopes_tmp);
-  scopes_tmp = GNUNET_strdup (v_attrs);
+  /*scopes_tmp = GNUNET_strdup (v_attrs);
 
   for (scope = strtok (scopes_tmp, ","); NULL != scope; scope = strtok (NULL, 
","))
   {
@@ -1286,7 +1285,7 @@ handle_issue_message (void *cls,
                                  issue_handle->v_attr_tail,
                                  vattr_entry);
   }
-  GNUNET_free (scopes_tmp);
+  GNUNET_free (scopes_tmp);*/
 
 
 
diff --git a/src/identity-provider/test_idp.conf 
b/src/identity-provider/test_idp.conf
index b0b2c4826..a457bbe8f 100644
--- a/src/identity-provider/test_idp.conf
+++ b/src/identity-provider/test_idp.conf
@@ -6,6 +6,10 @@ GNUNET_TEST_HOME = /tmp/test-gnunet-idp-peer-1/
 [dht]
 AUTOSTART = YES
 
+[rest]
+AUTOSTART = YES
+PREFIX = valgrind --leak-check=full --track-origins=yes --log-file=/tmp/restlog
+
 [transport]
 PLUGINS =
 

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



reply via email to

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