diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-03-17 17:33:30 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-03-17 17:33:30 +0100 |
commit | c17909d8209e18829102c7de2789909722e1af3b (patch) | |
tree | 3c6d9f942b965c4aed0942307fb546a37e4cfa86 /src/exchange/taler-exchange-httpd.h | |
parent | fb47c680b1380d36812f8b42cd64595e210cef38 (diff) | |
download | exchange-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/exchange/taler-exchange-httpd.h')
-rw-r--r-- | src/exchange/taler-exchange-httpd.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/exchange/taler-exchange-httpd.h b/src/exchange/taler-exchange-httpd.h index 137cee720..512fae8f0 100644 --- a/src/exchange/taler-exchange-httpd.h +++ b/src/exchange/taler-exchange-httpd.h @@ -44,6 +44,14 @@ extern struct GNUNET_CONFIGURATION_Handle *TEH_cfg; extern char *TEH_exchange_directory; /** + * Are clients allowed to request /keys for times other than the + * current time? Allowing this could be abused in a DoS-attack + * as building new /keys responses is expensive. Should only be + * enabled for testcases, development and test systems. + */ +extern int TEH_allow_keys_timetravel; + +/** * Main directory with revocation data. */ extern char *TEH_revocation_directory; |