donau

Donation authority for GNU Taler (experimental)
Log | Files | Refs | Submodules | README | LICENSE

commit 802ff179ddcb7b327bf8287605e8d91563651225
parent e44f94f92a6a97d34ef308f9a3c7411789af349a
Author: Casaburi Johannes <johannes.casaburi@students.bfh.ch>
Date:   Mon, 20 Nov 2023 14:42:31 +0100

fixes

Diffstat:
Msrc/include/donau_crypto_lib.h | 2+-
Msrc/util/donau_signatures.c | 13++++++++-----
2 files changed, 9 insertions(+), 6 deletions(-)

diff --git a/src/include/donau_crypto_lib.h b/src/include/donau_crypto_lib.h @@ -255,7 +255,7 @@ DONAU_donation_statement_verify ( const unsigned int year, const struct TALER_DONAU_HashDonorTaxId *i, const struct TALER_DONAU_EddsaPublicKeyP *donau_pub, - const struct TALER_DonauSignatureP *statement_sig); + struct TALER_DonauSignatureP *statement_sig); #endif diff --git a/src/util/donau_signatures.c b/src/util/donau_signatures.c @@ -68,14 +68,15 @@ DONAU_donation_statement_sign ( struct TALER_DonauSignatureP *statement_sig) { struct TALER_DonationStatementConfirmationPS tps = { - .purpose.size = htonl (sizeof (struct TALER_DonationStatementConfirmationPS)), + .purpose.size = htonl (sizeof (struct + TALER_DonationStatementConfirmationPS)), .purpose.purpose = htonl (DONAU_SIGNATURE_DONAU_DONATION_STATEMENT), .year = htonl (year), .i = *i }; TALER_amount_hton (&tps.amount_tot, - amount_tot); + amount_tot); GNUNET_CRYPTO_eddsa_sign (&donau_priv->eddsa_priv, &tps, @@ -88,18 +89,19 @@ DONAU_donation_statement_verify ( const struct TALER_Amount *amount_tot, const unsigned int year, const struct TALER_DONAU_HashDonorTaxId *i, - const struct TALER_DONAU_PublicKeyP *donau_pub, + const struct TALER_DONAU_EddsaPublicKeyP *donau_pub, struct TALER_DonauSignatureP *statement_sig) { struct TALER_DonationStatementConfirmationPS tps = { - .purpose.size = htonl (sizeof (struct TALER_DonationStatementConfirmationPS)), + .purpose.size = htonl (sizeof (struct + TALER_DonationStatementConfirmationPS)), .purpose.purpose = htonl (DONAU_SIGNATURE_DONAU_DONATION_STATEMENT), .year = htonl (year), .i = *i }; TALER_amount_hton (&tps.amount_tot, - amount_tot); + amount_tot); return GNUNET_CRYPTO_eddsa_verify (DONAU_SIGNATURE_DONAU_DONATION_STATEMENT, @@ -108,4 +110,5 @@ DONAU_donation_statement_verify ( &donau_pub->eddsa_pub); } + /* end of donau_signatures.c */