diff options
author | Nick Mathewson <nickm@torproject.org> | 2009-12-15 17:26:09 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2009-12-15 17:26:09 -0500 |
commit | 350181529e39c5b9dcec7f1ae7edf15946fee501 (patch) | |
tree | e6d9f2c537db3f03c0a3d9791b178dae5f1b7782 /src/or/connection_or.c | |
parent | 616cbb31c72a95408d018fd937f1bf3adf886a9f (diff) | |
parent | fcbd65b45cbf203b00e6752dabc7bc5b8dffdbcf (diff) | |
download | tor-350181529e39c5b9dcec7f1ae7edf15946fee501.tar.gz tor-350181529e39c5b9dcec7f1ae7edf15946fee501.zip |
Merge branch 'safelogging2'
Conflicts:
ChangeLog
Diffstat (limited to 'src/or/connection_or.c')
-rw-r--r-- | src/or/connection_or.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/or/connection_or.c b/src/or/connection_or.c index 0c32eeff0d..4eaf742776 100644 --- a/src/or/connection_or.c +++ b/src/or/connection_or.c @@ -773,7 +773,8 @@ connection_tls_start_handshake(or_connection_t *conn, int receiving) { conn->_base.state = OR_CONN_STATE_TLS_HANDSHAKING; conn->tls = tor_tls_new(conn->_base.s, receiving); - tor_tls_set_logged_address(conn->tls, escaped_safe_str(conn->_base.address)); + tor_tls_set_logged_address(conn->tls, // XXX client and relay? + escaped_safe_str(conn->_base.address)); if (!conn->tls) { log_warn(LD_BUG,"tor_tls_new failed. Closing."); return -1; @@ -913,7 +914,8 @@ connection_or_check_valid_tls_handshake(or_connection_t *conn, or_options_t *options = get_options(); int severity = server_mode(options) ? LOG_PROTOCOL_WARN : LOG_WARN; const char *safe_address = - started_here ? conn->_base.address : safe_str(conn->_base.address); + started_here ? conn->_base.address : + safe_str_client(conn->_base.address); const char *conn_type = started_here ? "outgoing" : "incoming"; int has_cert = 0, has_identity=0; @@ -1029,7 +1031,7 @@ connection_tls_finish_handshake(or_connection_t *conn) int started_here = connection_or_nonopen_was_started_here(conn); log_debug(LD_HANDSHAKE,"tls handshake with %s done. verifying.", - safe_str(conn->_base.address)); + safe_str_client(conn->_base.address)); directory_set_dirty(); |