donau

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

commit 3bbdce24b02452530b08c02058c411fd4ca4ac2f
parent eda9bd4254d5a653acb30bdaac16ac441a7bef62
Author: Matyja Lukas Adam <lukas.matyja@students.bfh.ch>
Date:   Sun, 28 Apr 2024 16:57:59 +0200

merge

Diffstat:
Msrc/include/donau_json_lib.h | 4+++-
Msrc/json/donau_json.c | 11+++++++----
Msrc/lib/donau_api_batch_submit_receipts.c | 10+++++-----
3 files changed, 15 insertions(+), 10 deletions(-)

diff --git a/src/include/donau_json_lib.h b/src/include/donau_json_lib.h @@ -80,7 +80,9 @@ DONAU_JSON_spec_blinded_donation_identifier ( */ struct GNUNET_JSON_Specification DONAU_JSON_spec_blinded_donation_unit_sig (const char *field, - struct DONAU_BlindedDonationUnitSignature *sig); + struct + DONAU_BlindedDonationUnitSignature * + sig); /** diff --git a/src/json/donau_json.c b/src/json/donau_json.c @@ -366,6 +366,7 @@ DONAU_JSON_spec_blinded_donation_identifier (const char *field, return ret; } + /** * Parse given JSON object to blinded donation unit signature. * @@ -376,8 +377,8 @@ DONAU_JSON_spec_blinded_donation_identifier (const char *field, */ static enum GNUNET_GenericReturnValue parse_blinded_donation_unit_sig (void *cls, - json_t *root, - struct GNUNET_JSON_Specification *spec) + json_t *root, + struct GNUNET_JSON_Specification *spec) { struct DONAU_BlindedDonationUnitSignature *du_sig = spec->ptr; struct GNUNET_CRYPTO_BlindedSignature *blinded_sig; @@ -468,7 +469,7 @@ parse_blinded_donation_unit_sig (void *cls, */ static void clean_blinded_donation_unit_sig (void *cls, - struct GNUNET_JSON_Specification *spec) + struct GNUNET_JSON_Specification *spec) { struct DONAU_BlindedDonationUnitSignature *du_sig = spec->ptr; @@ -479,7 +480,9 @@ clean_blinded_donation_unit_sig (void *cls, struct GNUNET_JSON_Specification DONAU_JSON_spec_blinded_donation_unit_sig (const char *field, - struct DONAU_BlindedDonationUnitSignature *sig) + struct + DONAU_BlindedDonationUnitSignature * + sig) { struct GNUNET_JSON_Specification ret = { .parser = &parse_blinded_donation_unit_sig, diff --git a/src/lib/donau_api_batch_submit_receipts.c b/src/lib/donau_api_batch_submit_receipts.c @@ -93,8 +93,8 @@ submit_request_body_to_json (const size_t num_drs, &drs[i].h_donation_unit_pub), GNUNET_JSON_pack_data_auto ("nonce", &drs[i].nonce), - DONAU_JSON_pack_donation_unit_sig ("donau_sig", - &drs[i].du_sig)); + DONAU_JSON_pack_donation_unit_sig ("donau_sig", + &drs[i].du_sig)); GNUNET_assert (0 == json_array_append_new (donation_receipts, receipt)); @@ -139,17 +139,17 @@ handle_batch_submit_finished (void *cls, biresp.hr.ec = TALER_JSON_get_error_code (j); biresp.hr.hint = TALER_JSON_get_error_hint (j); break; - //One of the signatures is invalid. + // One of the signatures is invalid. case MHD_HTTP_FORBIDDEN: biresp.hr.ec = TALER_JSON_get_error_code (j); biresp.hr.hint = TALER_JSON_get_error_hint (j); break; - //At least one of the donation unit keys is not known to the Donau. + // At least one of the donation unit keys is not known to the Donau. case MHD_HTTP_NOT_FOUND: biresp.hr.ec = TALER_JSON_get_error_code (j); biresp.hr.hint = TALER_JSON_get_error_hint (j); break; - //At least one of the corresponding private keys is deprecated/leaked. + // At least one of the corresponding private keys is deprecated/leaked. case MHD_HTTP_GONE: biresp.hr.ec = TALER_JSON_get_error_code (j); biresp.hr.hint = TALER_JSON_get_error_hint (j);