]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
dirauth: Reject 0.4.7.x series at the authority level
authorDavid Goulet <dgoulet@torproject.org>
Tue, 30 Jan 2024 15:56:16 +0000 (10:56 -0500)
committerDavid Goulet <dgoulet@torproject.org>
Tue, 30 Jan 2024 15:56:16 +0000 (10:56 -0500)
Signed-off-by: David Goulet <dgoulet@torproject.org>
changes/ticket40896 [new file with mode: 0644]
src/feature/dirauth/process_descs.c
src/test/test_process_descs.c

diff --git a/changes/ticket40896 b/changes/ticket40896
new file mode 100644 (file)
index 0000000..4f04ce7
--- /dev/null
@@ -0,0 +1,2 @@
+  o Minor feature (authority):
+    - Reject 0.4.7.x series at the authority level. Closes ticket 40896.
\ No newline at end of file
index 7fd930e246e0f8da33b57f623554d192344aba56..fafb781330ff7b8f9d72b374d08f752983821d9e 100644 (file)
@@ -404,8 +404,8 @@ dirserv_rejects_tor_version(const char *platform,
   static const char please_upgrade_string[] =
     "Tor version is insecure or unsupported. Please upgrade!";
 
-  /* Anything before 0.4.7.0 is unsupported. Reject them. */
-  if (!tor_version_as_new_as(platform,"0.4.7.0-alpha-dev")) {
+  /* Anything before 0.4.8.0 is unsupported. Reject them. */
+  if (!tor_version_as_new_as(platform,"0.4.8.0-alpha-dev")) {
     if (msg) {
       *msg = please_upgrade_string;
     }
index c13e8b58c43d25ca30362ff050f136619dbc6460..4e35d89ff2039ef4ded9cc8e5ffd7d56f1588076 100644 (file)
@@ -54,11 +54,15 @@ test_process_descs_versions(void *arg)
     { "Tor 0.4.6.1-alpha", true },
     { "Tor 0.4.6.5", true },
     { "Tor 0.4.6.50", true }, /* Non existing one in the 0.4.6 series */
+    { "Tor 0.4.7.0-alpha-dev", true },
+    { "Tor 0.4.7.3-alpha", true },
+    { "Tor 0.4.7.12", true },
 
-    /* The 0.4.7.x series is supported. */
-    { "Tor 0.4.7.0-alpha-dev", false },
-    { "Tor 0.4.7.3-alpha", false },
-    { "Tor 0.4.7.12", false },
+    /* The 0.4.8.x series is supported. */
+    { "Tor 0.4.8.0-alpha-dev", false },
+    { "Tor 0.4.8.2-alpha", false },
+    { "Tor 0.4.8.3-rc", false },
+    { "Tor 0.4.8.12", false },
 
     // Very far in the future
     { "Tor 100.100.1.5", false },