summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-06-05 00:36:19 +0200
committerChristian Grothoff <christian@grothoff.org>2022-06-05 00:36:19 +0200
commit21a1c715ee2578b0cb7738a46117552674f0a294 (patch)
treedf1ed2d8306aa1d75af11032af089ecb7624db49 /src/lib
parentefa0ca4ec18d636f9950cb03a192cf9a6484fadb (diff)
downloadexchange-21a1c715ee2578b0cb7738a46117552674f0a294.tar.gz
exchange-21a1c715ee2578b0cb7738a46117552674f0a294.tar.bz2
exchange-21a1c715ee2578b0cb7738a46117552674f0a294.zip
-refactor internal API to use new EncrptedContract struct where applicable
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/exchange_api_purse_create_with_deposit.c5
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);
}