gnunet-svn
[Top][All Lists]
Advanced

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

[taler-donau] branch master updated: fix #include


From: gnunet
Subject: [taler-donau] branch master updated: fix #include
Date: Mon, 13 Nov 2023 16:28:41 +0100

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

grothoff pushed a commit to branch master
in repository donau.

The following commit(s) were added to refs/heads/master by this push:
     new d70853c  fix #include
d70853c is described below

commit d70853cd08ef917d10d67df7e17c1bfdb16e9616
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Mon Nov 13 16:28:39 2023 +0100

    fix #include
---
 src/util/charity_signatures.c | 27 ++++++++++++++-------------
 1 file changed, 14 insertions(+), 13 deletions(-)

diff --git a/src/util/charity_signatures.c b/src/util/charity_signatures.c
index e90a20f..20aa67d 100644
--- a/src/util/charity_signatures.c
+++ b/src/util/charity_signatures.c
@@ -24,14 +24,14 @@
 #include "donau_util.h"
 #include <gnunet/gnunet_common.h>
 #include <taler/taler_signatures.h>
-
+#include "donau_signatures.h"
 
 
 GNUNET_NETWORK_STRUCT_BEGIN
 
 /**
- * @brief Format used to generate the charity signature on all blinded 
- * identifiers and key pairs as a agreement of the charity with the 
+ * @brief Format used to generate the charity signature on all blinded
+ * identifiers and key pairs as a agreement of the charity with the
  * donation request from the donor.
  */
 struct TALER_BudiKeyPairTrackPS
@@ -42,17 +42,17 @@ struct TALER_BudiKeyPairTrackPS
    */
   struct GNUNET_CRYPTO_EccSignaturePurpose purpose;
 
-  /**
-   * num of bkps
-   */
-    unsigned int num_bkp;
-
   /**
    * List of BUDI-Key-Pairs. A BUID-Key-Pair contains the BUDI value which 
must be
    * signed (blindly) by the Donau.
    */
   struct TALER_BlindedUniqueDonationIdentifierKeyPair bkp;
 
+  /**
+   * num of bkps
+   */
+  uint32_t num_bkp;
+
 };
 GNUNET_NETWORK_STRUCT_END
 
@@ -64,9 +64,9 @@ DONAU_charity_budi_key_pair_sign (
   struct TALER_CharitySignatureP *charity_sig)
 {
   struct TALER_BudiKeyPairTrackPS tps = {
-    .purpose.size = htonl (sizeof (bkp[0])* num_bkp),
+    .purpose.size = htonl (sizeof (bkp[0]) * num_bkp),
     .purpose.purpose = htonl (DONAU_SIGNATURE_CHARITY_DONATION_CONFIRMATION),
-    .num_bkp = num_bkp,
+    .num_bkp = htonl (num_bkp),
     .bkp = *bkp
   };
 
@@ -76,16 +76,16 @@ DONAU_charity_budi_key_pair_sign (
 }
 
 
-
 enum GNUNET_GenericReturnValue
 DONAU_charity_budi_key_pair_verify (
   const unsigned int num_bkp,
-  const struct DONAU_BlindedUniqueDonationIdentifierKeyPair *bkp[static 
num_bkp],
+  const struct DONAU_BlindedUniqueDonationIdentifierKeyPair *bkp[static
+                                                                 num_bkp],
   const struct TALER_DONAU_CharityPublicKeyP *charity_pub,
   const struct TALER_CharitySignatureP *charity_sig)
 {
   struct TALER_BudiKeyPairTrackPS tps = {
-    .purpose.size = htonl (sizeof (bkp[0])* num_bkp),
+    .purpose.size = htonl (sizeof (bkp[0]) * num_bkp),
     .purpose.purpose = htonl (DONAU_SIGNATURE_CHARITY_DONATION_CONFIRMATION),
     .num_bkp = num_bkp,
     .bkp = *bkp
@@ -98,4 +98,5 @@ DONAU_charity_budi_key_pair_verify (
                                 &charity_pub->eddsa_pub);
 }
 
+
 /* end of charity_signatures.c */

-- 
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]