aboutsummaryrefslogtreecommitdiff
path: root/src/lib/exchange_api_withdraw.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/exchange_api_withdraw.c')
-rw-r--r--src/lib/exchange_api_withdraw.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/exchange_api_withdraw.c b/src/lib/exchange_api_withdraw.c
index 7b851b492..477af5446 100644
--- a/src/lib/exchange_api_withdraw.c
+++ b/src/lib/exchange_api_withdraw.c
@@ -242,9 +242,15 @@ TALER_EXCHANGE_withdraw (
TALER_denom_pub_deep_copy (&wh->pk.key,
&pk->key);
+
switch (pk->key.cipher)
{
case TALER_DENOMINATION_RSA:
+ struct TALER_CoinSpendPrivateKeyP priv;
+ alg_values.cipher = TALER_DENOMINATION_RSA;
+
+ TALER_planchet_setup_coin_priv (ps, &wh->alg_values, &priv);
+
if (GNUNET_OK !=
TALER_planchet_prepare (&pk->key,
&wh->alg_values,