donau

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

commit 03c977e2e901ab8083c698de7b4926ef7943ccfb
parent 6c0b1c7ffbaadf544cc8a92eb092f0cfd31d5bbc
Author: Pius Loosli <loosp2@bfh.ch>
Date:   Wed, 29 Nov 2023 14:54:41 +0100

[build] src/include/donau_service.h: comment out portions of code

Diffstat:
Msrc/include/donau_service.h | 220++++++++++++++++++++++++++++++++++++++++---------------------------------------
1 file changed, 111 insertions(+), 109 deletions(-)

diff --git a/src/include/donau_service.h b/src/include/donau_service.h @@ -26,9 +26,8 @@ #include <jansson.h> #include "taler_util.h" -#include "taler_donau_util.h" +#include "donau_util.h" #include "taler/taler_error_codes.h" -#include "taler_kyclogic_lib.h" #include <gnunet/gnunet_curl_lib.h> @@ -428,33 +427,33 @@ DONAU_get_signing_key_info ( /* ********************* POST / issue receipt *********************** */ -/** - * @brief Type including Parameters to create blinded signature - */ -struct TALER_BlindedUniqueDonationIdentifier -{ - /** - * Type of the sign blinded message - */ - enum TALER_DenominationCipher cipher; +// /** +// * @brief Type including Parameters to create blinded signature +// */ +// struct TALER_BlindedUniqueDonationIdentifier +// { +// /** +// * Type of the sign blinded message +// */ +// enum TALER_DenominationCipher cipher; - /** - * Details, depending on @e cipher. - */ - union - { - /** - * If we use #TALER_DENOMINATION_CS in @a cipher. - */ - struct TALER_BlindedCsPlanchet cs_blinded_donor; +// /** +// * Details, depending on @e cipher. +// */ +// union +// { +// /** +// * If we use #TALER_DENOMINATION_CS in @a cipher. +// */ +// struct TALER_BlindedCsPlanchet cs_blinded_donor; - /** - * If we use #TALER_DENOMINATION_RSA in @a cipher. - */ - struct TALER_BlindedRsaPlanchet rsa_blinded_donor; +// /** +// * If we use #TALER_DENOMINATION_RSA in @a cipher. +// */ +// struct TALER_BlindedRsaPlanchet rsa_blinded_donor; - } details; -}; +// } details; +// }; /** * @brief A Batch Submit Handle @@ -543,15 +542,15 @@ typedef void * @return a handle for this request; NULL if the inputs are invalid (i.e. * signatures fail to verify). In this case, the callback is not called. */ -struct DONAU_BatchIssueReceiptHandle * -DONAU_charity_issue_receipt ( - struct GNUNET_CURL_Context *ctx, - const char *url, - const struct DONAU_CharityPrivateKeyP *charity_priv, - unsigned int num_bkp, - const struct TALER_BlindedUniqueDonationIdentifierKeyPair bkp[static num_bkp], - DONAU_BatchIssueReceiptsCallback cb, - void *cb_cls); +// struct DONAU_BatchIssueReceiptHandle * +// DONAU_charity_issue_receipt ( +// struct GNUNET_CURL_Context *ctx, +// const char *url, +// const struct DONAU_CharityPrivateKeyP *charity_priv, +// unsigned int num_bkp, +// const struct TALER_BlindedUniqueDonationIdentifierKeyPair bkp[static num_bkp], +// DONAU_BatchIssueReceiptsCallback cb, +// void *cb_cls); /** * Cancel a batch issue receipt request. This function cannot be used @@ -711,43 +710,43 @@ DONAU_donor_receipts_to_statement_cancel ( struct DONAU_CsRBatchIssueHandle; -/** - * Details about a response for a CS R request. - */ -struct DONAU_CsRBatchIssueResponse -{ - /** - * HTTP response data. - */ - struct DONAU_HttpResponse hr; - - /** - * Details about the response. - */ - union - { - /** - * Details if the status is #MHD_HTTP_OK. - */ - struct - { - /** - * Values contributed by the donau for the - * respective coin's batch-issue operation. - */ - struct TALER_DonauBatchIssueValues alg_values; - } ok; - - /** - * Details if the status is #MHD_HTTP_GONE. - */ - struct - { - /* TODO: returning full details is not implemented */ - } gone; - - } details; -}; +// /** +// * Details about a response for a CS R request. +// */ +// struct DONAU_CsRBatchIssueResponse +// { +// /** +// * HTTP response data. +// */ +// struct DONAU_HttpResponse hr; + +// /** +// * Details about the response. +// */ +// union +// { +// /** +// * Details if the status is #MHD_HTTP_OK. +// */ +// struct +// { +// /** +// * Values contributed by the donau for the +// * respective coin's batch-issue operation. +// */ +// struct TALER_DonauBatchIssueValues alg_values; +// } ok; + +// /** +// * Details if the status is #MHD_HTTP_GONE. +// */ +// struct +// { +// /* TODO: returning full details is not implemented */ +// } gone; + +// } details; +// }; /** @@ -757,10 +756,10 @@ struct DONAU_CsRBatchIssueResponse * @param cls closure * @param csrr response details */ -typedef void -(*DONAU_CsRBatchIssueCallback) ( - void *cls, - const struct DONAU_CsRBatchIssueResponse *csrr); +// typedef void +// (*DONAU_CsRBatchIssueCallback) ( +// void *cls, +// const struct DONAU_CsRBatchIssueResponse *csrr); /** @@ -776,14 +775,14 @@ typedef void * if the inputs are invalid (i.e.donation unit key not with this donau). * In this case, the callback is not called. */ -struct DONAU_CsRBatchIssueHandle * -DONAU_csr_batch_issue ( - struct GNUNET_CURL_Context *curl_ctx, - const char *donau_url, - const struct DONAU_DonationUnitPublicKey *pk, - const struct TALER_CsNonce *nonce, - DONAU_CsRBatchIssueCallback res_cb, - void *res_cb_cls); +// struct DONAU_CsRBatchIssueHandle * +// DONAU_csr_batch_issue ( +// struct GNUNET_CURL_Context *curl_ctx, +// const char *donau_url, +// const struct DONAU_DonationUnitPublicKey *pk, +// const struct TALER_CsNonce *nonce, +// DONAU_CsRBatchIssueCallback res_cb, +// void *res_cb_cls); /** @@ -793,9 +792,9 @@ DONAU_csr_batch_issue ( * * @param csrh the batch-issue handle */ -void -DONAU_csr_batch_issue_cancel ( - struct DONAU_CsRBatchIssueHandle *csrh); +// void +// DONAU_csr_batch_issue_cancel ( +// struct DONAU_CsRBatchIssueHandle *csrh); /* ********************* GET /charities/ *********************** */ @@ -818,12 +817,12 @@ struct CharitySummary /** * Max donation amout for this charitiy and year. */ - struct TALER_Amount amount; + // struct TALER_Amount amount; /** * Current donation amount for this charity and year. */ - struct TALER_Amount amount; + // struct TALER_Amount amount; }; @@ -920,9 +919,9 @@ DONAU_charities_get ( * * @param rgh the charity request handle */ -void -DONAU_charities_get_cancel ( - struct DONAU_charitiesGetHandle *rgh); +// void +// DONAU_charities_get_cancel ( +// struct DONAU_charitiesGetHandle *rgh); /* ********************* GET /charities/$CHARITY_ID *********************** */ @@ -1059,9 +1058,9 @@ DONAU_charity_get ( * * @param rgh the charity request handle */ -void -DONAU_charity_get_cancel ( - struct DONAU_charityGetHandle *rgh); +// void +// DONAU_charity_get_cancel ( +// struct DONAU_charityGetHandle *rgh); /* ********************* POST /charities/ *********************** */ @@ -1160,14 +1159,14 @@ typedef void * @return a handle for this request; NULL if the inputs are invalid (i.e. * signatures fail to verify). In this case, the callback is not called. */ -struct DONAU_CharityPostHandle * -DONAU_charity_post ( - struct GNUNET_CURL_Context *ctx, - const char *url, - const charityRequest charity_req, - const struct DONAU_BearerToken bearer, - DONAU_PostCharityResponseCallback cb, - void *cb_cls); +// struct DONAU_CharityPostHandle * +// DONAU_charity_post ( +// struct GNUNET_CURL_Context *ctx, +// const char *url, +// const charityRequest charity_req, +// const struct DONAU_BearerToken bearer, +// DONAU_PostCharityResponseCallback cb, +// void *cb_cls); /** * Cancel a charity Post request. This function cannot be used @@ -1175,9 +1174,9 @@ DONAU_charity_post ( * * @param rgh the charity post handle */ -void -DONAU_charity_post_cancel ( - struct DONAU_charityPostHandle *rgh); +// void +// DONAU_charity_post_cancel ( +// struct DONAU_charityPostHandle *rgh); /* ********************* PATCH /charities/$CHARITY_ID *********************** */ @@ -1245,9 +1244,9 @@ DONAU_charity_patch ( * * @param rgh the charity patch handle */ -void -DONAU_charity_patch_cancel ( - struct DONAU_charityPatchHandle *rgh); +// void +// DONAU_charity_patch_cancel ( +// struct DONAU_charityPatchHandle *rgh); /* ********************* DELETE /charities/$CHARITY_ID *********************** */ @@ -1318,3 +1317,5 @@ DONAU_charity_delete ( void DONAU_charity_post_delete ( struct DONAU_CharityDeleteHandle *rgh); + +#endif +\ No newline at end of file