-
- Downloads
Implement proposal 318: Limit protovers to 0..63
In brief: we go through a lot of gymnastics to handle huge protover numbers, but after years of development we're not even close to 10 for any of our current versions. We also have a convenient workaround available in case we ever run out of protocols: if (for example) we someday need Link=64, we can just add Link2=0 or something. This patch is a minimal patch to change tor's behavior; it doesn't take advantage of the new restrictions. Implements #40133 and proposal 318.
Showing
- changes/ticket40133 5 additions, 0 deletionschanges/ticket40133
- src/core/or/protover.c 2 additions, 2 deletionssrc/core/or/protover.c
- src/rust/protover/errors.rs 1 addition, 1 deletionsrc/rust/protover/errors.rs
- src/rust/protover/protoset.rs 14 additions, 6 deletionssrc/rust/protover/protoset.rs
- src/rust/protover/protover.rs 5 additions, 5 deletionssrc/rust/protover/protover.rs
- src/rust/protover/tests/protover.rs 17 additions, 43 deletionssrc/rust/protover/tests/protover.rs
- src/test/test_protover.c 22 additions, 69 deletionssrc/test/test_protover.c
Loading
Please register or sign in to comment