From 21a1c715ee2578b0cb7738a46117552674f0a294 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 5 Jun 2022 00:36:19 +0200 Subject: -refactor internal API to use new EncrptedContract struct where applicable --- src/lib/exchange_api_purse_create_with_deposit.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/lib') diff --git a/src/lib/exchange_api_purse_create_with_deposit.c b/src/lib/exchange_api_purse_create_with_deposit.c index e77bbf2da..cace73249 100644 --- a/src/lib/exchange_api_purse_create_with_deposit.c +++ b/src/lib/exchange_api_purse_create_with_deposit.c @@ -254,7 +254,6 @@ TALER_EXCHANGE_purse_create_with_deposit ( CURL *eh; struct TALER_PurseContractSignatureP purse_sig; struct TALER_EncryptedContract econtract; - struct TALER_ContractDiffiePublicP contract_pub; char arg_str[sizeof (pch->purse_pub) * 2 + 32]; char *url; uint32_t min_age = 0; @@ -402,10 +401,10 @@ TALER_EXCHANGE_purse_create_with_deposit ( &econtract.econtract, &econtract.econtract_size); GNUNET_CRYPTO_ecdhe_key_get_public (&contract_priv->ecdhe_priv, - &contract_pub.ecdhe_pub); + &econtract.contract_pub.ecdhe_pub); TALER_wallet_econtract_upload_sign (econtract.econtract, econtract.econtract_size, - &contract_pub, + &econtract.contract_pub, purse_priv, &econtract.econtract_sig); } -- cgit v1.2.3