]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Split required/recommended protocol lists into multiple lines
authorNick Mathewson <nickm@torproject.org>
Sun, 18 Oct 2020 20:18:42 +0000 (16:18 -0400)
committerNick Mathewson <nickm@torproject.org>
Sun, 18 Oct 2020 20:18:42 +0000 (16:18 -0400)
This should make diffs easier to read.

src/feature/dirauth/dirvote.h

index 1b1c9f2cc710499cb83909129a98fd46d84573fd..7cfa72ead5ce81e3bff4365bb6dd3c547f1bf2aa 100644 (file)
@@ -239,31 +239,62 @@ 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_RELAY_PROTO \
-  "Cons=1-2 Desc=1-2 DirCache=2 HSDir=2 HSIntro=4 HSRend=2 " \
-  "Link=5 LinkAuth=3 Microdesc=1-2 Relay=2"
+  "Cons=2 "                           \
+  "Desc=2 "                           \
+  "DirCache=1-2 "                     \
+  "HSDir=1 "                          \
+  "HSIntro=3 "                        \
+  "HSRend=1 "                         \
+  "Link=4 "                           \
+  "Microdesc=2 "                      \
+  "Relay=2"
+
 /** The recommended client protocols for this authority's votes.
  * Recommending a new protocol causes old tor versions to log a warning.
  */
 #define DIRVOTE_RECOMMEND_CLIENT_PROTO \
-  "Cons=1-2 Desc=1-2 DirCache=2 HSDir=2 HSIntro=4 HSRend=2 " \
-  "Link=5 LinkAuth=3 Microdesc=1-2 Relay=2"
+  "Cons=1-2 "                          \
+  "Desc=1-2 "                          \
+  "DirCache=2 "                        \
+  "HSDir=2 "                           \
+  "HSIntro=4 "                         \
+  "HSRend=2 "                          \
+  "Link=5 "                            \
+  "LinkAuth=3 "                        \
+  "Microdesc=1-2 "                     \
+  "Relay=2"
 
 /** The required relay protocols for this authority's votes.
  * WARNING: Requiring a new protocol causes old tor versions to shut down.
  *          Requiring the wrong protocols can break the tor network.
  * See Proposal 303: When and how to remove support for protocol versions.
  */
-#define DIRVOTE_REQUIRE_RELAY_PROTO \
-  "Cons=1 Desc=1 DirCache=1 HSDir=1 HSIntro=3 HSRend=1 " \
-  "Link=3-4 Microdesc=1 Relay=1-2"
+#define DIRVOTE_REQUIRE_RELAY_PROTO             \
+  "Cons=1 "                                     \
+  "Desc=1 "                                     \
+  "DirCache=1 "                                 \
+  "HSDir=1 "                                    \
+  "HSIntro=3 "                                  \
+  "HSRend=1 "                                   \
+  "Link=3-4 "                                   \
+  "Microdesc=1 "                                \
+  "Relay=1-2"                                   \
+
 /** The required relay protocols for this authority's votes.
  * WARNING: Requiring a new protocol causes old tor versions to shut down.
  *          Requiring the wrong protocols can break the tor network.
  * See Proposal 303: When and how to remove support for protocol versions.
  */
 #define DIRVOTE_REQUIRE_CLIENT_PROTO \
-  "Cons=1-2 Desc=1-2 DirCache=1 HSDir=1 HSIntro=3 HSRend=1 " \
-  "Link=4 Microdesc=1-2 Relay=2"
+  "Cons=1-2 "                        \
+  "Desc=1-2 "                        \
+  "DirCache=1 "                      \
+  "HSDir=1 "                         \
+  "HSIntro=3 "                       \
+  "HSRend=1 "                        \
+  "Link=4 "                          \
+  "Microdesc=1-2 "                   \
+  "Relay=2"
 
 #endif /* defined(DIRVOTE_PRIVATE) */