| Commit message (Collapse) | Author | Age | Files | Lines | ||
|---|---|---|---|---|---|---|
| ... | ||||||
| * | 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 | 7 | -239/+244 | |
| | | ||||||
| * | Make sure that a circuit doesn't use relays in the same family | Lunar | 2020-12-16 | 2 | -0/+30 | |
| | | | | | | | | | | | | | | We implement `Relay::in_same_family` which is in turn used by `ExitPathBuilder::pick_path` to avoid picking relays in the same family. Compared to the original C implementation, we are missing support for options EnforceDistinctSubnets and NodeFamilySets. This has only been very lightly tested so far. Closes: #43 | |||||
| * | Fix some rustdoc warnings. | Nick Mathewson | 2020-12-09 | 1 | -1/+1 | |
| | | ||||||
| * | Make RSAIdentity implement Copy. | Nick Mathewson | 2020-12-08 | 1 | -2/+2 | |
| | | ||||||
| * | Resolve a few nightly-only clippy issues | Nick Mathewson | 2020-12-07 | 2 | -13/+6 | |
| | | ||||||
| * | Enforce that the periods in a consensus lifetime are nonempty. | Nick Mathewson | 2020-12-04 | 2 | -6/+15 | |
| | | | | | | To be valid, a lifetime must have valid_after < fresh_until < valid_until. | |||||
| * | authcert: move location into UncheckedAuthCert. | Nick Mathewson | 2020-12-04 | 1 | -22/+39 | |
| | | | | | This lets us make AuthCert Send and Sync. | |||||
| * | 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 | |
| | | ||||||
| * | Run cargo fix --edition-idioms | Nick Mathewson | 2020-12-02 | 2 | -4/+4 | |
| | | ||||||
| * | 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 | 2 | -1/+7 | |
| | | | | | | | | | 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. | |||||
| * | Refactor AuthCertKeyIds::cmp(). | Nick Mathewson | 2020-11-19 | 1 | -5/+3 | |
| | | ||||||
| * | 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. | |||||
| * | Make AuthCertKeyIds sortable. | Nick Mathewson | 2020-11-16 | 1 | -0/+16 | |
| | | ||||||
| * | Type and functions for key ID inspection of AuthCert. | Nick Mathewson | 2020-11-16 | 2 | -27/+52 | |
| | | ||||||
| * | 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 | |
| | | ||||||
| * | Remember the position of authcert and microdescs | Nick Mathewson | 2020-11-14 | 3 | -12/+64 | |
| | | | | | | We'll need this to save them to disk after parsing them from an upstream source. | |||||
| * | netdoc: Add a bogus "Extent()" facility to remember where things were. | Nick Mathewson | 2020-11-14 | 1 | -0/+126 | |
| | | | | | Also add the missing str.rs file (oops) | |||||
| * | netdoc: split off string utils | Nick Mathewson | 2020-11-14 | 3 | -57/+4 | |
| | | ||||||
| * | Use Infallible in tor-netdoc. | Nick Mathewson | 2020-11-11 | 1 | -2/+2 | |
| | | ||||||
| * | Mark tor_netdoc::err::Pos as Send and Sync | Nick Mathewson | 2020-11-11 | 1 | -0/+9 | |
| | | | | | | | I am about 99% sure this is safe: the pointer that this type contains is never dereferenced, and is only compared to the bounds of a string later on. | |||||
| * | Use bitflags crate to represent RouterFlags. | Nick Mathewson | 2020-11-11 | 2 | -90/+75 | |
| | | ||||||
| * | Upgrade dependencies | Nick Mathewson | 2020-11-10 | 1 | -1/+1 | |
| | | ||||||
| * | Add a new circuit-manager crate and move path selection there. | Nick Mathewson | 2020-11-02 | 1 | -0/+8 | |
| | | ||||||
| * | Remove a bunch of dbg! calls. | Nick Mathewson | 2020-10-26 | 1 | -2/+2 | |
| | | ||||||
| * | More documentation in tor-netdoc. | Nick Mathewson | 2020-10-26 | 9 | -2/+123 | |
| | | ||||||
| * | Use from_bytes name for Ed25519Identity | Nick Mathewson | 2020-10-25 | 1 | -2/+2 | |
| | | ||||||
| * | Validate master-key-ed25519 field in routerdescs | Nick Mathewson | 2020-10-19 | 1 | -1/+14 | |
| | | ||||||
| * | netdir: don't use relays with NoEdConsensus flag set. | Nick Mathewson | 2020-10-19 | 1 | -1/+5 | |
| | | ||||||
| * | Improvements to Relay type in tor-netdir. | Nick Mathewson | 2020-10-19 | 1 | -4/+3 | |
| | | | | | | | | | | | | Now, a Relay is always valid. This required some changes to the API: all_relays() has to return a new UncheckedRelay type that might or might not be valid, and the functions on Relay and ChanTarget that return ed25519 identities need to return an Ed25519Identity, not an ed25519::PublicKey. This change required some new encoding/decoding/conversion functions on Ed25519Identity. | |||||
| * | Calculate digest correctly when microdesc ends with base64 object. | Nick Mathewson | 2020-10-19 | 3 | -23/+43 | |
| | | ||||||
| * | Netdoc: validate objects even on unrecognized items. | Nick Mathewson | 2020-10-19 | 4 | -10/+38 | |
| | | ||||||
| * | portpolicy: note a spec issue | Nick Mathewson | 2020-10-19 | 1 | -1/+2 | |
| | | ||||||
| * | Mark must-resolve XXXX issues with "XXXXM3". | Nick Mathewson | 2020-10-18 | 6 | -7/+7 | |
| | | | | | | | | | | | "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 | |||||
| * | Update microdesc parsing: ed25519 keys are no longer optional. | Nick Mathewson | 2020-10-18 | 1 | -10/+8 | |
| | | ||||||
| * | Cleanup from prop315 implementation. | Nick Mathewson | 2020-10-16 | 2 | -15/+10 | |
| | | | | | | | | | 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 | 2 | -18/+8 | |
| | | ||||||
| * | Run "cargo upgrade". | Nick Mathewson | 2020-10-15 | 1 | -4/+4 | |
| | | ||||||
| * | Use Ed25519Identity in microdescriptors. | Nick Mathewson | 2020-10-15 | 2 | -13/+19 | |
| | | ||||||
| * | Document remaining private members of tor-netdoc. | Nick Mathewson | 2020-10-10 | 5 | -7/+255 | |
| | | ||||||
| * | Document most private items in tor-netdoc. | Nick Mathewson | 2020-10-09 | 10 | -8/+114 | |
| | | ||||||
| * | Add routerdesc examples | Nick Mathewson | 2020-10-07 | 7 | -0/+343 | |
| | | ||||||
| * | netdoc: more tests for routerdesc parsing | Nick Mathewson | 2020-10-07 | 2 | -5/+107 | |
| | | ||||||
| * | A few more tests in tor-netdoc | Nick Mathewson | 2020-10-07 | 2 | -3/+90 | |
| | | ||||||
