diff options
author | Christian Grothoff <grothoff@gnunet.org> | 2024-02-08 20:31:39 +0100 |
---|---|---|
committer | Christian Grothoff <grothoff@gnunet.org> | 2024-02-08 20:31:39 +0100 |
commit | 865e5c2d9275ca56d57374e269d688652ca1b9c6 (patch) | |
tree | e2d9e50f15902bda43496139a2db23c4192b82f6 /src/include | |
parent | e31ece78a23dee9373b7f582197af0b8fbe5fa26 (diff) | |
download | exchange-865e5c2d9275ca56d57374e269d688652ca1b9c6.tar.gz exchange-865e5c2d9275ca56d57374e269d688652ca1b9c6.tar.bz2 exchange-865e5c2d9275ca56d57374e269d688652ca1b9c6.zip |
implement TALER_payto_normalize for #8348
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/taler_util.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/include/taler_util.h b/src/include/taler_util.h index fc2316705..c2cfab606 100644 --- a/src/include/taler_util.h +++ b/src/include/taler_util.h @@ -500,6 +500,20 @@ TALER_payto_get_method (const char *payto_uri); /** + * Normalize payto://-URI to make "strcmp()" sufficient + * to check if two payto-URIs refer to the same bank + * account. Removes optional arguments (everything after + * "?") and applies method-specific normalizations to + * the main part of the URI. + * + * @param input a payto://-URI + * @return normalized URI, or NULL if @a input was not well-formed + */ +char * +TALER_payto_normalize (const char *input); + + +/** * Obtain the account name from a payto URL. * * @param payto an x-taler-bank payto URL |