From 82a04210fd23a7962566b47caccc8e717a380118 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 12 Oct 2023 16:23:05 +0200 Subject: update private key files and harden checks for currency codes --- src/include/taler_amount_lib.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/include/taler_amount_lib.h') 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 @@ -127,6 +127,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". * -- cgit v1.2.3