summaryrefslogtreecommitdiff
path: root/src/or/connection_or.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-11-10 12:55:42 -0500
committerNick Mathewson <nickm@torproject.org>2016-12-08 16:47:59 -0500
commite0ab293837c76ee95b8b94f461aefe0f1ac6eff0 (patch)
treefb754e375c22bef624b032075d8bbde8515ea720 /src/or/connection_or.c
parent3d7e485402752d21d01cdf36ae1102d4b013fe85 (diff)
downloadtor-e0ab293837c76ee95b8b94f461aefe0f1ac6eff0.tar.gz
tor-e0ab293837c76ee95b8b94f461aefe0f1ac6eff0.zip
Add a few more debug/info-level logs for ed25519 link handshake stuff
Diffstat (limited to 'src/or/connection_or.c')
-rw-r--r--src/or/connection_or.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/or/connection_or.c b/src/or/connection_or.c
index 0caf8a97fd..e10eaaf35c 100644
--- a/src/or/connection_or.c
+++ b/src/or/connection_or.c
@@ -831,6 +831,12 @@ connection_or_init_conn_from_address(or_connection_t *conn,
const ed25519_public_key_t *ed_id,
int started_here)
{
+ log_debug(LD_HANDSHAKE, "init conn from address %s: %s, %s (%d)",
+ fmt_addr(addr),
+ hex_str((const char*)id_digest, DIGEST_LEN),
+ ed25519_fmt(ed_id),
+ started_here);
+
const node_t *r = node_get_by_id(id_digest);
connection_or_set_identity_digest(conn, id_digest, ed_id);
connection_or_update_token_buckets_helper(conn, 1, get_options());
@@ -1510,6 +1516,8 @@ connection_or_check_valid_tls_handshake(or_connection_t *conn,
if (started_here) {
/* A TLS handshake can't teach us an Ed25519 ID, so we set it to NULL
* here. */
+ log_debug(LD_HANDSHAKE, "Calling client_learned_peer_id from "
+ "check_valid_tls_handshake");
return connection_or_client_learned_peer_id(conn,
(const uint8_t*)digest_rcvd_out,
NULL);