commit 535ecdb94ee45ba7ed601d19c6029fe9fc420ac9
parent c518e5ee51cd2a57b0a6c768cff2cbc46c04f62e
Author: Christian Grothoff <christian@grothoff.org>
Date: Fri, 6 Feb 2026 21:00:39 +0100
implement backend logic for #10981: expose regex
Diffstat:
2 files changed, 18 insertions(+), 0 deletions(-)
diff --git a/src/backend/taler-merchant-httpd.c b/src/backend/taler-merchant-httpd.c
@@ -72,6 +72,8 @@ char *TMH_helper_email;
char *TMH_helper_sms;
+char *TMH_phone_regex;
+
char *TMH_allowed_payment_targets;
char *TMH_default_persona;
@@ -1259,6 +1261,17 @@ run (void *cls,
}
}
}
+ if (GNUNET_OK !=
+ GNUNET_CONFIGURATION_get_value_string (TMH_cfg,
+ "merchant",
+ "PHONE_REGEX",
+ &TMH_phone_regex))
+ {
+ GNUNET_log_config_invalid (GNUNET_ERROR_TYPE_WARNING,
+ "merchant",
+ "PHONE_REGEX",
+ "no restrictions on phone number specified");
+ }
if (GNUNET_OK !=
GNUNET_CONFIGURATION_get_value_string (TMH_cfg,
diff --git a/src/backend/taler-merchant-httpd.h b/src/backend/taler-merchant-httpd.h
@@ -708,6 +708,11 @@ extern char *TMH_helper_email;
extern char *TMH_helper_sms;
/**
+ * Regex restriction acceptable set of phone numbers for instances.
+ */
+extern char *TMH_phone_regex;
+
+/**
* Space-separated list of allowed payment target types.
* "*" for "all" (no restriction).
*/