| Commit message (Collapse) | Author | Age | Files | Lines | ||
|---|---|---|---|---|---|---|
| ... | ||||||
| * | It is not an error to see an unrecognized parameter. | Nick Mathewson | 2021-05-25 | 2 | -56/+45 | |
| | | ||||||
| * | Fix clippy warnings by marking types non-exhaustive. | Nick Mathewson | 2021-05-25 | 1 | -1/+3 | |
| | | ||||||
| * | Revert change to type of NetParams value. | Nick Mathewson | 2021-05-25 | 3 | -68/+48 | |
| | | | | | | 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 | 3 | -262/+258 | |
| | | | | | (Squashed from typed-netdir-params) | |||||
| * | More docs on tor-netdir. | Nick Mathewson | 2021-05-24 | 1 | -8/+26 | |
| | | ||||||
| * | Make netdir's Relay type derive "Clone". | Alexander Færøy | 2021-05-20 | 1 | -0/+1 | |
| | | ||||||
| * | fix a clippy warning about pick_weighted. | Nick Mathewson | 2021-05-19 | 1 | -1/+1 | |
| | | ||||||
| * | Prefer "relay" over "node" in most circumstances. | Nick Mathewson | 2021-05-18 | 1 | -14/+14 | |
| | | ||||||
| * | Prefer "relay" over "router" in docs and APIs. | Nick Mathewson | 2021-05-18 | 2 | -59/+56 | |
| | | ||||||
| * | Add builders for authority and fallback objects. | Nick Mathewson | 2021-05-10 | 1 | -10/+65 | |
| | | ||||||
| * | tor_netdir: tests on relay picking and more | Nick Mathewson | 2021-05-10 | 2 | -13/+115 | |
| | | ||||||
| * | netdir: Add real tests for frac_for_role(). | Nick Mathewson | 2021-05-10 | 2 | -7/+111 | |
| | | | | | | Also fix a bug in calculating have_enough_paths(): we were assuming the wrong behavior for weight_for_role(). | |||||
| * | netdir: remove unused From implementation. | Nick Mathewson | 2021-05-10 | 1 | -6/+0 | |
| | | ||||||
| * | Add some tests to tor-netdir. | Nick Mathewson | 2021-05-07 | 1 | -0/+138 | |
| | | ||||||
| * | More tests for tor-netdir::weight | Nick Mathewson | 2021-05-07 | 1 | -0/+86 | |
| | | ||||||
| * | Fix documentation warnings. | Nick Mathewson | 2021-05-05 | 1 | -1/+1 | |
| | | ||||||
| * | Add trait_duplication_in_bounds warning. | Nick Mathewson | 2021-05-03 | 1 | -0/+1 | |
| | | ||||||
| * | Add unseparated_literal_suffix lint, and fix it. | Nick Mathewson | 2021-05-03 | 1 | -0/+1 | |
| | | ||||||
| * | Add a few more clippy warnings | Nick Mathewson | 2021-05-03 | 1 | -0/+5 | |
| | | ||||||
| * | Add some more clippy warnings to our list. | Nick Mathewson | 2021-04-27 | 1 | -1/+6 | |
| | | ||||||
| * | Enforce (and obey) clippy lints about exhaustive enums, structs. | Nick Mathewson | 2021-04-27 | 3 | -0/+6 | |
| | | | | | | | | | 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). | |||||
| * | Upgrade rusqlite; remove needless usage. | Nick Mathewson | 2021-04-05 | 1 | -6/+0 | |
| | | ||||||
| * | Use Arc::make_mut() to simplify the code a bit | Nick Mathewson | 2021-03-30 | 1 | -19/+0 | |
| | | | | | | Previously we used NetDir::extend here, which used try_unwrap. But it's much simpler to use the intended object for this purpose. | |||||
| * | Experimental accessor functions for Relay members. | Nick Mathewson | 2021-03-30 | 1 | -0/+26 | |
| | | ||||||
| * | Make reasonable set of default fallback directories | Nick Mathewson | 2021-03-30 | 1 | -3/+0 | |
| | | ||||||
| * | Make RouterStatus a trait and Consensus into a generic type. | Nick Mathewson | 2021-03-30 | 1 | -1/+1 | |
| | | | | | This breaks surprisingly little. | |||||
| * | Fix Rust-1.51 clippy warnings about acronyms in camel case. | Nick Mathewson | 2021-03-29 | 2 | -42/+42 | |
| | | | | | 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 | 2 | -8/+8 | |
| | | ||||||
| * | Don't copy exit policies around; instead use Arc. | George Kadianakis | 2021-03-29 | 1 | -2/+2 | |
| | | ||||||
| * | Add a compatibility layer so we can upgrade rand_core. | Nick Mathewson | 2021-03-18 | 1 | -5/+16 | |
| | | | | | | | dalek-crypto is stuck on rand_core 0.5.1, so we've been stuck too. This commit introduces a compatibility module so that we can wrap new rand_core instances to make them backward compatible. | |||||
| * | Resolve unwrap() instances in tor-netdir. | Nick Mathewson | 2021-03-16 | 3 | -8/+52 | |
| | | | | | | This includes revising the pick_weighted() function to not panic if its inputs are above 2^64 in total. | |||||
| * | Add support to override network parameters in the configuration. | Nick Mathewson | 2021-02-16 | 2 | -5/+27 | |
| | | ||||||
| * | Apply "deny_unknown_fields" to configuration types. | Nick Mathewson | 2021-02-12 | 1 | -0/+4 | |
| | | ||||||
| * | Make authorities and fallbacks configurable. | Nick Mathewson | 2021-02-11 | 2 | -921/+2 | |
| | | | | | | | | | | | This commit adds configuration options for these values, with the right defaults, and uses those options instead of built-in functions to set them. We also remove the function to extract information from chutney directories: now that arti is configurable, it can be chutney's job to make its own network configurations. | |||||
| * | Resolve a few more XXX-A1 comments in dirmgr. | Nick Mathewson | 2021-01-25 | 1 | -0/+5 | |
| | | ||||||
| * | Cleanup on DirInfo::circ_params. | Nick Mathewson | 2020-12-22 | 1 | -0/+43 | |
| | | ||||||
| * | Implement the "circwindow" and "ExtendByEd25519ID" parameters | Nick Mathewson | 2020-12-22 | 1 | -4/+0 | |
| | | | | | | | These necessitated a little complexity for our circuit creation/extension API; we might want to refactor that down the road. | |||||
| * | Expose network parameters more sensibly from NetDir. | Nick Mathewson | 2020-12-22 | 3 | -12/+290 | |
| | | ||||||
| * | Migrate from lazy_static to once_cell. | Nick Mathewson | 2020-12-22 | 1 | -6/+4 | |
| | | ||||||
| * | Check ipv6 exit policies when trying to connect to an ipv6 port specifically | Nick Mathewson | 2020-12-22 | 1 | -2/+5 | |
| | | ||||||
| * | Simplification: Every relay is in the same family as itself. | Nick Mathewson | 2020-12-17 | 1 | -0/+5 | |
| | | ||||||
| * | Make sure that a circuit doesn't use relays in the same family | Lunar | 2020-12-16 | 1 | -0/+8 | |
| | | | | | | | | | | | | | | 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 | |||||
| * | Write a few misc unit tests | Nick Mathewson | 2020-12-15 | 1 | -0/+33 | |
| | | ||||||
| * | Remember the actual usable ports for an exit after we've built a circuit | Nick Mathewson | 2020-12-14 | 1 | -0/+11 | |
| | | | | | | | | | Previously we'd just remember the port that we _wanted_ a circuit for, and forget all the ports that it _could_ support. This is part of a bigger circmgr revision/refactoring pass; there should be cleanups before I merge this. | |||||
| * | Fix some rustdoc warnings. | Nick Mathewson | 2020-12-09 | 1 | -1/+1 | |
| | | ||||||
| * | Use uniform weight all measured weights are zero. | Nick Mathewson | 2020-12-07 | 1 | -9/+13 | |
| | | ||||||
| * | Mark some XXXX issues as XXXX-A1. | Nick Mathewson | 2020-12-07 | 3 | -3/+3 | |
| | | ||||||
| * | Add a missing documentation comment. | Nick Mathewson | 2020-12-07 | 1 | -0/+1 | |
| | | ||||||
| * | Reuse microdescriptors from previous consensus | Nick Mathewson | 2020-12-06 | 1 | -1/+4 | |
| | | | | | | Previously, we'd re-parse them from the database every time we got a new consensus. | |||||
| * | Refactor NetDir a little for space savings and updating | Nick Mathewson | 2020-12-06 | 1 | -19/+96 | |
| | | | | | | | | Rather than having the NetDir own its microdescs and consensus, give it Arc<>s for them. This way, we can do a shallow copy of a NetDir to work around mutability issues that would otherwise make it hard to add microdescs to a netdir on the fly. | |||||
