]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Improve connection auth logging
authorteor <teor@torproject.org>
Wed, 25 Jul 2018 04:39:31 +0000 (14:39 +1000)
committerteor <teor@torproject.org>
Wed, 25 Jul 2018 04:39:31 +0000 (14:39 +1000)
Improve the log message when connection initiators fail to authenticate
direct connections to relays.

Fixes bug 26927; bugfix on 0.3.0.1-alpha.

changes/bug26927 [new file with mode: 0644]
src/or/connection_or.c

diff --git a/changes/bug26927 b/changes/bug26927
new file mode 100644 (file)
index 0000000..cd035bb
--- /dev/null
@@ -0,0 +1,4 @@
+  o Minor bugfixes (logging):
+    - Improve the log message when connection initiators fail to authenticate
+      direct connections to relays.
+      Fixes bug 26927; bugfix on 0.3.0.1-alpha.
index add0493d23c784fc42149a0b811868155acc6319..fe2cea4f46c9c8252e15eb1ad564501c61758fe5 100644 (file)
@@ -1708,8 +1708,8 @@ connection_or_client_learned_peer_id(or_connection_t *conn,
     }
 
     log_fn(severity, LD_HANDSHAKE,
-           "Tried connecting to router at %s:%d, but RSA identity key was not "
-           "as expected: wanted %s + %s but got %s + %s.%s",
+           "Tried connecting to router at %s:%d, but RSA + ed25519 identity "
+           "keys were not as expected: wanted %s + %s but got %s + %s.%s",
            conn->base_.address, conn->base_.port,
            expected_rsa, expected_ed, seen_rsa, seen_ed, extra_log);
 
@@ -1726,8 +1726,8 @@ connection_or_client_learned_peer_id(or_connection_t *conn,
   }
 
   if (!expected_ed_key && ed_peer_id) {
-    log_info(LD_HANDSHAKE, "(we had no Ed25519 ID in mind when we made this "
-             "connection.");
+    log_info(LD_HANDSHAKE, "(We had no Ed25519 ID in mind when we made this "
+             "connection.)");
     connection_or_set_identity_digest(conn,
                                       (const char*)rsa_peer_id, ed_peer_id);
     changed_identity = 1;