diff options
author | Christian Grothoff <grothoff@gnunet.org> | 2023-10-12 16:23:05 +0200 |
---|---|---|
committer | Christian Grothoff <grothoff@gnunet.org> | 2023-10-12 16:23:05 +0200 |
commit | 82a04210fd23a7962566b47caccc8e717a380118 (patch) | |
tree | cf513af8688f3aecba1ee8d9a65651621b0055b0 /src/include | |
parent | f6c99c78ff3b764f0eda7851ed9ca7f1f63fb5bc (diff) | |
download | exchange-82a04210fd23a7962566b47caccc8e717a380118.tar.xz |
update private key files and harden checks for currency codes
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/taler_amount_lib.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/include/taler_amount_lib.h b/src/include/taler_amount_lib.h index c9a35a2aa..937238d15 100644 --- a/src/include/taler_amount_lib.h +++ b/src/include/taler_amount_lib.h @@ -128,6 +128,16 @@ struct TALER_Amount /** + * Check that the currency code in @a str is well-formed. + * + * @param str currency code name to validate + * @return #GNUNET_OK if @a str is a valid currency code + */ +enum GNUNET_GenericReturnValue +TALER_check_currency (const char *str); + + +/** * Parse monetary amount, in the format "T:V.F". * * @param str amount string |