summaryrefslogtreecommitdiff
path: root/src/lib/exchange_api_link.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-02-06 19:44:05 +0100
committerChristian Grothoff <christian@grothoff.org>2022-02-06 19:44:05 +0100
commit66abbcac3f9431862ec68cf8f85781b51f2633be (patch)
tree224609279d8c1a924ebb32f2b0560bf643e3dcff /src/lib/exchange_api_link.c
parente735475623c161637d0f0d291473d4bc1729d1ed (diff)
downloadexchange-66abbcac3f9431862ec68cf8f85781b51f2633be.tar.gz
exchange-66abbcac3f9431862ec68cf8f85781b51f2633be.tar.bz2
exchange-66abbcac3f9431862ec68cf8f85781b51f2633be.zip
-fix more FTBFS issues
Diffstat (limited to 'src/lib/exchange_api_link.c')
-rw-r--r--src/lib/exchange_api_link.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/lib/exchange_api_link.c b/src/lib/exchange_api_link.c
index 0a99679c3..ccc2d2648 100644
--- a/src/lib/exchange_api_link.c
+++ b/src/lib/exchange_api_link.c
@@ -105,6 +105,8 @@ parse_link_coin (const struct TALER_EXCHANGE_LinkHandle *lh,
GNUNET_JSON_spec_end ()
};
struct TALER_TransferSecretP secret;
+ struct TALER_PlanchetSecretsP ps;
+ struct TALER_ExchangeWithdrawValues alg_values;
/* parse reply */
if (GNUNET_OK !=
@@ -120,9 +122,16 @@ parse_link_coin (const struct TALER_EXCHANGE_LinkHandle *lh,
&secret);
TALER_planchet_setup_refresh (&secret,
coin_num,
- coin_priv,
- &bks);
-
+ &ps);
+
+ // TODO: implement cipher handling
+ alg_values.cipher = TALER_DENOMINATION_RSA;
+ TALER_planchet_setup_coin_priv (&ps,
+ &alg_values,
+ coin_priv);
+ TALER_planchet_blinding_secret_create (&ps,
+ &alg_values,
+ &bks);
/* extract coin and signature */
if (GNUNET_OK !=
TALER_denom_sig_unblind (sig,