[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/master] Bug 31356: Bump protover for new padding machines



commit b14bb12e39d3ccb95a9e5d9cf3eda8428c129520
Author: Mike Perry <mikeperry-git@xxxxxxxxxxxxxx>
Date:   Thu Aug 8 12:49:33 2019 -0500

    Bug 31356: Bump protover for new padding machines
    
    By binding the protover numbering to specific padding machines, we can make
    our padding negotiation simpler. We probably should have done this in the
    first place.
    
    This has the side effect that earlier 0.4.1.x-alpha clients won't negotiate
    with 0.4.1.x-stable relays, and 0.4.1.x-stable clients won't negotiate with
    earlier 0.4.1.x-alpha relays (or 0.4.0.x relays). Since we don't support
    alphas after the stable is released, this is fine, so long as it gets in
    before the first stable of 0.4.1.x.
---
 src/core/or/protover.c        | 2 +-
 src/rust/protover/protover.rs | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/core/or/protover.c b/src/core/or/protover.c
index e12919f0a..ccd33fabf 100644
--- a/src/core/or/protover.c
+++ b/src/core/or/protover.c
@@ -402,7 +402,7 @@ protover_get_supported_protocols(void)
 #endif
     "Microdesc=1-2 "
     "Relay=1-2 "
-    "Padding=1 "
+    "Padding=2 "
     "FlowCtrl=1";
 }
 
diff --git a/src/rust/protover/protover.rs b/src/rust/protover/protover.rs
index f7d9d6d15..7a76fcdd9 100644
--- a/src/rust/protover/protover.rs
+++ b/src/rust/protover/protover.rs
@@ -168,7 +168,7 @@ pub(crate) fn get_supported_protocols_cstr() -> &'static CStr {
              LinkAuth=3 \
              Microdesc=1-2 \
              Relay=1-2 \
-             Padding=1 \
+             Padding=2 \
              FlowCtrl=1"
         )
     } else {
@@ -183,7 +183,7 @@ pub(crate) fn get_supported_protocols_cstr() -> &'static CStr {
              LinkAuth=1,3 \
              Microdesc=1-2 \
              Relay=1-2 \
-             Padding=1 \
+             Padding=2 \
              FlowCtrl=1"
         )
     }



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits