]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Stop checking for torrc state files generated by very old Tor versions
authorNick Mathewson <nickm@torproject.org>
Tue, 24 Mar 2015 13:10:24 +0000 (09:10 -0400)
committerNick Mathewson <nickm@torproject.org>
Tue, 24 Mar 2015 13:24:12 +0000 (09:24 -0400)
These haven't worked in so long that if you had a state file of this
kind, the guards in it would be so old that you wouldn't use them
anyway.

changes/remove_old_version_checks [new file with mode: 0644]
src/or/entrynodes.c

diff --git a/changes/remove_old_version_checks b/changes/remove_old_version_checks
new file mode 100644 (file)
index 0000000..28cd48d
--- /dev/null
@@ -0,0 +1,3 @@
+  o Removed features:
+    - Tor no longer contains workarounds for stat files generated by
+      super-old versions of Tor that didn't choose guards sensibly.
index 30108b6041bf4a5cd4ed1bfa63ce26908e177cd7..c21caf41f01ef2d22dfe99e7f6db9448e65e0e6b 100644 (file)
@@ -571,22 +571,6 @@ remove_obsolete_entry_guards(time_t now)
     } else if (tor_version_parse(ver, &v)) {
       msg = "does not seem to be from any recognized version of Tor";
       version_is_bad = 1;
-    } else {
-      char *tor_ver = NULL;
-      tor_asprintf(&tor_ver, "Tor %s", ver);
-      if ((tor_version_as_new_as(tor_ver, "0.1.0.10-alpha") &&
-           !tor_version_as_new_as(tor_ver, "0.1.2.16-dev")) ||
-          (tor_version_as_new_as(tor_ver, "0.2.0.0-alpha") &&
-           !tor_version_as_new_as(tor_ver, "0.2.0.6-alpha")) ||
-          /* above are bug 440; below are bug 1217 */
-          (tor_version_as_new_as(tor_ver, "0.2.1.3-alpha") &&
-           !tor_version_as_new_as(tor_ver, "0.2.1.23")) ||
-          (tor_version_as_new_as(tor_ver, "0.2.2.0-alpha") &&
-           !tor_version_as_new_as(tor_ver, "0.2.2.7-alpha"))) {
-        msg = "was selected without regard for guard bandwidth";
-        version_is_bad = 1;
-      }
-      tor_free(tor_ver);
     }
     if (!version_is_bad && entry->chosen_on_date + guard_lifetime < now) {
       /* It's been too long since the date listed in our state file. */