summaryrefslogtreecommitdiff
path: root/src/include/taler_amount_lib.h
diff options
context:
space:
mode:
authorChristian Grothoff <grothoff@gnunet.org>2023-10-12 16:23:05 +0200
committerChristian Grothoff <grothoff@gnunet.org>2023-10-12 16:23:05 +0200
commit82a04210fd23a7962566b47caccc8e717a380118 (patch)
treecf513af8688f3aecba1ee8d9a65651621b0055b0 /src/include/taler_amount_lib.h
parentf6c99c78ff3b764f0eda7851ed9ca7f1f63fb5bc (diff)
downloadexchange-82a04210fd23a7962566b47caccc8e717a380118.tar.gz
exchange-82a04210fd23a7962566b47caccc8e717a380118.tar.bz2
exchange-82a04210fd23a7962566b47caccc8e717a380118.zip
update private key files and harden checks for currency codes
Diffstat (limited to 'src/include/taler_amount_lib.h')
-rw-r--r--src/include/taler_amount_lib.h10
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