aboutsummaryrefslogtreecommitdiff
path: root/src/or/connection_or.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2006-01-10 22:42:44 +0000
committerRoger Dingledine <arma@torproject.org>2006-01-10 22:42:44 +0000
commit7d1f675c854dc8914482fb98d853ec1cd898d853 (patch)
tree5ab4f88cef36d6e4252ae639f9c4c840c4a186e4 /src/or/connection_or.c
parente27c47b6de9b0234db5c93cdaa00abd3a1199678 (diff)
downloadtor-7d1f675c854dc8914482fb98d853ec1cd898d853.tar
tor-7d1f675c854dc8914482fb98d853ec1cd898d853.tar.gz
entry nodes are now entry guards.
this is our last easy chance for a wholesale change. heave ho. svn:r5782
Diffstat (limited to 'src/or/connection_or.c')
-rw-r--r--src/or/connection_or.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/or/connection_or.c b/src/or/connection_or.c
index e714a65dd..4216ca407 100644
--- a/src/or/connection_or.c
+++ b/src/or/connection_or.c
@@ -452,7 +452,7 @@ connection_or_connect(uint32_t addr, uint16_t port, const char *id_digest)
* Tor server. */
if (!options->HttpsProxy) {
router_mark_as_down(conn->identity_digest);
- entry_node_set_status(conn->identity_digest, 0);
+ entry_guard_set_status(conn->identity_digest, 0);
}
control_event_or_conn_status(conn, OR_CONN_EVENT_FAILED);
connection_free(conn);
@@ -625,7 +625,7 @@ connection_or_check_valid_handshake(connection_t *conn, char *digest_rcvd)
"Identity key not as expected for router at %s:%d: wanted %s "
"but got %s",
conn->address, conn->port, expected, seen);
- entry_node_set_status(conn->identity_digest, 0);
+ entry_guard_set_status(conn->identity_digest, 0);
control_event_or_conn_status(conn, OR_CONN_EVENT_FAILED);
as_advertised = 0;
}
@@ -687,7 +687,7 @@ connection_tls_finish_handshake(connection_t *conn)
control_event_or_conn_status(conn, OR_CONN_EVENT_CONNECTED);
if (started_here) {
rep_hist_note_connect_succeeded(conn->identity_digest, time(NULL));
- if (entry_node_set_status(conn->identity_digest, 1) < 0) {
+ if (entry_guard_set_status(conn->identity_digest, 1) < 0) {
/* pending circs get closed in circuit_about_to_close_connection() */
return -1;
}