diff options
author | Nick Mathewson <nickm@torproject.org> | 2009-09-24 12:31:22 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2009-09-24 12:31:22 -0400 |
commit | b8b293536752725ebba5f14852095b512a009e75 (patch) | |
tree | 4c682f3bdd68d2bc907054b4944db46077d24539 /src/common/log.c | |
parent | 52fa4f6428388be34f78951ed0a140b01a44a86c (diff) | |
download | tor-b8b293536752725ebba5f14852095b512a009e75.tar.gz tor-b8b293536752725ebba5f14852095b512a009e75.zip |
Debugging logs for TLS handshake
The big change is to add a function to display the current SSL handshake
state, and to log it everywhere reasonable. (A failure in
SSL23_ST_CR_SRVR_HELLO_A is different from one in
SSL3_ST_CR_SESSION_TICKET_A.)
This patch also adds a new log domain for OR handshaking, so you can pull out
all the handshake log messages without having to run at debug for everything.
For example, you'd just say "log notice-err [handshake]debug-err file
tor.log".
Diffstat (limited to 'src/common/log.c')
-rw-r--r-- | src/common/log.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/log.c b/src/common/log.c index 09efa014c0..a83f945459 100644 --- a/src/common/log.c +++ b/src/common/log.c @@ -745,7 +745,7 @@ log_level_to_string(int level) static const char *domain_list[] = { "GENERAL", "CRYPTO", "NET", "CONFIG", "FS", "PROTOCOL", "MM", "HTTP", "APP", "CONTROL", "CIRC", "REND", "BUG", "DIR", "DIRSERV", - "OR", "EDGE", "ACCT", "HIST", NULL + "OR", "EDGE", "ACCT", "HIST", "HANDSHAKE", NULL }; /** Return a bitmask for the log domain for which <b>domain</b> is the name, |