summaryrefslogtreecommitdiff
path: root/tor-netdoc/src/doc/routerdesc.rs
Commit message (Collapse)AuthorAgeFilesLines
* Use the "typos" tool to fix some spellingNick Mathewson2021-05-261-1/+1
|
* Prefer "relay" over "router" in docs and APIs.Nick Mathewson2021-05-181-8/+9
|
* Resolve clippy warnings from Rust 1.52.Nick Mathewson2021-05-071-2/+2
| | | | | | | | | | Rust 1.52 just came out, and there are new clippy lints to deal with: * It spots more cases when we could use Option::map * It spots more cases when we could use Iterator::flatten * When we build a struct instance, it wants us to list the fields in the same order that the struct declares them.
* Enforce (and obey) clippy lints about exhaustive enums, structs.Nick Mathewson2021-04-271-0/+1
| | | | | | | | These lints force us to declare our exported enums and exhaustive-looking structs as non-exhaustive (so that we can add to them in the future without breaking our API) or to explicitly disable the warning for a given enum/struct (to say that we _intend_ for additions to be a breaking change).
* Move RdDigest to routerdesc.rsNick Mathewson2021-03-301-2/+2
|
* dir: Add server descriptor directory requestDavid Goulet2021-03-301-0/+3
| | | | Signed-off-by: David Goulet <[email protected]>
* Fix a bunch more new clippy lints in Rust 1.51Nick Mathewson2021-03-291-6/+8
| | | | | | | | The major types are: * You implemented Into when you should have implemented From. * You sliced a slice when you didn't have to. * You said Ok(x?) when you could have said x. * You said Vec::new(); push(); push(); when you could have said vec![].
* Fix Rust-1.51 clippy warnings about acronyms in camel case.Nick Mathewson2021-03-291-26/+26
| | | | This is painful, but we shouldn't have to do it again.
* Rename Rsa{Identity,Signature} to fix clippy warning.Nick Mathewson2021-03-291-5/+5
|
* Use interned PortPolicy objects in RouterDescs too.Nick Mathewson2021-03-291-2/+3
|
* Migrate from lazy_static to once_cell.Nick Mathewson2020-12-221-66/+76
|
* Validate master-key-ed25519 field in routerdescsNick Mathewson2020-10-191-1/+14
|
* Mark must-resolve XXXX issues with "XXXXM3".Nick Mathewson2020-10-181-1/+1
| | | | | | | | | | "M3" is for "milestone 3" -- my target to fix the technical debt that I think will be bad if we ship even a pre-alpha with it. These aren't necessarily _all_ must-resolve, but they're all must-look-at. Closes #15
* Cleanup from prop315 implementation.Nick Mathewson2020-10-161-4/+2
| | | | | | | | Most of the fixes here are just removing comments that said "this isn't technically required but I'm going to pretend it is". I also made the "protocols" field in microdescs out of its Option<>, since we're now requiring that.
* Implement proposal 315: make various directory fields requiredNick Mathewson2020-10-161-17/+7
|
* Document remaining private members of tor-netdoc.Nick Mathewson2020-10-101-1/+53
|
* netdoc: more tests for routerdesc parsingNick Mathewson2020-10-071-3/+105
|
* netdoc: remove some outdated/unused stuff.Nick Mathewson2020-10-021-12/+2
|
* Netdoc: use a more bulletproof pattern to prevent infinite loopsNick Mathewson2020-10-021-0/+11
| | | | | | | | | | | | | | | | Previously our "read a bunch of this kind of document" functions had a common problem, where they could get into an infinite loop if the underlying "read this kind of document" function failed without consuming any tokens. I _think_ that this error case was unreachable (or else fuzzing would have found it, right?), but proving that it was unreachable was a bit fiddly, and I couldn't follow my own arguments about it. Instead, we just store the position of the reader before we start reading, and make sure that it has consumed at least some data. If it hasn't, then we consume and drop a token before advancing to the next document.
* Tests and minor debugging in tor_netdoc::types::policyNick Mathewson2020-09-291-2/+5
|
* Move around the modules inside tor-netdoc.Nick Mathewson2020-09-291-0/+694
This change just gives them a more logical breakdown into parsing, documents, and misc other types.