summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-03-17 17:33:30 +0100
committerChristian Grothoff <christian@grothoff.org>2020-03-17 17:33:30 +0100
commitc17909d8209e18829102c7de2789909722e1af3b (patch)
tree3c6d9f942b965c4aed0942307fb546a37e4cfa86 /src/include
parentfb47c680b1380d36812f8b42cd64595e210cef38 (diff)
downloadexchange-c17909d8209e18829102c7de2789909722e1af3b.tar.gz
exchange-c17909d8209e18829102c7de2789909722e1af3b.tar.bz2
exchange-c17909d8209e18829102c7de2789909722e1af3b.zip
add cmd line option to restrict timetravel, minor code cleanup of keystate logic
Diffstat (limited to 'src/include')
-rw-r--r--src/include/taler_error_codes.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/include/taler_error_codes.h b/src/include/taler_error_codes.h
index 9a7c544b..0969261a 100644
--- a/src/include/taler_error_codes.h
+++ b/src/include/taler_error_codes.h
@@ -1052,6 +1052,13 @@ enum TALER_ErrorCode
TALER_EC_KEYS_MISSING = 1901,
/**
+ * This exchange does not allow clients to request /keys for times
+ * other than the current (exchange) time. This reponse is provied
+ * with an HTTP status code of MHD_HTTP_FORBIDDEN.
+ */
+ TALER_EC_KEYS_TIMETRAVEL_FORBIDDEN = 1902,
+
+ /**
* The backend could not find the merchant instance specified in the
* request. This response is provided with HTTP status code
* MHD_HTTP_NOT_FOUND.