commit 75cb89b90d7913f80a35dcab45c548c16dd6990d
parent 12ed4226cc3e0da9aa5d1016df50405520c3f968
Author: Christian Grothoff <christian@grothoff.org>
Date: Thu, 4 Sep 2025 20:26:50 +0200
-update gana
Diffstat:
3 files changed, 20 insertions(+), 3 deletions(-)
diff --git a/contrib/gana-generate.sh b/contrib/gana-generate.sh
@@ -7,13 +7,15 @@ set -eu
SRC_ROOT=$PWD
-if [ ! -f $SRC_ROOT/contrib/gana-generate.sh ]; then
+if [ ! -f $SRC_ROOT/contrib/gana-generate.sh ];
+then
echo "Please run this script from the root of the source tree!"
exit 1
fi
COMMIT_HASH=""
-if [ ! -z $1 ]; then
+if [ ! -z ${1:-} ];
+ then
COMMIT_HASH=$1
fi
diff --git a/src/include/taler/taler_error_codes.h b/src/include/taler/taler_error_codes.h
@@ -2592,6 +2592,14 @@ enum TALER_ErrorCode
/**
+ * This operation requires multi-factor authorization and the respective instance does not have a sufficient number of factors that could be validated configured. You need to ask the system administrator to perform this operation.
+ * Returned with an HTTP status code of #MHD_HTTP_FORBIDDEN (403).
+ * (A value of 0 indicates that the error is generated client-side).
+ */
+ TALER_EC_MERCHANT_GENERIC_MFA_MISSING = 2031,
+
+
+ /**
* The exchange failed to provide a valid answer to the tracking request, thus those details are not in the response.
* Returned with an HTTP status code of #MHD_HTTP_OK (200).
* (A value of 0 indicates that the error is generated client-side).
diff --git a/src/util/taler_error_codes.c b/src/util/taler_error_codes.c
@@ -2256,6 +2256,13 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = {
},
{
+ .ec = TALER_EC_MERCHANT_GENERIC_MFA_MISSING,
+ .hint = gettext_noop (
+ "This operation requires multi-factor authorization and the respective instance does not have a sufficient number of factors that could be validated configured. You need to ask the system administrator to perform this operation."),
+ .http_code = MHD_HTTP_FORBIDDEN
+ },
+
+ {
.ec = TALER_EC_MERCHANT_GET_ORDERS_EXCHANGE_TRACKING_FAILURE,
.hint = gettext_noop (
"The exchange failed to provide a valid answer to the tracking request, thus those details are not in the response."),
@@ -4733,7 +4740,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = {
/**
* The length of @e code_hint_pairs.
*/
-static const unsigned int code_hint_pairs_length = 677;
+static const unsigned int code_hint_pairs_length = 678;
const char *