gnunet-svn
[Top][All Lists]
Advanced

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

[taler-sync] branch master updated: adapations to GNUnet API change


From: gnunet
Subject: [taler-sync] branch master updated: adapations to GNUnet API change
Date: Sat, 11 Apr 2020 21:47:19 +0200

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

grothoff pushed a commit to branch master
in repository sync.

The following commit(s) were added to refs/heads/master by this push:
     new 23ac460  adapations to GNUnet API change
23ac460 is described below

commit 23ac460cc57ce8520019f2e9788f5f0d5b37113e
Author: Christian Grothoff <address@hidden>
AuthorDate: Sat Apr 11 20:55:10 2020 +0200

    adapations to GNUnet API change
---
 src/lib/testing_api_cmd_backup_download.c | 7 +++----
 src/lib/testing_api_cmd_backup_upload.c   | 8 ++------
 2 files changed, 5 insertions(+), 10 deletions(-)

diff --git a/src/lib/testing_api_cmd_backup_download.c 
b/src/lib/testing_api_cmd_backup_download.c
index b77ed41..e6bfad4 100644
--- a/src/lib/testing_api_cmd_backup_download.c
+++ b/src/lib/testing_api_cmd_backup_download.c
@@ -271,15 +271,14 @@ SYNC_TESTING_cmd_backup_nx (const char *label,
                             const char *sync_url)
 {
   struct BackupDownloadState *bds;
-  struct GNUNET_CRYPTO_EddsaPrivateKey *priv;
+  struct GNUNET_CRYPTO_EddsaPrivateKey priv;
 
   bds = GNUNET_new (struct BackupDownloadState);
   bds->http_status = MHD_HTTP_NOT_FOUND;
   bds->sync_url = sync_url;
-  priv = GNUNET_CRYPTO_eddsa_key_create ();
-  GNUNET_CRYPTO_eddsa_key_get_public (priv,
+  GNUNET_CRYPTO_eddsa_key_create (&priv);
+  GNUNET_CRYPTO_eddsa_key_get_public (&priv,
                                       &bds->sync_pub.eddsa_pub);
-  GNUNET_free (priv);
   {
     struct TALER_TESTING_Command cmd = {
       .cls = bds,
diff --git a/src/lib/testing_api_cmd_backup_upload.c 
b/src/lib/testing_api_cmd_backup_upload.c
index d9f0c38..f6ac30a 100644
--- a/src/lib/testing_api_cmd_backup_upload.c
+++ b/src/lib/testing_api_cmd_backup_upload.c
@@ -330,13 +330,9 @@ backup_upload_run (void *cls,
   }
   else
   {
-    struct GNUNET_CRYPTO_EddsaPrivateKey *priv;
-
-    priv = GNUNET_CRYPTO_eddsa_key_create ();
-    bus->sync_priv.eddsa_priv = *priv;
-    GNUNET_CRYPTO_eddsa_key_get_public (priv,
+    GNUNET_CRYPTO_eddsa_key_create (&bus->sync_priv.eddsa_priv);
+    GNUNET_CRYPTO_eddsa_key_get_public (&bus->sync_priv.eddsa_priv,
                                         &bus->sync_pub.eddsa_pub);
-    GNUNET_free (priv);
   }
   if (0 != (SYNC_TESTING_UO_PREV_HASH_WRONG & bus->uopt))
     GNUNET_CRYPTO_random_block (GNUNET_CRYPTO_QUALITY_WEAK,

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



reply via email to

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