[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-anastasis] 13/13: fixed truth array problems
From: |
gnunet |
Subject: |
[taler-anastasis] 13/13: fixed truth array problems |
Date: |
Sun, 03 May 2020 18:02:37 +0200 |
This is an automated email from the git hooks/post-receive script.
dennis-neufeld pushed a commit to branch master
in repository anastasis.
commit d0a484ea99d5e7480e4df35d4f995e1a3482ca31
Author: Dennis Neufeld <address@hidden>
AuthorDate: Sun May 3 16:02:19 2020 +0000
fixed truth array problems
---
src/lib/anastasis.c | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/src/lib/anastasis.c b/src/lib/anastasis.c
index 18fa0a0..f8884e2 100644
--- a/src/lib/anastasis.c
+++ b/src/lib/anastasis.c
@@ -914,10 +914,13 @@ ANASTASIS_policy_create (struct ANASTASIS_Truth *truths[],
unsigned int truths_len)
{
struct ANASTASIS_Policy *p;
- p = GNUNET_new (struct ANASTASIS_Policy);
+ struct ANASTASIS_Truth *truth;
struct ANASTASIS_CRYPTO_KeyShareP key_shares[truths_len];
uuid_t uuids[truths_len];
+ p = GNUNET_new (struct ANASTASIS_Policy);
+ truth = truths;
+
GNUNET_assert (NULL != *truths);
GNUNET_assert (truths_len > 0);
@@ -932,8 +935,8 @@ ANASTASIS_policy_create (struct ANASTASIS_Truth *truths[],
for (unsigned int i = 0; i < truths_len; i++)
{
- struct ANASTASIS_Truth *truth;
- truth = truths;
+ if (i > 0)
+ truth = &truth[1];
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"At %s:%d truth is %s-%llu b\n", __FILE__, __LINE__,
TALER_B2S (truth),
@@ -950,7 +953,6 @@ ANASTASIS_policy_create (struct ANASTASIS_Truth *truths[],
"At %s:%d uuid is %s-%llu b\n", __FILE__, __LINE__,
TALER_B2S (&uuids[i]),
(unsigned long long) sizeof (uuids[i]));
- truths++;
}
GNUNET_CRYPTO_random_block (GNUNET_CRYPTO_QUALITY_NONCE,
&p->salt,
--
To stop receiving notification emails like this one, please contact
address@hidden.
- [taler-anastasis] 04/13: changed user identifier derivation to use GNUNET_CRYPTO_hash_pow(), (continued)
- [taler-anastasis] 04/13: changed user identifier derivation to use GNUNET_CRYPTO_hash_pow(), gnunet, 2020/05/03
- [taler-anastasis] 02/13: deleted salt cb etc. from anastasis.c, gnunet, 2020/05/03
- [taler-anastasis] 09/13: created policy trait, gnunet, 2020/05/03
- [taler-anastasis] 10/13: modified Makefile, gnunet, 2020/05/03
- [taler-anastasis] 08/13: Initial work on testing policy creation, gnunet, 2020/05/03
- [taler-anastasis] 03/13: changed user identifier derivation to use GNUNET_CRYPTO_hash_pow(), gnunet, 2020/05/03
- [taler-anastasis] 05/13: modified truth trait, gnunet, 2020/05/03
- [taler-anastasis] 07/13: fixed http server not shutting down, gnunet, 2020/05/03
- [taler-anastasis] 12/13: Some error fixes, gnunet, 2020/05/03
- [taler-anastasis] 11/13: worked on testing policy creation, gnunet, 2020/05/03
- [taler-anastasis] 13/13: fixed truth array problems,
gnunet <=