summaryrefslogtreecommitdiff
path: root/src/testing/testing_api_cmd_tip_authorize.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-12-19 12:12:50 +0100
committerChristian Grothoff <christian@grothoff.org>2021-12-19 12:12:50 +0100
commit5f57dbbc7b1e1ed21fff24daa537b949727b7966 (patch)
tree76b0cbdb74cea37e85363de794ae2580808fe866 /src/testing/testing_api_cmd_tip_authorize.c
parent7fc151fbb8080395579888e1cb384ccd35a36daa (diff)
downloadmerchant-5f57dbbc7b1e1ed21fff24daa537b949727b7966.tar.gz
merchant-5f57dbbc7b1e1ed21fff24daa537b949727b7966.tar.bz2
merchant-5f57dbbc7b1e1ed21fff24daa537b949727b7966.zip
-introduce new types for tip identifiers and tip pickups
Diffstat (limited to 'src/testing/testing_api_cmd_tip_authorize.c')
-rw-r--r--src/testing/testing_api_cmd_tip_authorize.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/testing/testing_api_cmd_tip_authorize.c b/src/testing/testing_api_cmd_tip_authorize.c
index cc83605f..3d6893d9 100644
--- a/src/testing/testing_api_cmd_tip_authorize.c
+++ b/src/testing/testing_api_cmd_tip_authorize.c
@@ -76,7 +76,7 @@ struct TipAuthorizeState
/**
* The tip id; set when the CMD succeeds.
*/
- struct GNUNET_HashCode tip_id;
+ struct TALER_TipIdentifierP tip_id;
/**
* Expiration date for this tip.
@@ -134,7 +134,7 @@ do_retry (void *cls);
static void
tip_authorize_cb (void *cls,
const struct TALER_MERCHANT_HttpResponse *hr,
- struct GNUNET_HashCode *tip_id,
+ struct TALER_TipIdentifierP *tip_id,
const char *taler_tip_uri,
struct GNUNET_TIME_Timestamp expiration)
{
@@ -299,8 +299,7 @@ tip_authorize_fake_run (void *cls,
/* Make up a tip id. */
GNUNET_CRYPTO_random_block (GNUNET_CRYPTO_QUALITY_WEAK,
&tas->tip_id,
- sizeof (struct GNUNET_HashCode));
-
+ sizeof (struct TALER_TipIdentifierP));
TALER_TESTING_interpreter_next (is);
}