commit 14414803dcc83db98a96e82e8afd8c7093ff8404
parent a643497df3737920270ff7fa5944706bc065ee58
Author: Christian Grothoff <christian@grothoff.org>
Date: Wed, 25 Nov 2026 00:47:51 +0100
gana update
Diffstat:
2 files changed, 148 insertions(+), 8 deletions(-)
diff --git a/src/include/taler/taler_error_codes.h b/src/include/taler/taler_error_codes.h
@@ -5451,11 +5451,11 @@ enum TALER_ErrorCode
/**
- * The wallet could not register an alias with the directory service.
+ * The wallet could not use the directory service.
* Returned with an HTTP status code of #MHD_HTTP_UNINITIALIZED (0).
* (A value of 0 indicates that the error is generated client-side).
*/
- TALER_EC_WALLET_ALIAS_REGISTRATION_FAILED = 7063,
+ TALER_EC_WALLET_DIRECTORY_UNAVAILABLE = 7063,
/**
@@ -5555,6 +5555,78 @@ enum TALER_ErrorCode
/**
+ * The wallet could register the mailbox because the signature was invalid.
+ * 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_WALLET_MAILBOX_REGISTER_INVALID_SIGNATURE = 7076,
+
+
+ /**
+ * The specified order ID in the Mailbox-Order-Id header does not permit sending of this message. Possible reasons include the order being for a different message, unpaid or malformed.
+ * 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_WALLET_MAILBOX_MESSAGE_SEND_DENIED = 7077,
+
+
+ /**
+ * The signature is invalid.
+ * 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_WALLET_MAILBOX_MESSAGE_DELETE_DENIED = 7078,
+
+
+ /**
+ * The checksum does not match the messages currently at the head of the mailbox, or count is larger than the number of messages currently in the mailbox.
+ * Returned with an HTTP status code of #MHD_HTTP_NOT_FOUND (404).
+ * (A value of 0 indicates that the error is generated client-side).
+ */
+ TALER_EC_WALLET_MAILBOX_MESSAGE_DELETE_FAILED = 7079,
+
+
+ /**
+ * Alias type not supported.
+ * Returned with an HTTP status code of #MHD_HTTP_NOT_FOUND (404).
+ * (A value of 0 indicates that the error is generated client-side).
+ */
+ TALER_EC_WALLET_DIRECTORY_ALIAS_NOT_SUPPORTED = 7080,
+
+
+ /**
+ * Solution unknown (original registration attempt may have expired).
+ * Returned with an HTTP status code of #MHD_HTTP_NOT_FOUND (404).
+ * (A value of 0 indicates that the error is generated client-side).
+ */
+ TALER_EC_WALLET_DIRECTORY_ALIAS_SOLUTION_UNKNOWN = 7081,
+
+
+ /**
+ * Solution invalid.
+ * 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_WALLET_DIRECTORY_ALIAS_SOLUTION_INCORRECT = 7082,
+
+
+ /**
+ * Deprecated. This value is reserved for wallets that treated the timestamp in a Paivana payment link as a session deadline.
+ * Returned with an HTTP status code of #MHD_HTTP_UNINITIALIZED (0).
+ * (A value of 0 indicates that the error is generated client-side).
+ */
+ TALER_EC_WALLET_PAIVANA_SESSION_EXPIRED = 7083,
+
+
+ /**
+ * The wallet has no matching exchange signing key that is valid at the time used to verify the response.
+ * Returned with an HTTP status code of #MHD_HTTP_UNINITIALIZED (0).
+ * (A value of 0 indicates that the error is generated client-side).
+ */
+ TALER_EC_WALLET_EXCHANGE_SIGNING_KEY_UNUSABLE = 7084,
+
+
+ /**
* The service encountered a timeout with its payment backend.
* Returned with an HTTP status code of #MHD_HTTP_GATEWAY_TIMEOUT (504).
* (A value of 0 indicates that the error is generated client-side).
@@ -6507,7 +6579,7 @@ enum TALER_ErrorCode
/**
- * The specified expiration time for the cookie is longer than what the purchase allows. The request may succeed with a shorter expiration time. Alternatively, the user may need to purchase access again.
+ * The paid order's pickup deadline has passed or is earlier than the requested minimum access expiry.
* Returned with an HTTP status code of #MHD_HTTP_GONE (410).
* (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
@@ -5254,9 +5254,8 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = {
{
/* 7063 */
- .ec = TALER_EC_WALLET_ALIAS_REGISTRATION_FAILED,
- .hint =
- "The wallet could not register an alias with the directory service.",
+ .ec = TALER_EC_WALLET_DIRECTORY_UNAVAILABLE,
+ .hint = "The wallet could not use the directory service.",
.http_code = MHD_HTTP_UNINITIALIZED
},
@@ -5353,6 +5352,75 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = {
},
{
+ /* 7076 */
+ .ec = TALER_EC_WALLET_MAILBOX_REGISTER_INVALID_SIGNATURE,
+ .hint =
+ "The wallet could register the mailbox because the signature was invalid.",
+ .http_code = MHD_HTTP_FORBIDDEN
+ },
+
+ {
+ /* 7077 */
+ .ec = TALER_EC_WALLET_MAILBOX_MESSAGE_SEND_DENIED,
+ .hint =
+ "The specified order ID in the Mailbox-Order-Id header does not permit sending of this message. Possible reasons include the order being for a different message, unpaid or malformed.",
+ .http_code = MHD_HTTP_FORBIDDEN
+ },
+
+ {
+ /* 7078 */
+ .ec = TALER_EC_WALLET_MAILBOX_MESSAGE_DELETE_DENIED,
+ .hint = "The signature is invalid.",
+ .http_code = MHD_HTTP_FORBIDDEN
+ },
+
+ {
+ /* 7079 */
+ .ec = TALER_EC_WALLET_MAILBOX_MESSAGE_DELETE_FAILED,
+ .hint =
+ "The checksum does not match the messages currently at the head of the mailbox, or count is larger than the number of messages currently in the mailbox.",
+ .http_code = MHD_HTTP_NOT_FOUND
+ },
+
+ {
+ /* 7080 */
+ .ec = TALER_EC_WALLET_DIRECTORY_ALIAS_NOT_SUPPORTED,
+ .hint = "Alias type not supported.",
+ .http_code = MHD_HTTP_NOT_FOUND
+ },
+
+ {
+ /* 7081 */
+ .ec = TALER_EC_WALLET_DIRECTORY_ALIAS_SOLUTION_UNKNOWN,
+ .hint =
+ "Solution unknown (original registration attempt may have expired).",
+ .http_code = MHD_HTTP_NOT_FOUND
+ },
+
+ {
+ /* 7082 */
+ .ec = TALER_EC_WALLET_DIRECTORY_ALIAS_SOLUTION_INCORRECT,
+ .hint = "Solution invalid.",
+ .http_code = MHD_HTTP_FORBIDDEN
+ },
+
+ {
+ /* 7083 */
+ .ec = TALER_EC_WALLET_PAIVANA_SESSION_EXPIRED,
+ .hint =
+ "Deprecated. This value is reserved for wallets that treated the timestamp in a Paivana payment link as a session deadline.",
+ .http_code = MHD_HTTP_UNINITIALIZED
+ },
+
+ {
+ /* 7084 */
+ .ec = TALER_EC_WALLET_EXCHANGE_SIGNING_KEY_UNUSABLE,
+ .hint =
+ "The wallet has no matching exchange signing key that is valid at the time used to verify the response.",
+ .http_code = MHD_HTTP_UNINITIALIZED
+ },
+
+ {
/* 8000 */
.ec = TALER_EC_ANASTASIS_GENERIC_BACKEND_TIMEOUT,
.hint = "The service encountered a timeout with its payment backend.",
@@ -6256,7 +6324,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = {
/* 9806 */
.ec = TALER_EC_PAIVANA_TOO_LATE,
.hint =
- "The specified expiration time for the cookie is longer than what the purchase allows. The request may succeed with a shorter expiration time. Alternatively, the user may need to purchase access again.",
+ "The paid order's pickup deadline has passed or is earlier than the requested minimum access expiry.",
.http_code = MHD_HTTP_GONE
},
@@ -6298,7 +6366,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = {
/**
* The length of @e code_hint_pairs.
*/
-static const unsigned int code_hint_pairs_length = 811;
+static const unsigned int code_hint_pairs_length = 820;
const char *