diff options
author | Nick Mathewson <nickm@torproject.org> | 2005-10-04 22:23:31 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2005-10-04 22:23:31 +0000 |
commit | 61ea5168859785207062ca22be403bbac32f49e3 (patch) | |
tree | 166d3b8fc6374a5d7c8bb2b5de2d4376dd1d51cc /src/or/circuituse.c | |
parent | 2d203fdcf319b45477bdcad7e3476ac3c45ee7e0 (diff) | |
download | tor-61ea5168859785207062ca22be403bbac32f49e3.tar.gz tor-61ea5168859785207062ca22be403bbac32f49e3.zip |
Check for named servers when looking them up by nickname;
warn when we'recalling a non-named server by its nickname;
don't warn twice about the same name.
Fix a bug in routers_update_status_from_networkstatus that made nearly
all clients never update routerinfo_t.is_named.
Try to list MyFamily elements by key, not by nickname.
Only warn about names that we generated ourself, or got from the local
user.
On TLS handshake, only check the other router's nickname against its
expected nickname if is_named is set.
svn:r5185
Diffstat (limited to 'src/or/circuituse.c')
-rw-r--r-- | src/or/circuituse.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/or/circuituse.c b/src/or/circuituse.c index d9b2f7a591..d88db4ee01 100644 --- a/src/or/circuituse.c +++ b/src/or/circuituse.c @@ -806,7 +806,7 @@ circuit_launch_by_nickname(uint8_t purpose, const char *exit_nickname, routerinfo_t *router = NULL; if (exit_nickname) { - router = router_get_by_nickname(exit_nickname); + router = router_get_by_nickname(exit_nickname, 1); if (!router) { log_fn(LOG_WARN, "No such OR as '%s'", exit_nickname); return NULL; @@ -923,7 +923,7 @@ circuit_get_open_circ_or_launch(connection_t *conn, if (desired_circuit_purpose == CIRCUIT_PURPOSE_C_GENERAL) { if (conn->chosen_exit_name) { routerinfo_t *r; - if (!(r = router_get_by_nickname(conn->chosen_exit_name))) { + if (!(r = router_get_by_nickname(conn->chosen_exit_name, 1))) { log_fn(LOG_NOTICE,"Requested exit point '%s' is not known. Closing.", conn->chosen_exit_name); return -1; @@ -1097,7 +1097,7 @@ connection_ap_handshake_attach_circuit(connection_t *conn) circuit_t *circ=NULL; if (conn->chosen_exit_name) { - routerinfo_t *router = router_get_by_nickname(conn->chosen_exit_name); + routerinfo_t *router = router_get_by_nickname(conn->chosen_exit_name, 1); if (!router) { log_fn(LOG_WARN,"Requested exit point '%s' is not known. Closing.", conn->chosen_exit_name); |