diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-07-30 08:45:01 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-07-30 08:45:01 -0400 |
commit | 7d66ec0feba7aa7cfbaeb8c3af2df35cdcd536f1 (patch) | |
tree | 16cf6df1fdeac9336475fb18994b5f22e92513e4 /src | |
parent | d102e9c2e4ab5dfca0c03f7b4e27431d069338fd (diff) | |
parent | a159eaf45fb59fb47732d5d811db2cc78c02a960 (diff) | |
download | tor-7d66ec0feba7aa7cfbaeb8c3af2df35cdcd536f1.tar.gz tor-7d66ec0feba7aa7cfbaeb8c3af2df35cdcd536f1.zip |
Merge branch 'maint-0.3.3' into maint-0.3.4
Diffstat (limited to 'src')
-rw-r--r-- | src/or/connection_or.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/or/connection_or.c b/src/or/connection_or.c index 7898fbd42e..bd5f06bc6a 100644 --- a/src/or/connection_or.c +++ b/src/or/connection_or.c @@ -52,6 +52,7 @@ #include "proto_cell.h" #include "reasons.h" #include "relay.h" +#include "rendcommon.h" #include "rephist.h" #include "router.h" #include "routerkeys.h" @@ -1917,10 +1918,13 @@ connection_or_client_learned_peer_id(or_connection_t *conn, conn->identity_digest); const int is_authority_fingerprint = router_digest_is_trusted_dir( conn->identity_digest); + const int non_anonymous_mode = rend_non_anonymous_mode_enabled(options); int severity; const char *extra_log = ""; - if (server_mode(options)) { + /* Relays, Single Onion Services, and Tor2web make direct connections using + * untrusted authentication keys. */ + if (server_mode(options) || non_anonymous_mode) { severity = LOG_PROTOCOL_WARN; } else { if (using_hardcoded_fingerprints) { @@ -1944,8 +1948,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); @@ -1962,8 +1966,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; |