summaryrefslogtreecommitdiff
path: root/src/lib/exchange_api_deposit.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-11-19 10:57:27 +0100
committerChristian Grothoff <christian@grothoff.org>2021-11-19 10:57:27 +0100
commitbdaaa0f6cb8f99168ed9916064a5e4145426480c (patch)
treebd8e37886cbc6356a00d5a0592d99f30f0b2f3c9 /src/lib/exchange_api_deposit.c
parentdff5510dd36059a567d1110da870cc79bd508f70 (diff)
downloadexchange-bdaaa0f6cb8f99168ed9916064a5e4145426480c.tar.gz
exchange-bdaaa0f6cb8f99168ed9916064a5e4145426480c.tar.bz2
exchange-bdaaa0f6cb8f99168ed9916064a5e4145426480c.zip
-fix misc. compiler warnings
Diffstat (limited to 'src/lib/exchange_api_deposit.c')
-rw-r--r--src/lib/exchange_api_deposit.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/lib/exchange_api_deposit.c b/src/lib/exchange_api_deposit.c
index 408601c6f..7fc8bb6b7 100644
--- a/src/lib/exchange_api_deposit.c
+++ b/src/lib/exchange_api_deposit.c
@@ -476,6 +476,7 @@ verify_signatures (const struct TALER_EXCHANGE_DenomPublicKey *dki,
const struct TALER_Amount *amount,
const struct TALER_MerchantWireHash *h_wire,
const struct TALER_PrivateContractHash *h_contract_terms,
+ const struct TALER_ExtensionContractHash *ech,
const struct TALER_CoinSpendPublicKeyP *coin_pub,
const struct TALER_DenominationSignature *denom_sig,
const struct TALER_DenominationPublicKey *denom_pub,
@@ -490,7 +491,7 @@ verify_signatures (const struct TALER_EXCHANGE_DenomPublicKey *dki,
&dki->fee_deposit,
h_wire,
h_contract_terms,
- NULL /* FIXME: h_extensions! */,
+ ech,
denom_pub_hash,
timestamp,
merchant_pub,
@@ -513,7 +514,7 @@ verify_signatures (const struct TALER_EXCHANGE_DenomPublicKey *dki,
.coin_pub = *coin_pub,
.denom_pub_hash = *denom_pub_hash,
.denom_sig = *denom_sig,
- .age_commitment_hash = NULL /* FIXME-Oec */
+ .age_commitment_hash = { 0 } /* FIXME-Oec */
};
if (GNUNET_YES !=
@@ -567,8 +568,12 @@ TALER_EXCHANGE_deposit (
struct TALER_MerchantWireHash h_wire;
struct TALER_DenominationHash denom_pub_hash;
struct TALER_Amount amount_without_fee;
+ struct TALER_ExtensionContractHash ech;
char arg_str[sizeof (struct TALER_CoinSpendPublicKeyP) * 2 + 32];
+ if (NULL != extension_details)
+ TALER_deposit_extension_hash (extension_details,
+ &ech);
{
char pub_str[sizeof (struct TALER_CoinSpendPublicKeyP) * 2];
char *end;
@@ -623,6 +628,9 @@ TALER_EXCHANGE_deposit (
amount,
&h_wire,
h_contract_terms,
+ (NULL != extension_details)
+ ? &ech
+ : NULL,
coin_pub,
denom_sig,
denom_pub,