gnunet-svn
[Top][All Lists]
Advanced

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

[taler-exchange] branch master updated: include 0-terminator when hashin


From: gnunet
Subject: [taler-exchange] branch master updated: include 0-terminator when hashing
Date: Tue, 02 May 2023 17:32:29 +0200

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

grothoff pushed a commit to branch master
in repository exchange.

The following commit(s) were added to refs/heads/master by this push:
     new 4267f1d7 include 0-terminator when hashing
4267f1d7 is described below

commit 4267f1d76299252de273fa723c6037fef30fb7f1
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Tue May 2 17:32:26 2023 +0200

    include 0-terminator when hashing
---
 src/util/offline_signatures.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/util/offline_signatures.c b/src/util/offline_signatures.c
index 15dda8b3..40ccfbc2 100644
--- a/src/util/offline_signatures.c
+++ b/src/util/offline_signatures.c
@@ -718,7 +718,7 @@ TALER_exchange_offline_wire_add_sign (
                     &kv.h_payto);
   if (NULL != conversion_url)
     GNUNET_CRYPTO_hash (conversion_url,
-                        strlen (conversion_url),
+                        strlen (conversion_url) + 1,
                         &kv.h_conversion_url);
   TALER_json_hash (debit_restrictions,
                    &kv.h_debit_restrictions);
@@ -750,7 +750,7 @@ TALER_exchange_offline_wire_add_verify (
                     &aw.h_payto);
   if (NULL != conversion_url)
     GNUNET_CRYPTO_hash (conversion_url,
-                        strlen (conversion_url),
+                        strlen (conversion_url) + 1,
                         &aw.h_conversion_url);
   TALER_json_hash (debit_restrictions,
                    &aw.h_debit_restrictions);
@@ -1172,7 +1172,7 @@ TALER_exchange_wire_signature_check (
                     &wd.h_wire_details);
   if (NULL != conversion_url)
     GNUNET_CRYPTO_hash (conversion_url,
-                        strlen (conversion_url),
+                        strlen (conversion_url) + 1,
                         &wd.h_conversion_url);
   TALER_json_hash (debit_restrictions,
                    &wd.h_debit_restrictions);
@@ -1203,7 +1203,7 @@ TALER_exchange_wire_signature_make (
                     &wd.h_wire_details);
   if (NULL != conversion_url)
     GNUNET_CRYPTO_hash (conversion_url,
-                        strlen (conversion_url),
+                        strlen (conversion_url) + 1,
                         &wd.h_conversion_url);
   TALER_json_hash (debit_restrictions,
                    &wd.h_debit_restrictions);

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

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