[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-anastasis] branch master updated: get test to pass
From: |
gnunet |
Subject: |
[taler-anastasis] branch master updated: get test to pass |
Date: |
Sun, 07 Mar 2021 16:09:34 +0100 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository anastasis.
The following commit(s) were added to refs/heads/master by this push:
new 4fd574c get test to pass
4fd574c is described below
commit 4fd574c37430cd700d6b35bacdbed8c4b5d121a1
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Sun Mar 7 16:09:32 2021 +0100
get test to pass
---
src/lib/anastasis_backup.c | 16 ++--------------
src/testing/testing_cmd_truth_upload.c | 9 ++-------
2 files changed, 4 insertions(+), 21 deletions(-)
diff --git a/src/lib/anastasis_backup.c b/src/lib/anastasis_backup.c
index 698ad14..4189452 100644
--- a/src/lib/anastasis_backup.c
+++ b/src/lib/anastasis_backup.c
@@ -294,20 +294,8 @@ ANASTASIS_truth_upload (struct GNUNET_CURL_Context *ctx,
{
char *answer;
- // FIXME: actually needs to be GNUNET_STRINGS_string_to_data!!!
- answer = GNUNET_STRINGS_data_to_string_alloc (truth_data,
- truth_data_size);
- if (NULL == answer)
- {
- GNUNET_break (0);
- GNUNET_free (t->mime_type);
- GNUNET_free (t->url);
- GNUNET_free (t->type);
- GNUNET_free (t->instructions);
- GNUNET_free (t);
- GNUNET_free (tu);
- return NULL;
- }
+ answer = GNUNET_strndup (truth_data,
+ truth_data_size);
GNUNET_assert (GNUNET_YES ==
GNUNET_CRYPTO_kdf (
&nt,
diff --git a/src/testing/testing_cmd_truth_upload.c
b/src/testing/testing_cmd_truth_upload.c
index 92c9a52..f1d5de5 100644
--- a/src/testing/testing_cmd_truth_upload.c
+++ b/src/testing/testing_cmd_truth_upload.c
@@ -383,19 +383,14 @@ ANASTASIS_TESTING_cmd_truth_upload_question (
enum ANASTASIS_TESTING_TruthStoreOption tso,
const char *salt_ref)
{
- struct GNUNET_HashCode answer_h;
-
- GNUNET_CRYPTO_hash (answer,
- strlen (answer),
- &answer_h);
return ANASTASIS_TESTING_cmd_truth_upload (label,
anastasis_url,
id_data,
"question",
instructions,
mime_type,
- &answer_h,
- sizeof (answer_h),
+ answer,
+ strlen (answer),
paid_order_ref,
http_status,
tso,
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-anastasis] branch master updated: get test to pass,
gnunet <=