gnunet-svn
[Top][All Lists]
Advanced

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

[taler-anastasis] branch master updated: pointer fix


From: gnunet
Subject: [taler-anastasis] branch master updated: pointer fix
Date: Tue, 12 May 2020 21:43:02 +0200

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

dennis-neufeld pushed a commit to branch master
in repository anastasis.

The following commit(s) were added to refs/heads/master by this push:
     new 63476e1  pointer fix
63476e1 is described below

commit 63476e1bf9006a44db149a96c71069ece35fabcc
Author: Dennis Neufeld <address@hidden>
AuthorDate: Tue May 12 19:42:56 2020 +0000

    pointer fix
---
 src/lib/anastasis.c | 32 +++++++++++++++-----------------
 1 file changed, 15 insertions(+), 17 deletions(-)

diff --git a/src/lib/anastasis.c b/src/lib/anastasis.c
index 8a32f05..3085429 100644
--- a/src/lib/anastasis.c
+++ b/src/lib/anastasis.c
@@ -223,19 +223,19 @@ struct ANASTASIS_Challenge
   /**
    * url to the escrow provider for this challenge
    */
-  char *url;
+  const char *url;
   /**
    * uuid which defines this challenge
    */
-  uuid_t challenge_uuid;
+  const uuid_t *challenge_uuid;
   /**
    * Key used to encrypt the truth passed to the server
    */
-  struct ANASTASIS_CRYPTO_TruthKeyP truth_key;
+  const struct ANASTASIS_CRYPTO_TruthKeyP *truth_key;
   /**
    * Salt used to encrypt the truth
    */
-  struct ANASTASIS_CRYPTO_SaltP truth_salt;
+  const struct ANASTASIS_CRYPTO_SaltP *truth_salt;
   /**
    * plaintext challenge which is sent to the client
    */
@@ -247,7 +247,7 @@ struct ANASTASIS_Challenge
   /**
    * method of the challenge
    */
-  char *escrow_method;
+  const char *escrow_method;
   /**
    * keyshare lookup operation
    */
@@ -583,24 +583,22 @@ policy_lookup_cb (void *cls,
     cs[i].recovery = r;
     GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
                 "At %s:%d challenge_uuid is %s-%llu b\n", __FILE__, __LINE__,
-                TALER_B2S (&cs[i].challenge_uuid),
-                (unsigned long long) sizeof (cs[i].challenge_uuid));
+                TALER_B2S (cs[i].challenge_uuid),
+                (unsigned long long) sizeof (*cs[i].challenge_uuid));
     GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
-                "At %s:%d url is %s-%llu b\n", __FILE__, __LINE__,
-                TALER_B2S (&cs[i].url),
-                (unsigned long long) sizeof (cs[i].url));
+                "At %s:%d url is %s\n", __FILE__, __LINE__,
+                cs[i].url);
     GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
                 "At %s:%d truth key is %s-%llu b\n", __FILE__, __LINE__,
-                TALER_B2S (&cs[i].truth_key),
-                (unsigned long long) sizeof (cs[i].truth_key));
+                TALER_B2S (cs[i].truth_key),
+                (unsigned long long) sizeof (*cs[i].truth_key));
     GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
                 "At %s:%d truth_salt is %s-%llu b\n", __FILE__, __LINE__,
-                TALER_B2S (&cs[i].truth_salt),
-                (unsigned long long) sizeof (cs[i].truth_salt));
+                TALER_B2S (cs[i].truth_salt),
+                (unsigned long long) sizeof (*cs[i].truth_salt));
     GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
-                "At %s:%d escrow method is %s-%llu b\n", __FILE__, __LINE__,
-                TALER_B2S (&cs[i].truth_salt),
-                (unsigned long long) sizeof (cs[i].truth_salt));
+                "At %s:%d escrow method is %s\n", __FILE__, __LINE__,
+                cs[i].escrow_method);
   }
 
   for (unsigned int j = 0; j < r->ri->dps_len; j++ )

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



reply via email to

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