aboutsummaryrefslogtreecommitdiff
path: root/tor-netdoc
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove some now unused methods from NetParams.Nick Mathewson2020-12-221-27/+0
|
* Expose network parameters more sensibly from NetDir.Nick Mathewson2020-12-221-2/+6
|
* Migrate from lazy_static to once_cell.Nick Mathewson2020-12-227-239/+244
|
* Make sure that a circuit doesn't use relays in the same familyLunar2020-12-162-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 Mathewson2020-12-091-1/+1
|
* Make RSAIdentity implement Copy.Nick Mathewson2020-12-081-2/+2
|
* Resolve a few nightly-only clippy issuesNick Mathewson2020-12-072-13/+6
|
* Enforce that the periods in a consensus lifetime are nonempty.Nick Mathewson2020-12-042-6/+15
| | | | | To be valid, a lifetime must have valid_after < fresh_until < valid_until.
* authcert: move location into UncheckedAuthCert.Nick Mathewson2020-12-041-22/+39
| | | | This lets us make AuthCert Send and Sync.
* Fix a copy-paste bug in netstatus::LifetimeNick Mathewson2020-12-041-1/+1
|
* Add a few easy tests in weights.rsNick Mathewson2020-12-021-2/+1
|
* Run cargo fix --edition-idiomsNick Mathewson2020-12-022-4/+4
|
* Use a better calculation for deciding if we have enough paths.Nick Mathewson2020-12-021-1/+32
|
* Implement correct (?) weighting for path selection.Nick Mathewson2020-12-021-1/+15
|
* When storing consensuses, index them by the sha3 of the whole file.Nick Mathewson2020-11-231-5/+7
|
* Initial pass on directory-manager code.Nick Mathewson2020-11-192-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 Mathewson2020-11-191-5/+3
|
* Add support for using fallback directories in path constructionNick Mathewson2020-11-191-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 Mathewson2020-11-161-0/+16
|
* Type and functions for key ID inspection of AuthCert.Nick Mathewson2020-11-162-27/+52
|
* Have the consensus-parsing code expose the signed piece of the consensus.Nick Mathewson2020-11-161-6/+9
|
* Add accessors for consensus lifetimes.Nick Mathewson2020-11-141-6/+43
|
* Remember the position of authcert and microdescsNick Mathewson2020-11-143-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 Mathewson2020-11-141-0/+126
| | | | Also add the missing str.rs file (oops)
* netdoc: split off string utilsNick Mathewson2020-11-143-57/+4
|
* Use Infallible in tor-netdoc.Nick Mathewson2020-11-111-2/+2
|
* Mark tor_netdoc::err::Pos as Send and SyncNick Mathewson2020-11-111-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 Mathewson2020-11-112-90/+75
|
* Upgrade dependenciesNick Mathewson2020-11-101-1/+1
|
* Add a new circuit-manager crate and move path selection there.Nick Mathewson2020-11-021-0/+8
|
* Remove a bunch of dbg! calls.Nick Mathewson2020-10-261-2/+2
|
* More documentation in tor-netdoc.Nick Mathewson2020-10-269-2/+123
|
* Use from_bytes name for Ed25519IdentityNick Mathewson2020-10-251-2/+2
|
* Validate master-key-ed25519 field in routerdescsNick Mathewson2020-10-191-1/+14
|
* netdir: don't use relays with NoEdConsensus flag set.Nick Mathewson2020-10-191-1/+5
|
* Improvements to Relay type in tor-netdir.Nick Mathewson2020-10-191-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 Mathewson2020-10-193-23/+43
|
* Netdoc: validate objects even on unrecognized items.Nick Mathewson2020-10-194-10/+38
|
* portpolicy: note a spec issueNick Mathewson2020-10-191-1/+2
|
* Mark must-resolve XXXX issues with "XXXXM3".Nick Mathewson2020-10-186-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 Mathewson2020-10-181-10/+8
|
* Cleanup from prop315 implementation.Nick Mathewson2020-10-162-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 requiredNick Mathewson2020-10-162-18/+8
|
* Run "cargo upgrade".Nick Mathewson2020-10-151-4/+4
|
* Use Ed25519Identity in microdescriptors.Nick Mathewson2020-10-152-13/+19
|
* Document remaining private members of tor-netdoc.Nick Mathewson2020-10-105-7/+255
|
* Document most private items in tor-netdoc.Nick Mathewson2020-10-0910-8/+114
|
* Add routerdesc examplesNick Mathewson2020-10-077-0/+343
|
* netdoc: more tests for routerdesc parsingNick Mathewson2020-10-072-5/+107
|
* A few more tests in tor-netdocNick Mathewson2020-10-072-3/+90
|