aboutsummaryrefslogtreecommitdiff
path: root/src/testing/testing_api_cmd_purse_merge.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testing/testing_api_cmd_purse_merge.c')
-rw-r--r--src/testing/testing_api_cmd_purse_merge.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/testing/testing_api_cmd_purse_merge.c b/src/testing/testing_api_cmd_purse_merge.c
index 515a14403..564b0ce02 100644
--- a/src/testing/testing_api_cmd_purse_merge.c
+++ b/src/testing/testing_api_cmd_purse_merge.c
@@ -1,6 +1,6 @@
/*
This file is part of TALER
- Copyright (C) 2022 Taler Systems SA
+ Copyright (C) 2022, 2024 Taler Systems SA
TALER is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
@@ -75,7 +75,7 @@ struct PurseMergeState
* Hash of the payto://-URI for the reserve we are
* merging into.
*/
- struct TALER_PaytoHashP h_payto;
+ struct TALER_NormalizedPaytoHashP h_payto;
/**
* Set to the KYC requirement row *if* the exchange replied with
@@ -298,7 +298,7 @@ merge_run (void *cls,
GNUNET_CRYPTO_eddsa_key_get_public (&ds->reserve_priv.eddsa_priv,
&ds->reserve_pub.eddsa_pub);
{
- char *payto_uri;
+ struct TALER_NormalizedPayto payto_uri;
const char *exchange_url;
const struct TALER_TESTING_Command *exchange_cmd;
@@ -315,9 +315,9 @@ merge_run (void *cls,
&exchange_url));
payto_uri = TALER_reserve_make_payto (exchange_url,
&ds->reserve_pub);
- TALER_payto_hash (payto_uri,
- &ds->h_payto);
- GNUNET_free (payto_uri);
+ TALER_normalized_payto_hash (payto_uri,
+ &ds->h_payto);
+ GNUNET_free (payto_uri.normalized_payto);
}
GNUNET_CRYPTO_eddsa_key_get_public (&merge_priv->eddsa_priv,
&ds->merge_pub.eddsa_pub);
@@ -396,7 +396,7 @@ merge_traits (void *cls,
TALER_TESTING_make_trait_timestamp (0,
&ds->merge_timestamp),
TALER_TESTING_make_trait_legi_requirement_row (&ds->requirement_row),
- TALER_TESTING_make_trait_h_payto (&ds->h_payto),
+ TALER_TESTING_make_trait_h_normalized_payto (&ds->h_payto),
TALER_TESTING_trait_end ()
};