diff options
Diffstat (limited to 'src/donau/donau-httpd_batch-submit.c')
-rw-r--r-- | src/donau/donau-httpd_batch-submit.c | 23 |
1 files changed, 5 insertions, 18 deletions
diff --git a/src/donau/donau-httpd_batch-submit.c b/src/donau/donau-httpd_batch-submit.c index 3348ea6..681f25a 100644 --- a/src/donau/donau-httpd_batch-submit.c +++ b/src/donau/donau-httpd_batch-submit.c @@ -38,7 +38,7 @@ */ struct InsertReceiptContext { - struct DONAU_HashDonorTaxId *h_tax_number; + struct DONAU_HashDonorTaxId *h_donor_tax_id; struct DONAU_DonationReceipt *donation_receipts; uint64_t donation_year; }; @@ -87,8 +87,8 @@ DH_handler_submit_receipts_post (struct DH_RequestContext *rc, const json_t *donation_receipts; struct GNUNET_JSON_Specification spec[] = { - GNUNET_JSON_spec_fixed_auto ("h_tax_number", - &irc.h_tax_number), + GNUNET_JSON_spec_fixed_auto ("h_donor_tax_id", + &irc.h_donor_tax_id), GNUNET_JSON_spec_array_const ("donation_receipts", &donation_receipts), GNUNET_JSON_spec_uint64 ("donation_year", @@ -161,27 +161,14 @@ DH_handler_submit_receipts_post (struct DH_RequestContext *rc, for (size_t i = 0; i < num_dr; i++) { // FIXME Check sigs, Donation unit hashes, nonce - // /* verify charity signature */ - // if (GNUNET_OK != - // DONAU_ (num_bkps, - // bkps, - // &charity_meta.charity_pub, - // &charity_sig)) - // { - // GNUNET_break_op (0); - // return TALER_MHD_reply_with_error ( - // rc->connection, - // MHD_HTTP_FORBIDDEN, - // TALER_EC_DONAU_CHARITY_SIGNATURE_INVALID, - // NULL); - // } + } enum GNUNET_DB_QueryStatus qs; qs = DH_plugin->insert_submitted_receipts ( DH_plugin->cls, - irc.h_tax_number, + irc.h_donor_tax_id, num_dr, irc.donation_receipts, irc.donation_year); |