summaryrefslogtreecommitdiff
path: root/src/common/log.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2009-09-24 12:31:22 -0400
committerNick Mathewson <nickm@torproject.org>2009-09-24 12:31:22 -0400
commitb8b293536752725ebba5f14852095b512a009e75 (patch)
tree4c682f3bdd68d2bc907054b4944db46077d24539 /src/common/log.h
parent52fa4f6428388be34f78951ed0a140b01a44a86c (diff)
downloadtor-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.h')
-rw-r--r--src/common/log.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/common/log.h b/src/common/log.h
index 6745baabc6..f1a6164f7d 100644
--- a/src/common/log.h
+++ b/src/common/log.h
@@ -90,9 +90,10 @@
#define LD_ACCT (1u<<17)
/** Router history */
#define LD_HIST (1u<<18)
-
+/** OR handshaking */
+#define LD_HANDSHAKE (1u<<19)
/** Number of logging domains in the code. */
-#define N_LOGGING_DOMAINS 19
+#define N_LOGGING_DOMAINS 20
typedef uint32_t log_domain_mask_t;