aboutsummaryrefslogtreecommitdiff
path: root/src/util/test_crypto.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2024-10-31 10:26:30 +0100
committerChristian Grothoff <christian@grothoff.org>2024-11-05 10:37:37 +0100
commita9a63d3f1399ebaad2fee05c7248cd0c8daaf0a6 (patch)
treec30cea1633376067e93f05c7ba0f3c673f9f9151 /src/util/test_crypto.c
parentf6a86e8680ec57d5389e58c88bb462600894b25f (diff)
API changes for normalized payto
Diffstat (limited to 'src/util/test_crypto.c')
-rw-r--r--src/util/test_crypto.c24
1 files changed, 19 insertions, 5 deletions
diff --git a/src/util/test_crypto.c b/src/util/test_crypto.c
index 2a2090952..ab51650fd 100644
--- a/src/util/test_crypto.c
+++ b/src/util/test_crypto.c
@@ -1,6 +1,6 @@
/*
This file is part of TALER
- (C) 2015, 2020-2023 Taler Systems SA
+ (C) 2015, 2020-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 the Free Software
@@ -322,7 +322,14 @@ test_planchets (uint8_t age)
static int
test_exchange_sigs (void)
{
- const char *pt = "payto://x-taler-bank/localhost/Account";
+ const struct TALER_FullPayto pt = {
+ .full_payto
+ = (char *) "payto://x-taler-bank/localhost/Account?receiver-name=ACC"
+ };
+ const struct TALER_FullPayto pto = {
+ .full_payto
+ = (char *) "payto://x-taler-bank/localhost/Other?receiver-name=OTH"
+ };
struct TALER_MasterPrivateKeyP priv;
struct TALER_MasterPublicKeyP pub;
struct TALER_MasterSignatureP sig;
@@ -352,7 +359,7 @@ test_exchange_sigs (void)
}
if (GNUNET_OK ==
TALER_exchange_wire_signature_check (
- "payto://x-taler-bank/localhost/Other",
+ pto,
NULL,
rest,
rest,
@@ -382,7 +389,14 @@ test_exchange_sigs (void)
static int
test_merchant_sigs (void)
{
- const char *pt = "payto://x-taler-bank/localhost/Account";
+ const struct TALER_FullPayto pt = {
+ .full_payto
+ = (char *) "payto://x-taler-bank/localhost/Account?receiver-name=ACC"
+ };
+ const struct TALER_FullPayto pto = {
+ .full_payto
+ = (char *) "payto://x-taler-bank/localhost/Other?receiver-name=OTH"
+ };
struct TALER_WireSaltP salt;
struct TALER_MerchantPrivateKeyP priv;
struct TALER_MerchantPublicKeyP pub;
@@ -409,7 +423,7 @@ test_merchant_sigs (void)
}
if (GNUNET_OK ==
TALER_merchant_wire_signature_check (
- "payto://x-taler-bank/localhost/Other",
+ pto,
&salt,
&pub,
&sig))