aboutsummaryrefslogtreecommitdiff
path: root/src/feature/control/control_bootstrap.c
diff options
context:
space:
mode:
authorTaylor Yu <catalyst@torproject.org>2018-12-15 22:14:46 -0600
committerNick Mathewson <nickm@torproject.org>2018-12-21 14:15:35 -0500
commit936c93e562deaba62f0d32f7e7fda770c5604318 (patch)
tree66320e5dcffecd423cf3d73fba17f2a5c1c243a4 /src/feature/control/control_bootstrap.c
parent9d29abb34e005f4e836976a4c00115a1e8977071 (diff)
downloadtor-936c93e562deaba62f0d32f7e7fda770c5604318.tar.gz
tor-936c93e562deaba62f0d32f7e7fda770c5604318.zip
Hook up control_event_bootstrap() to btrack_orconn
Replace a few invocations of control_event_bootstrap() with calls from the bootstrap tracker subsystem. This mostly leaves behavior unchanged. The actual behavior changes come in the next commit. Part of ticket 27167.
Diffstat (limited to 'src/feature/control/control_bootstrap.c')
-rw-r--r--src/feature/control/control_bootstrap.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/feature/control/control_bootstrap.c b/src/feature/control/control_bootstrap.c
index 0756e208e0..0478f0783d 100644
--- a/src/feature/control/control_bootstrap.c
+++ b/src/feature/control/control_bootstrap.c
@@ -34,7 +34,6 @@ static const struct {
{ BOOTSTRAP_STATUS_UNDEF, "undef", "Undefined" },
{ BOOTSTRAP_STATUS_STARTING, "starting", "Starting" },
{ BOOTSTRAP_STATUS_CONN_DIR, "conn_dir", "Connecting to directory server" },
- { BOOTSTRAP_STATUS_HANDSHAKE, "status_handshake", "Finishing handshake" },
{ BOOTSTRAP_STATUS_HANDSHAKE_DIR, "handshake_dir",
"Finishing handshake with directory server" },
{ BOOTSTRAP_STATUS_ONEHOP_CREATE, "onehop_create",
@@ -151,16 +150,6 @@ control_event_bootstrap(bootstrap_status_t status, int progress)
if (bootstrap_percent == BOOTSTRAP_STATUS_DONE)
return; /* already bootstrapped; nothing to be done here. */
- /* special case for handshaking status, since our TLS handshaking code
- * can't distinguish what the connection is going to be for. */
- if (status == BOOTSTRAP_STATUS_HANDSHAKE) {
- if (bootstrap_percent < BOOTSTRAP_STATUS_CONN_OR) {
- status = BOOTSTRAP_STATUS_HANDSHAKE_DIR;
- } else {
- status = BOOTSTRAP_STATUS_HANDSHAKE_OR;
- }
- }
-
if (status <= bootstrap_percent) {
/* If there's no new progress, return early. */
if (!progress || progress <= bootstrap_percent)