[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
- [GNUnet-SVN] [gnunet] 78/171: -fix idp, (continued)
- [GNUnet-SVN] [gnunet] 78/171: -fix idp, gnunet, 2018/01/04
- [GNUnet-SVN] [gnunet] 72/171: -fix API changes, gnunet, 2018/01/04
- [GNUnet-SVN] [gnunet] 76/171: Merge remote-tracking branch 'origin/master' into credentials, gnunet, 2018/01/04
- [GNUnet-SVN] [gnunet] 89/171: Merge branch 'abe' into identity_abe, gnunet, 2018/01/04
- [GNUnet-SVN] [gnunet] 104/171: -fix, gnunet, 2018/01/04
- [GNUnet-SVN] [gnunet] 94/171: -add CLI, gnunet, 2018/01/04
- [GNUnet-SVN] [gnunet] 87/171: -towards IdP2, gnunet, 2018/01/04
- [GNUnet-SVN] [gnunet] 62/171: -change api, gnunet, 2018/01/04
- [GNUnet-SVN] [gnunet] 70/171: - merge with master, gnunet, 2018/01/04
- [GNUnet-SVN] [gnunet] 101/171: -fix, gnunet, 2018/01/04
- [GNUnet-SVN] [gnunet] 107/171: -fix,
gnunet <=
- [GNUnet-SVN] [gnunet] 100/171: -merge, gnunet, 2018/01/04
- [GNUnet-SVN] [gnunet] 103/171: Merge branch 'abe' into identity_abe, gnunet, 2018/01/04
- [GNUnet-SVN] [gnunet] 112/171: Merge remote-tracking branch 'origin/master' into identity_abe, gnunet, 2018/01/04
- [GNUnet-SVN] [gnunet] 99/171: -add free ABE functions, gnunet, 2018/01/04
- [GNUnet-SVN] [gnunet] 90/171: -fix, gnunet, 2018/01/04
- [GNUnet-SVN] [gnunet] 125/171: -do not persist sensitive data, gnunet, 2018/01/04
- [GNUnet-SVN] [gnunet] 95/171: -fix, gnunet, 2018/01/04
- [GNUnet-SVN] [gnunet] 106/171: -fixes, gnunet, 2018/01/04
- [GNUnet-SVN] [gnunet] 114/171: -move idp gns record handling to identity-provider, gnunet, 2018/01/04
- [GNUnet-SVN] [gnunet] 75/171: -add policy record type, gnunet, 2018/01/04