]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
protover: Sort tor's supported protocol versions
authorteor <teor@torproject.org>
Wed, 12 Feb 2020 12:15:17 +0000 (22:15 +1000)
committerteor <teor@torproject.org>
Wed, 12 Feb 2020 12:15:17 +0000 (22:15 +1000)
As recommended by the tor directory specification.

Fixes bug 33285; bugfix on 0.4.0.1-alpha.

changes/bug33285 [new file with mode: 0644]
src/core/or/protover.c
src/rust/protover/protover.rs

diff --git a/changes/bug33285 b/changes/bug33285
new file mode 100644 (file)
index 0000000..a4d06a7
--- /dev/null
@@ -0,0 +1,3 @@
+  o Minor bugfixes (protocol versions):
+    - Sort tor's supported protocol version lists, as recommended by the
+      tor directory specification. Fixes bug 33285; bugfix on 0.4.0.1-alpha.
index 2a0a06f9512a1ba3e5a0cd42c32b0c2dbfd8d771..621111622e1604fe75c4f97826aa76fc34a13a34 100644 (file)
@@ -391,6 +391,7 @@ protover_get_supported_protocols(void)
     "Cons=1-2 "
     "Desc=1-2 "
     "DirCache=1-2 "
+    "FlowCtrl=1 "
     "HSDir=1-2 "
     "HSIntro=3-5 "
     "HSRend=1-2 "
@@ -401,9 +402,8 @@ protover_get_supported_protocols(void)
     "LinkAuth=3 "
 #endif
     "Microdesc=1-2 "
-    "Relay=1-2 "
     "Padding=2 "
-    "FlowCtrl=1";
+    "Relay=1-2";
 }
 
 /** The protocols from protover_get_supported_protocols(), as parsed into a
index 0ca960bd69fb01b6c52bba7a951cc24ff554ee8b..6d2ef33eececf1cc3288e103bb2adb690772f66f 100644 (file)
@@ -161,30 +161,30 @@ pub(crate) fn get_supported_protocols_cstr() -> &'static CStr {
             "Cons=1-2 \
              Desc=1-2 \
              DirCache=1-2 \
+             FlowCtrl=1 \
              HSDir=1-2 \
              HSIntro=3-4 \
              HSRend=1-2 \
              Link=1-5 \
              LinkAuth=3 \
              Microdesc=1-2 \
-             Relay=1-2 \
              Padding=2 \
-             FlowCtrl=1"
+             Relay=1-2"
         )
     } else {
         cstr!(
             "Cons=1-2 \
              Desc=1-2 \
              DirCache=1-2 \
+             FlowCtrl=1 \
              HSDir=1-2 \
              HSIntro=3-4 \
              HSRend=1-2 \
              Link=1-5 \
              LinkAuth=1,3 \
              Microdesc=1-2 \
-             Relay=1-2 \
              Padding=2 \
-             FlowCtrl=1"
+             Relay=1-2"
         )
     }
 }