diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-05-30 16:31:24 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-05-30 16:31:24 +0200 |
commit | 7b25787a4b8ac0a0b3cbc2174ba3cac9c564346a (patch) | |
tree | 60e9259939dca8f9bb9ad2539d594fb15e67a170 /src/include | |
parent | 7f902c0fc9bc7e0832d01169e6f580ab671fbf08 (diff) | |
download | exchange-7b25787a4b8ac0a0b3cbc2174ba3cac9c564346a.tar.xz |
-generate 404 on non-existing accounts for fakebank, use payto://-URIs with receiver-name in tests
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/taler_testing_lib.h | 2 | ||||
-rw-r--r-- | src/include/taler_util.h | 10 |
2 files changed, 11 insertions, 1 deletions
diff --git a/src/include/taler_testing_lib.h b/src/include/taler_testing_lib.h index 157eaae3c..1781e0280 100644 --- a/src/include/taler_testing_lib.h +++ b/src/include/taler_testing_lib.h @@ -2756,7 +2756,6 @@ TALER_TESTING_get_trait (const struct TALER_TESTING_Trait *traits, op (contract_terms, const json_t) \ op (wire_details, const json_t) \ op (exchange_keys, const json_t) \ - op (reserve_history, const struct TALER_EXCHANGE_ReserveHistoryEntry) \ op (exchange_url, const char *) \ op (exchange_bank_account_url, const char *) \ op (taler_uri, const char *) \ @@ -2791,6 +2790,7 @@ TALER_TESTING_get_trait (const struct TALER_TESTING_Trait *traits, op (age_commitment, const struct TALER_AgeCommitment) \ op (age_commitment_proof, const struct TALER_AgeCommitmentProof) \ op (h_age_commitment, const struct TALER_AgeCommitmentHash) \ + op (reserve_history, const struct TALER_EXCHANGE_ReserveHistoryEntry) \ op (planchet_secrets, const struct TALER_PlanchetMasterSecretP) \ op (exchange_wd_value, const struct TALER_ExchangeWithdrawValues) \ op (coin_priv, const struct TALER_CoinSpendPrivateKeyP) \ diff --git a/src/include/taler_util.h b/src/include/taler_util.h index ee17557a4..607d76724 100644 --- a/src/include/taler_util.h +++ b/src/include/taler_util.h @@ -386,6 +386,16 @@ TALER_xtalerbank_account_from_payto (const char *payto); /** + * Obtain the receiver name from a payto URL. + * + * @param payto an x-taler-bank payto URL + * @return only the receiver name from the @a payto URL, NULL if not an x-taler-bank payto URL + */ +char * +TALER_payto_get_receiver_name (const char *payto); + + +/** * Extract the subject value from the URI parameters. * * @param payto_uri the URL to parse |