aboutsummaryrefslogtreecommitdiff
path: root/src/common/util.h
diff options
context:
space:
mode:
authorArthur Edelstein <arthuredelstein@gmail.com>2014-07-15 21:27:59 -0700
committerNick Mathewson <nickm@torproject.org>2015-01-28 12:02:15 -0500
commitcb714d896c4436f80bca9e82fc978a245d802eb3 (patch)
treea9840a033370a1bb3c35c93eaded1114855db84b /src/common/util.h
parentf75ca04520f9494e10ea8c4a5de584270efa3462 (diff)
downloadtor-cb714d896c4436f80bca9e82fc978a245d802eb3.tar.gz
tor-cb714d896c4436f80bca9e82fc978a245d802eb3.zip
Bug #8405: Report SOCKS username/password in CIRC status events
Introduces two new circuit status name-value parameters: SOCKS_USERNAME and SOCKS_PASSWORD. Values are enclosing in quotes and unusual characters are escaped. Example: 650 CIRC 5 EXTENDED [...] SOCKS_USERNAME="my_username" SOCKS_PASSWORD="my_password"
Diffstat (limited to 'src/common/util.h')
-rw-r--r--src/common/util.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/util.h b/src/common/util.h
index 89c140032a..175a078c6b 100644
--- a/src/common/util.h
+++ b/src/common/util.h
@@ -239,6 +239,7 @@ int tor_mem_is_zero(const char *mem, size_t len);
int tor_digest_is_zero(const char *digest);
int tor_digest256_is_zero(const char *digest);
char *esc_for_log(const char *string) ATTR_MALLOC;
+char *esc_for_log_len(const char *chars, size_t n) ATTR_MALLOC;
const char *escaped(const char *string);
char *tor_escape_str_for_pt_args(const char *string,