diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-06-05 00:36:19 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-06-05 00:36:19 +0200 |
commit | 21a1c715ee2578b0cb7738a46117552674f0a294 (patch) | |
tree | df1ed2d8306aa1d75af11032af089ecb7624db49 /src/lib/exchange_api_purse_create_with_deposit.c | |
parent | efa0ca4ec18d636f9950cb03a192cf9a6484fadb (diff) | |
download | exchange-21a1c715ee2578b0cb7738a46117552674f0a294.tar.xz |
-refactor internal API to use new EncrptedContract struct where applicable
Diffstat (limited to 'src/lib/exchange_api_purse_create_with_deposit.c')
-rw-r--r-- | src/lib/exchange_api_purse_create_with_deposit.c | 5 |
1 files changed, 2 insertions, 3 deletions
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); } |