| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Use the "typos" tool to fix some spelling | Nick Mathewson | 2021-05-26 | 1 | -2/+2 |
| | | |||||
| * | Revert change to type of NetParams value. | Nick Mathewson | 2021-05-25 | 1 | -2/+2 |
| | | | | | | This truly is an i32, not a strings: it is a specified requirement in parsing consensus documents. | ||||
| * | Use macros and types to improve handling of Netdir parameters. | Nick Mathewson | 2021-05-25 | 1 | -2/+2 |
| | | | | | (Squashed from typed-netdir-params) | ||||
| * | Fix some rustdoc warnings | Nick Mathewson | 2021-05-21 | 1 | -1/+2 |
| | | |||||
| * | Add the "unreachable_pub" lint. | Nick Mathewson | 2021-05-18 | 1 | -2/+2 |
| | | | | | | | This is a somewhat obnoxious change in its scope and requirements, but it makes it easier to understand what the real public and private parts of our APIs are. | ||||
| * | Prefer "relay" over "node" in most circumstances. | Nick Mathewson | 2021-05-18 | 1 | -2/+2 |
| | | |||||
| * | Prefer "relay" over "router" in docs and APIs. | Nick Mathewson | 2021-05-18 | 1 | -55/+53 |
| | | |||||
| * | WIP: more builders. | Nick Mathewson | 2021-05-13 | 1 | -2/+1 |
| | | |||||
| * | More tests for tor-netdir::weight | Nick Mathewson | 2021-05-07 | 1 | -0/+3 |
| | | |||||
| * | Add a consensus builder, for testing. | Nick Mathewson | 2021-05-05 | 1 | -8/+33 |
| | | |||||
| * | Enforce (and obey) clippy lints about exhaustive enums, structs. | Nick Mathewson | 2021-04-27 | 1 | -1/+3 |
| | | | | | | | | | 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). | ||||
| * | Major revision on DirMgr logic -- almost a complete rewrite. | Nick Mathewson | 2021-04-13 | 1 | -0/+13 |
| | | | | | | | | | The big idea of this revision is to separate the code that knows about doing downloads from the code that decides what to download. Later, we can make a similar change for database access. With these changes together, we can make our code much more testable, and eventually enable more download types in parallel. | ||||
| * | DirMgr: add text() and texts() functions to ask for document text | Nick Mathewson | 2021-03-31 | 1 | -2/+2 |
| | | | | | | Also, start on a larger refactoring where we ask for documents by their ID. | ||||
| * | Make ConsensusFlavor a real type. | Nick Mathewson | 2021-03-31 | 1 | -22/+51 |
| | | | | | Previously we were "stringly typing" this field. Now it's time to stop. | ||||
| * | Move RdDigest to routerdesc.rs | Nick Mathewson | 2021-03-30 | 1 | -4/+0 |
| | | |||||
| * | Make RouterFlags public. | Nick Mathewson | 2021-03-30 | 1 | -4/+11 |
| | | |||||
| * | Add a test case for NS consensus parsing. | Nick Mathewson | 2021-03-30 | 1 | -1/+29 |
| | | |||||
| * | NS consensus documents have signatures on SHA1 hashes, not SHA256. | Nick Mathewson | 2021-03-30 | 1 | -8/+29 |
| | | |||||
| * | Implement parsing for ns-flavored consensus documents. | Nick Mathewson | 2021-03-30 | 1 | -2/+19 |
| | | |||||
| * | Make RouterStatus a trait and Consensus into a generic type. | Nick Mathewson | 2021-03-30 | 1 | -43/+96 |
| | | | | | This breaks surprisingly little. | ||||
| * | Start moving MdConsensus-specific code to a submodule. | Nick Mathewson | 2021-03-30 | 1 | -172/+4 |
| | | | | | This is part of refactoring to handle NsConsensuses. | ||||
| * | Fix a bunch more new clippy lints in Rust 1.51 | Nick Mathewson | 2021-03-29 | 1 | -8/+5 |
| | | | | | | | | | 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 Mathewson | 2021-03-29 | 1 | -93/+97 |
| | | | | | This is painful, but we shouldn't have to do it again. | ||||
| * | Rename Rsa{Identity,Signature} to fix clippy warning. | Nick Mathewson | 2021-03-29 | 1 | -10/+10 |
| | | |||||
| * | Add support to override network parameters in the configuration. | Nick Mathewson | 2021-02-16 | 1 | -2/+17 |
| | | |||||
| * | Detect consensuses that are signed by the wrong authorities. | Nick Mathewson | 2021-01-25 | 1 | -8/+5 |
| | | | | | | | | | | | | | With this patch we don't consider a consensus to be even potentially well-signed if the authorities that are listed as signing it don't contain enough authorities we believe in. Otherwise, we'd just try fetching certs for them and failing forever. (I found this by switching from a chutney network to the main network without cleaning out my cache.) Closes #44 | ||||
| * | Function to see whether the authorities on a netstatus are correct. | Nick Mathewson | 2021-01-25 | 1 | -0/+48 |
| | | | | | | We should find out if we believe in the authorities before we even think of downloading their certs. | ||||
| * | Remove some now unused methods from NetParams. | Nick Mathewson | 2020-12-22 | 1 | -27/+0 |
| | | |||||
| * | Expose network parameters more sensibly from NetDir. | Nick Mathewson | 2020-12-22 | 1 | -2/+6 |
| | | |||||
| * | Migrate from lazy_static to once_cell. | Nick Mathewson | 2020-12-22 | 1 | -106/+103 |
| | | |||||
| * | Make RSAIdentity implement Copy. | Nick Mathewson | 2020-12-08 | 1 | -2/+2 |
| | | |||||
| * | Resolve a few nightly-only clippy issues | Nick Mathewson | 2020-12-07 | 1 | -6/+5 |
| | | |||||
| * | Enforce that the periods in a consensus lifetime are nonempty. | Nick Mathewson | 2020-12-04 | 1 | -6/+10 |
| | | | | | | To be valid, a lifetime must have valid_after < fresh_until < valid_until. | ||||
| * | Fix a copy-paste bug in netstatus::Lifetime | Nick Mathewson | 2020-12-04 | 1 | -1/+1 |
| | | |||||
| * | Add a few easy tests in weights.rs | Nick Mathewson | 2020-12-02 | 1 | -2/+1 |
| | | |||||
| * | Use a better calculation for deciding if we have enough paths. | Nick Mathewson | 2020-12-02 | 1 | -1/+32 |
| | | |||||
| * | Implement correct (?) weighting for path selection. | Nick Mathewson | 2020-12-02 | 1 | -1/+15 |
| | | |||||
| * | When storing consensuses, index them by the sha3 of the whole file. | Nick Mathewson | 2020-11-23 | 1 | -5/+7 |
| | | |||||
| * | Initial pass on directory-manager code. | Nick Mathewson | 2020-11-19 | 1 | -0/+6 |
| | | | | | | | | | This code can now bootstrap from the network, cache the results, and reload from cache. There's lots more work to do here, including a big pile of tidying and refactoring and testing and documentation. | ||||
| * | Add support for using fallback directories in path construction | Nick Mathewson | 2020-11-19 | 1 | -1/+14 |
| | | | | | | | This is mainly a refactoring commit, with a little new code. It also adds #[derive(Copy,Clone)] for a few types. | ||||
| * | Type and functions for key ID inspection of AuthCert. | Nick Mathewson | 2020-11-16 | 1 | -19/+18 |
| | | |||||
| * | Have the consensus-parsing code expose the signed piece of the consensus. | Nick Mathewson | 2020-11-16 | 1 | -6/+9 |
| | | |||||
| * | Add accessors for consensus lifetimes. | Nick Mathewson | 2020-11-14 | 1 | -6/+43 |
| | | |||||
| * | Use Infallible in tor-netdoc. | Nick Mathewson | 2020-11-11 | 1 | -2/+2 |
| | | |||||
| * | Use bitflags crate to represent RouterFlags. | Nick Mathewson | 2020-11-11 | 1 | -90/+74 |
| | | |||||
| * | Add a new circuit-manager crate and move path selection there. | Nick Mathewson | 2020-11-02 | 1 | -0/+8 |
| | | |||||
| * | netdir: don't use relays with NoEdConsensus flag set. | Nick Mathewson | 2020-10-19 | 1 | -1/+5 |
| | | |||||
| * | Mark must-resolve XXXX issues with "XXXXM3". | Nick Mathewson | 2020-10-18 | 1 | -2/+2 |
| | | | | | | | | | | | "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 Mathewson | 2020-10-16 | 1 | -11/+8 |
| | | | | | | | | | 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 required | Nick Mathewson | 2020-10-16 | 1 | -1/+1 |
| | | |||||
