]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Update required/recommended protocol versions.
authorNick Mathewson <nickm@torproject.org>
Sun, 18 Oct 2020 20:09:25 +0000 (16:09 -0400)
committerNick Mathewson <nickm@torproject.org>
Sun, 18 Oct 2020 20:23:53 +0000 (16:23 -0400)
  Cons=1 is the old format of consensuses, without ed25519 keys. It
  is no longer required or recommended.

  Cons=2 is the new format of consensuses, with ed25519 keys. It
  is now required.

  (Similarly for Desc=1,2 and Microdesc=1,2)

No supported client or relay versions should be affected by this
change, since these versions are supported by clients and relays
running 0.2.9 and later.  It will only take effect once enough
authorities vote for it.

Closes ticket 40162.

changes/ticket40162 [new file with mode: 0644]
src/feature/dirauth/dirvote.h

diff --git a/changes/ticket40162 b/changes/ticket40162
new file mode 100644 (file)
index 0000000..5a8a76b
--- /dev/null
@@ -0,0 +1,7 @@
+  o Minor features (authorities):
+    - Authorities now list the directory formats used by currently supported
+      Tor releases as required.  Previously, they listed only the formats
+      supported by older Tor releases as required.  This change makes
+      the subprotocols "Cons=2 Desc=2 Microdesc=2" required, and makes
+      "Cons=1 Desc=1 Microdesc=1" no longer required or recommended.
+      Closes ticket 40162.
index 7cfa72ead5ce81e3bff4365bb6dd3c547f1bf2aa..69c8a025c4df66908b45272f9b04f69e46e1c0fd 100644 (file)
@@ -253,8 +253,8 @@ STATIC microdesc_t *dirvote_create_microdescriptor(const routerinfo_t *ri,
  * Recommending a new protocol causes old tor versions to log a warning.
  */
 #define DIRVOTE_RECOMMEND_CLIENT_PROTO \
-  "Cons=1-2 "                          \
-  "Desc=1-2 "                          \
+  "Cons=2 "                            \
+  "Desc=2 "                            \
   "DirCache=2 "                        \
   "HSDir=2 "                           \
   "HSIntro=4 "                         \
@@ -270,14 +270,14 @@ STATIC microdesc_t *dirvote_create_microdescriptor(const routerinfo_t *ri,
  * See Proposal 303: When and how to remove support for protocol versions.
  */
 #define DIRVOTE_REQUIRE_RELAY_PROTO             \
-  "Cons=1 "                                     \
-  "Desc=1 "                                     \
+  "Cons=2 "                                     \
+  "Desc=2 "                                     \
   "DirCache=1 "                                 \
   "HSDir=1 "                                    \
   "HSIntro=3 "                                  \
   "HSRend=1 "                                   \
   "Link=3-4 "                                   \
-  "Microdesc=1 "                                \
+  "Microdesc=2 "                                \
   "Relay=1-2"                                   \
 
 /** The required relay protocols for this authority's votes.
@@ -286,14 +286,14 @@ STATIC microdesc_t *dirvote_create_microdescriptor(const routerinfo_t *ri,
  * See Proposal 303: When and how to remove support for protocol versions.
  */
 #define DIRVOTE_REQUIRE_CLIENT_PROTO \
-  "Cons=1-2 "                        \
-  "Desc=1-2 "                        \
+  "Cons=2 "                          \
+  "Desc=2 "                          \
   "DirCache=1 "                      \
   "HSDir=1 "                         \
   "HSIntro=3 "                       \
   "HSRend=1 "                        \
   "Link=4 "                          \
-  "Microdesc=1-2 "                   \
+  "Microdesc=2 "                     \
   "Relay=2"
 
 #endif /* defined(DIRVOTE_PRIVATE) */