diff options
author | Özgür Kesim <oec-taler@kesim.org> | 2022-06-27 14:11:46 +0200 |
---|---|---|
committer | Özgür Kesim <oec-taler@kesim.org> | 2022-06-27 14:11:46 +0200 |
commit | 87025cfd178780f2e928019163ce81c1b7675c57 (patch) | |
tree | eef4e91e6a52fc7a434e9d9efa64c938b935fef1 /src/testing | |
parent | d2537de68cbe05f873874121491bae8a59729480 (diff) |
age restriction support in exchange_api_purse_create_with_deposit added
Diffstat (limited to 'src/testing')
-rw-r--r-- | src/testing/testing_api_cmd_purse_create_deposit.c | 10 | ||||
-rw-r--r-- | src/testing/testing_api_cmd_purse_deposit.c | 10 |
2 files changed, 2 insertions, 18 deletions
diff --git a/src/testing/testing_api_cmd_purse_create_deposit.c b/src/testing/testing_api_cmd_purse_create_deposit.c index ef98c9055..c49c4bbb0 100644 --- a/src/testing/testing_api_cmd_purse_create_deposit.c +++ b/src/testing/testing_api_cmd_purse_create_deposit.c @@ -207,7 +207,6 @@ deposit_run (void *cls, const struct TALER_TESTING_Command *coin_cmd; const struct TALER_CoinSpendPrivateKeyP *coin_priv; const struct TALER_AgeCommitmentProof *age_commitment_proof = NULL; - struct TALER_AgeCommitmentHash h_age_commitment = {0}; const struct TALER_EXCHANGE_DenomPublicKey *denom_pub; const struct TALER_DenominationSignature *denom_pub_sig; @@ -242,14 +241,7 @@ deposit_run (void *cls, TALER_TESTING_interpreter_fail (is); return; } - if (NULL != age_commitment_proof) - { - TALER_age_commitment_hash (&age_commitment_proof->commitment, - &h_age_commitment); - } -#if FIXME_OEC - pd->age_commitment = *h_age_commitment; -#endif + pd->age_commitment_proof = age_commitment_proof; pd->denom_sig = *denom_pub_sig; pd->coin_priv = *coin_priv; pd->amount = cr->deposit_with_fee; diff --git a/src/testing/testing_api_cmd_purse_deposit.c b/src/testing/testing_api_cmd_purse_deposit.c index 57cc48cf8..b10c6d329 100644 --- a/src/testing/testing_api_cmd_purse_deposit.c +++ b/src/testing/testing_api_cmd_purse_deposit.c @@ -286,7 +286,6 @@ deposit_run (void *cls, const struct TALER_TESTING_Command *coin_cmd; const struct TALER_CoinSpendPrivateKeyP *coin_priv; const struct TALER_AgeCommitmentProof *age_commitment_proof = NULL; - struct TALER_AgeCommitmentHash h_age_commitment = {0}; const struct TALER_EXCHANGE_DenomPublicKey *denom_pub; const struct TALER_DenominationSignature *denom_pub_sig; @@ -321,14 +320,7 @@ deposit_run (void *cls, TALER_TESTING_interpreter_fail (is); return; } - if (NULL != age_commitment_proof) - { - TALER_age_commitment_hash (&age_commitment_proof->commitment, - &h_age_commitment); - } -#if FIXME_OEC - pd->age_commitment = *h_age_commitment; -#endif + pd->age_commitment_proof = age_commitment_proof; pd->denom_sig = *denom_pub_sig; pd->coin_priv = *coin_priv; pd->amount = cr->deposit_with_fee; |