diff options
author | Roger Dingledine <arma@torproject.org> | 2005-05-03 10:04:08 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2005-05-03 10:04:08 +0000 |
commit | 5265bbd2b8f4a28f26eabb48a4d167b765780b26 (patch) | |
tree | 9e3ee23068a617dc137f0fa203adb8b21c8a8c30 /src/or/or.h | |
parent | b35f7dacef6b5e4215dfba9a4088a73421fb103c (diff) | |
download | tor-5265bbd2b8f4a28f26eabb48a4d167b765780b26.tar.gz tor-5265bbd2b8f4a28f26eabb48a4d167b765780b26.zip |
first iteration of scrubbing sensitive strings from logs.
also generally clean up log messages.
svn:r4174
Diffstat (limited to 'src/or/or.h')
-rw-r--r-- | src/or/or.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/or.h b/src/or/or.h index f778daf72f..32c82d70f9 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -1093,6 +1093,8 @@ typedef struct { * to cope? (1) */ int ShutdownWaitLength; /**< When we get a SIGINT and we're a server, how * long do we wait before exiting? */ + int SafeLogging; /**< Boolean: are we allowed to log sensitive strings + * such as addresses (0), or do we scrub them first (1)? */ } or_options_t; #define MAX_SOCKS_REPLY_LEN 1024 @@ -1242,6 +1244,7 @@ or_options_t *get_options(void); void set_options(or_options_t *new_val); int options_act(void); void config_free_all(void); +const char *safe_str(const char *address); int config_get_lines(char *string, struct config_line_t **result); void config_free_lines(struct config_line_t *front); |