summaryrefslogtreecommitdiff
path: root/src/include/taler_util.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-08-14 13:54:01 +0200
committerChristian Grothoff <christian@grothoff.org>2021-08-14 13:54:12 +0200
commitf98c463be27ecc2196936c0f52b3b0817c4e2405 (patch)
treeb2daba814c20b15d2098b892635ca0c10f454077 /src/include/taler_util.h
parent8ad068ccb5048dc6512ac3c60a726a20fc4c3a41 (diff)
downloadexchange-f98c463be27ecc2196936c0f52b3b0817c4e2405.tar.gz
exchange-f98c463be27ecc2196936c0f52b3b0817c4e2405.tar.bz2
exchange-f98c463be27ecc2196936c0f52b3b0817c4e2405.zip
export TALER_iban_validate() API
Diffstat (limited to 'src/include/taler_util.h')
-rw-r--r--src/include/taler_util.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/include/taler_util.h b/src/include/taler_util.h
index 79e247791..0b761ae92 100644
--- a/src/include/taler_util.h
+++ b/src/include/taler_util.h
@@ -353,6 +353,20 @@ TALER_payto_validate (const char *payto_uri);
/**
+ * Check that an IBAN number is well-formed.
+ *
+ * Validates given IBAN according to the European Banking Standards. See:
+ * http://www.europeanpaymentscouncil.eu/documents/ECBS%20IBAN%20standard%20EBS204_V3.2.pdf
+ *
+ * @param iban the IBAN to check
+ * @return NULL on success, otherwise an error
+ * message to be freed by the caller!
+ */
+char *
+TALER_iban_validate (const char *iban);
+
+
+/**
* Possible values for a binary filter.
*/
enum TALER_EXCHANGE_YesNoAll