diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-12-02 13:31:20 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-12-02 13:31:20 +0100 |
commit | bbdc7649f7251c0ad16ebc4559f52378388c39fe (patch) | |
tree | 7e4c5cd9a6be793420ef12971d7fa1b32eaede61 | |
parent | 5a7dd001250da73ce2236f245b6bba9a1663477e (diff) | |
download | exchange-bbdc7649f7251c0ad16ebc4559f52378388c39fe.tar.xz |
add -I command line option
-rw-r--r-- | src/exchange/taler-exchange-httpd.c | 9 | ||||
-rw-r--r-- | src/exchange/taler-exchange-httpd.h | 5 |
2 files changed, 14 insertions, 0 deletions
diff --git a/src/exchange/taler-exchange-httpd.c b/src/exchange/taler-exchange-httpd.c index 327bcd1e5..ffd61873b 100644 --- a/src/exchange/taler-exchange-httpd.c +++ b/src/exchange/taler-exchange-httpd.c @@ -128,6 +128,11 @@ static unsigned int connection_timeout = 30; static int connection_close; /** + * -I command-line flag given? + */ +int TEH_check_invariants; + +/** * True if we should commit suicide once all active * connections are finished. */ @@ -1903,6 +1908,10 @@ main (int argc, "connection-close", "force HTTP connections to be closed after each request", &connection_close), + GNUNET_GETOPT_option_flag ('I', + "check-invariants", + "enable expensive invariant checks", + &TEH_check_invariants), GNUNET_GETOPT_option_flag ('r', "allow-reuse-address", "allow multiple HTTPDs to listen to the same port", diff --git a/src/exchange/taler-exchange-httpd.h b/src/exchange/taler-exchange-httpd.h index 4f59a5821..9a7395011 100644 --- a/src/exchange/taler-exchange-httpd.h +++ b/src/exchange/taler-exchange-httpd.h @@ -145,6 +145,11 @@ extern const struct GNUNET_CONFIGURATION_Handle *TEH_cfg; extern char *TEH_exchange_directory; /** + * -I command-line flag given? + */ +extern int TEH_check_invariants; + +/** * 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 |