diff options
author | Gian Demarmels <gian@demarmels.org> | 2022-01-11 21:21:18 +0100 |
---|---|---|
committer | Gian Demarmels <gian@demarmels.org> | 2022-02-04 15:36:11 +0100 |
commit | 5b7e8f9ac55990823363edffa0e907256d15ce4f (patch) | |
tree | 7c0b265ea23c46a40e131ea3eea16090688b0a0c /src/lib/exchange_api_withdraw.c | |
parent | daa7fdcfb1053bdd943ad7cd1bd8eb623d1c9157 (diff) | |
download | exchange-5b7e8f9ac55990823363edffa0e907256d15ce4f.tar.xz |
refactoring
Diffstat (limited to 'src/lib/exchange_api_withdraw.c')
-rw-r--r-- | src/lib/exchange_api_withdraw.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/lib/exchange_api_withdraw.c b/src/lib/exchange_api_withdraw.c index e42107ab9..5102b35a3 100644 --- a/src/lib/exchange_api_withdraw.c +++ b/src/lib/exchange_api_withdraw.c @@ -74,6 +74,11 @@ struct TALER_EXCHANGE_WithdrawHandle struct TALER_PlanchetDetail pd; /** + * Values of the @cipher selected + */ + struct TALER_ExchangeWithdrawValues alg_values; + + /** * Denomination key we are withdrawing. */ struct TALER_EXCHANGE_DenomPublicKey pk; @@ -122,6 +127,7 @@ handle_reserve_withdraw_finished ( blind_sig, &wh->ps, &wh->c_hash, + &wh->alg_values, &fc)) { wr.hr.http_status = 0; @@ -180,11 +186,14 @@ withdraw_cs_stage_two_callback (void *cls, switch (csrr->hr.http_status) { case MHD_HTTP_OK: - wh->ps.cs_r_pub = csrr->details.success.r_pubs; + wh->alg_values.cipher = TALER_DENOMINATION_CS; + wh->alg_values.details.cs_values.r_pub = csrr->details.success.r_pubs; TALER_planchet_blinding_secret_create (&wh->ps, - wh->pk.key.cipher); + wh->pk.key.cipher, + &wh->alg_values); if (GNUNET_OK != TALER_planchet_prepare (&wh->pk.key, + &wh->alg_values, &wh->ps, &wh->c_hash, &wh->pd)) @@ -256,6 +265,7 @@ TALER_EXCHANGE_withdraw ( case TALER_DENOMINATION_RSA: if (GNUNET_OK != TALER_planchet_prepare (&pk->key, + NULL, /* not needed in RSA*/ ps, &wh->c_hash, &wh->pd)) |