donau

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

commit c96e2df6a3ca53fd5a9e35bda0fddb99764f7c16
parent 9947c286d21a90e78996f0620d226c6fcdf013f5
Author: Christian Grothoff <christian@grothoff.org>
Date:   Wed, 24 Sep 2025 09:35:02 +0200

fix naming convention break

Diffstat:
Msrc/include/donau_crypto_lib.h | 1+
Msrc/include/donau_util.h | 18+++++++++---------
Msrc/testing/testing_api_cmd_donation_statement_get.c | 4++--
Msrc/util/qr.c | 5+++--
4 files changed, 15 insertions(+), 13 deletions(-)

diff --git a/src/include/donau_crypto_lib.h b/src/include/donau_crypto_lib.h @@ -167,6 +167,7 @@ DONAU_donation_unit_pub_hash ( struct DONAU_DonationUnitHashP *donation_unit_hash ); + /** * Hash used to represent a Donation Receipt */ diff --git a/src/include/donau_util.h b/src/include/donau_util.h @@ -1,6 +1,6 @@ /* This file is part of TALER - Copyright (C) 2014-2023 Taler Systems SA + Copyright (C) 2014-2025 Taler Systems SA TALER is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software @@ -36,15 +36,15 @@ const struct GNUNET_OS_ProjectData * DONAU_project_data (void); -// FIXME: remove public key, only needed for testing. /** - * Generates the String for the QR Code containing the donation statement. - * - * The returned string will be freshly allocated, and must be free'd - * with #GNUNET_free(). - */ + * Generates the String for the QR Code containing the donation statement. + * + * The returned string will be freshly allocated, and must be free'd + * with #GNUNET_free(). + */ char * -generate_QR_string (const struct DONAU_DonauPublicKeyP *pub_key, - const struct DONAU_DonationStatement *donation_statement); +DONAU_generate_qr_string ( + const struct DONAU_DonauPublicKeyP *pub_key, + const struct DONAU_DonationStatement *donation_statement); #endif diff --git a/src/testing/testing_api_cmd_donation_statement_get.c b/src/testing/testing_api_cmd_donation_statement_get.c @@ -123,8 +123,8 @@ donation_statement_status_cb (void *cls, &ss->donation_statement. donation_statement_sig)) { - char *qr_string = generate_QR_string (&dsr->details.ok.donau_pub, - &ss->donation_statement); + char *qr_string = DONAU_generate_qr_string (&dsr->details.ok.donau_pub, + &ss->donation_statement); GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "qr-string: %s\n", qr_string); GNUNET_free (qr_string); diff --git a/src/util/qr.c b/src/util/qr.c @@ -26,8 +26,9 @@ // FIXME: remove public key, only needed for testing. // The verification app should get the public key directly from the Donau. char * -generate_QR_string (const struct DONAU_DonauPublicKeyP *pub_key, - const struct DONAU_DonationStatement *donation_statement) +DONAU_generate_qr_string (const struct DONAU_DonauPublicKeyP *pub_key, + const struct DONAU_DonationStatement * + donation_statement) { /* The string will be structured as follows: YEAR/TOTALAMOUNT/TAXID/TAXIDSALT/ED25519SIGNATURE/PUBKEY */ char *end_sig;