donau

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

commit 723c6ea1ee08a5ff564e53f575806381825cecce
parent 98617cc7f8b04eb402822bdbd4214faee639cc53
Author: Casaburi Johannes <johannes.casaburi@students.bfh.ch>
Date:   Sat,  9 Mar 2024 17:09:48 +0100

working on keys path

Diffstat:
Msrc/donau/donau-httpd_keys.c | 17+++++++++--------
1 file changed, 9 insertions(+), 8 deletions(-)

diff --git a/src/donau/donau-httpd_keys.c b/src/donau/donau-httpd_keys.c @@ -605,13 +605,12 @@ insert_donation_unit_cb (void *cls, { struct KeysBuilderContext *kbc = cls; struct HelperDonationUnit *hd = value; - struct DH_DonationUnitKey *donation_unit; - uint64_t validity_year; + struct DH_DonationUnitKey *du; - donation_unit = GNUNET_CONTAINER_multihashmap_get ( + du = GNUNET_CONTAINER_multihashmap_get ( kbc->ksh->donation_unit_map, h_donation_unit_pub); - if (NULL != donation_unit) + if (NULL != du) return GNUNET_OK; /* skip: this key is already active! */ // if (GNUNET_TIME_relative_is_zero (hd->validity_duration)) // return GNUNET_OK; /* this key already expired! */ @@ -622,10 +621,12 @@ insert_donation_unit_cb (void *cls, GNUNET_JSON_PACK ( GNUNET_JSON_pack_data_auto ("donation_unit_pub", &hd->donation_unit_pub), - GNUNET_JSON_pack_uint64 ("validity_year", - validity_year), - TALER_JSON_pack_amount ("value", - value), + // GNUNET_JSON_pack_uint64 ("validity_year", + // du->validity_year), + // TALER_JSON_pack_amount ("value", + // &du->value), + GNUNET_JSON_pack_data_auto ("donation_unit_secmod_sig", + &hd->sm_sig), GNUNET_JSON_pack_string ("section_name", hd->section_name) )));