commit 98617cc7f8b04eb402822bdbd4214faee639cc53
parent 076a32f8e2a660729b32d072b3b7536f45b73e0c
Author: Casaburi Johannes <johannes.casaburi@students.bfh.ch>
Date: Sat, 9 Mar 2024 15:17:52 +0100
working on keys path
Diffstat:
3 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/src/donau/donau-httpd_keys.c b/src/donau/donau-httpd_keys.c
@@ -427,7 +427,7 @@ struct HelperState
/**
* Handle for the donation_unit/RSA helper.
*/
- struct TALER_CRYPTO_RsaDonationUnitHelper*rsadh;
+ struct DONAU_CRYPTO_RsaDonationUnitHelper*rsadh;
/**
* Handle for the donation_unit/CS helper.
@@ -625,9 +625,9 @@ insert_donation_unit_cb (void *cls,
GNUNET_JSON_pack_uint64 ("validity_year",
validity_year),
TALER_JSON_pack_amount ("value",
- &value)
- // GNUNET_JSON_pack_string ("section_name",
- // hd->section_name)
+ value),
+ GNUNET_JSON_pack_string ("section_name",
+ hd->section_name)
)));
return GNUNET_OK;
}
@@ -1680,8 +1680,8 @@ setup_key_helpers (struct HelperState *hs)
static void
donation_unit_info_cb (
void *cls,
- const struct DONAU_DonationUnitPublicKey *donation_unit_pub,
const struct DONAU_DonationUnitHashP *h_donation_unit_pub,
+ const struct DONAU_DonationUnitPublicKey *donation_unit_pub,
uint64_t validity_year,
struct TALER_Amount *value)
{
diff --git a/src/donaudb/pg_iterate_donation_units.c b/src/donaudb/pg_iterate_donation_units.c
@@ -91,10 +91,10 @@ iterate_donation_units_cb (void *cls,
return;
}
ctx->cb (ctx->cb_cls,
- h_donation_unit_pub,
- donation_unit_pub,
+ &h_donation_unit_pub,
+ &donation_unit_pub,
validity_year,
- value);
+ &value);
GNUNET_PQ_cleanup_result (rs);
}
}
diff --git a/src/include/donaudb_plugin.h b/src/include/donaudb_plugin.h
@@ -132,10 +132,10 @@ typedef void
typedef void
(*DONAUDB_IterateDonationUnitsCallback)(
void *cls,
- const struct DONAU_DonationUnitHashP h_donation_unit_pub,
- const struct DONAU_DonationUnitPublicKey donation_unit_pub,
+ const struct DONAU_DonationUnitHashP *h_donation_unit_pub,
+ const struct DONAU_DonationUnitPublicKey *donation_unit_pub,
uint64_t validity_year,
- struct TALER_Amount value);
+ struct TALER_Amount *value);
/**
* Return charities.