diff options
author | Nick Mathewson <nickm@torproject.org> | 2009-12-12 01:12:47 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2009-12-12 01:12:47 -0500 |
commit | a8190b09a319bf6b1bac7608ea77f828f9970056 (patch) | |
tree | e5a103663dfe6b4e393b736600ad4f531384763b /src/or/or.h | |
parent | f25864743368e7962bfffc0e57763b13157429e3 (diff) | |
download | tor-a8190b09a319bf6b1bac7608ea77f828f9970056.tar.gz tor-a8190b09a319bf6b1bac7608ea77f828f9970056.zip |
Cache the parsed value of SafeLogging as an enum.
Diffstat (limited to 'src/or/or.h')
-rw-r--r-- | src/or/or.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/or/or.h b/src/or/or.h index 67919d99a7..33bce423c7 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -2562,6 +2562,12 @@ typedef struct { int ShutdownWaitLength; /**< When we get a SIGINT and we're a server, how * long do we wait before exiting? */ char *SafeLogging; /**< Contains "relay", "1", "0" (meaning no scrubbing). */ + + /* Derived from SafeLogging */ + enum { + SAFELOG_SCRUB_ALL, SAFELOG_SCRUB_RELAY, SAFELOG_SCRUB_NONE + } _SafeLogging; + int SafeSocks; /**< Boolean: should we outright refuse application * connections that use socks4 or socks5-with-local-dns? */ #define LOG_PROTOCOL_WARN (get_options()->ProtocolWarnings ? \ |