| Commit message (Collapse) | Author | Age | Files | Lines | ||
|---|---|---|---|---|---|---|
| ... | ||||||
| * | tor-circmgr: Add allow(unused) for functions only used on particular feature ↵ | Gabriela Moldovan | 2024-03-20 | 1 | -0/+2 | |
| | | | | | sets. | |||||
| * | tor-circmgr: Move ExitPathBuilder::from_chosen_exit under the test mod. | Gabriela Moldovan | 2024-03-20 | 1 | -10/+13 | |
| | | | | | | `ExitPathBuilder` is now `pub(crate)`, so we need to move this under the `test` module to fix the "unused" clippy warning. | |||||
| * | tor-circmgr: Make the path module crate-private. | Gabriela Moldovan | 2024-03-20 | 5 | -16/+24 | |
| | | | | | | | | | | | | | | | We're not currently using any of the path builders outside of `tor-circmgr`, so let's make them crate-private for now. Care must be taken if/when we decide to make them public again. For instance, the `HsPathBuilder` exposes two path building functions, one that uses vanguards, and one that doesn't. We want to strongly encourage the use of the vanguards-aware version of the function whenever the `vanguards` feature is enabled, without breaking any of its existing non-vanguard uses. Prompted by https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/2046#note_3010217 | |||||
| * | tor-circmgr: Reference #1339 in a TODO. | Gabriela Moldovan | 2024-03-20 | 1 | -0/+2 | |
| | | ||||||
| * | tor-circmgr: Cross-reference the hspath docs in the HsCircStubKind docs. | Gabriela Moldovan | 2024-03-20 | 1 | -1/+3 | |
| | | ||||||
| * | tor-circmgr: Move HsPathBuilder docs to the module-level. | Gabriela Moldovan | 2024-03-20 | 1 | -39/+41 | |
| | | ||||||
| * | tor-circmgr: Remove unnecessary Result wrapping. | Gabriela Moldovan | 2024-03-20 | 2 | -10/+9 | |
| | | ||||||
| * | tor-circmgr: Unconditionally define VanguardMode. | Gabriela Moldovan | 2024-03-20 | 2 | -16/+7 | |
| | | ||||||
| * | tor-circmgr: Apply deferred cargo fmt. | Gabriela Moldovan | 2024-03-20 | 1 | -9/+2 | |
| | | ||||||
| * | tor-circmgr: Rename pick_path to pick_path_with_vanguards. | Gabriela Moldovan | 2024-03-20 | 2 | -5/+5 | |
| | | | | | | | When the `vanguards` feature is enabled, we define `pick_path_with_vanguards` instead of `pick_path`, rather than conditionally defining 2 different versions of the same function. | |||||
| * | tor-circmgr: Add an explanation and a couple of TODOs. | Gabriela Moldovan | 2024-03-20 | 1 | -0/+8 | |
| | | ||||||
| * | tor-circmgr: Clarify the TODO in launch_hs_circuits_as_needed. | Gabriela Moldovan | 2024-03-20 | 1 | -2/+12 | |
| | | ||||||
| * | tor-circmgr: Remove unnecessary AnonymousPathBuilder impl. | Gabriela Moldovan | 2024-03-20 | 2 | -36/+30 | |
| | | | | | | | | | Instead of the `B: AnonymousPathBuilder` argument, `select_guard` now takes separate arguments for the values it previously obtained by calling the methods of `AnonymousPathBuilder`. This enables us to remove the mostly unnecessary `AnonymousPathBuilder` implementation of `VanguardHsPathBuilder`. | |||||
| * | tor-circmgr: s/can_build/can_become. | Gabriela Moldovan | 2024-03-20 | 1 | -2/+2 | |
| | | ||||||
| * | tor-circmgr: Move match block to a separate function. | Gabriela Moldovan | 2024-03-20 | 1 | -15/+20 | |
| | | ||||||
| * | tor-circmgr: Remove an addressed TODO. | Gabriela Moldovan | 2024-03-20 | 1 | -5/+0 | |
| | | | | | | This was addressed by extracting the guard selection from `pick_path()` into `select_guard()`. | |||||
| * | tor-circmgr: Talk about vanguards path selection in HsPathBuilder docs. | Gabriela Moldovan | 2024-03-20 | 1 | -3/+23 | |
| | | ||||||
| * | tor-circmgr: Implement vanguard path selection in HsPathBuilder. | Gabriela Moldovan | 2024-03-20 | 1 | -8/+120 | |
| | | | | | Part of #1279 | |||||
| * | tor-circmgr: Extract guard selection to a separate function. | Gabriela Moldovan | 2024-03-20 | 1 | -43/+58 | |
| | | | | | | We're about to reuse this in the path selection with vanguards implementation. | |||||
| * | tor-circmgr: Impl From<Vanguard> for MaybeOwnedRelay. | Gabriela Moldovan | 2024-03-20 | 1 | -0/+10 | |
| | | | | | | We will soon need this in `HsPathBuilder` (for building `TorPath`s that consist of vanguards). | |||||
| * | tor-circmgr: Remove unused lifetime. | Gabriela Moldovan | 2024-03-20 | 1 | -1/+1 | |
| | | ||||||
| * | tor-circmgr: Give pick_path a VanguardMgr (fmt). | Gabriela Moldovan | 2024-03-20 | 1 | -4/+36 | |
| | | ||||||
| * | tor-circmgr: Give pick_path a VanguardMgr. | Gabriela Moldovan | 2024-03-20 | 3 | -6/+32 | |
| | | ||||||
| * | tor-circmgr: Tell HsPathBuilder what kind of circuit stub is needed (fmt). | Gabriela Moldovan | 2024-03-20 | 1 | -5/+2 | |
| | | ||||||
| * | tor-circmgr: Tell HsPathBuilder what kind of circuit stub is needed. | Gabriela Moldovan | 2024-03-20 | 4 | -7/+29 | |
| | | ||||||
| * | tor-circmgr: Add more vanguards TODOs. | Gabriela Moldovan | 2024-03-20 | 1 | -0/+2 | |
| | | ||||||
| * | tor-circmgr: Handle the take_or_launch_stub_circuit result. | Gabriela Moldovan | 2024-03-20 | 1 | -0/+13 | |
| | | ||||||
| * | tor-circmgr: Make take_or_launch_stub_circuit vanguard-aware. | Gabriela Moldovan | 2024-03-20 | 1 | -8/+59 | |
| | | ||||||
| * | tor-circmgr: Add functions for checking if vanguards are enabled. | Gabriela Moldovan | 2024-03-20 | 3 | -0/+29 | |
| | | ||||||
| * | tor-circmgr: For each HS ClientCirc, note whether it's STUB or STUB+. | Gabriela Moldovan | 2024-03-20 | 2 | -29/+102 | |
| | | | | | Closes #1276 | |||||
| * | tor-circmgr: Move pick_path out of AnonymousCircuitBuilder. | Gabriela Moldovan | 2024-03-14 | 4 | -165/+193 | |
| | | | | | This enables us to make `AnonymousCircuitBuilder` private. | |||||
| * | tor-circmgr: Improve the HsPathBuilder docs. | Gabriela Moldovan | 2024-03-14 | 1 | -0/+20 | |
| | | ||||||
| * | tor-circmgr: Remove unused require_stability. | Gabriela Moldovan | 2024-03-14 | 2 | -16/+1 | |
| | | ||||||
| * | tor-circmgr: Add a TODO about vanguards path selection. | Gabriela Moldovan | 2024-03-14 | 1 | -0/+24 | |
| | | ||||||
| * | tor-circmge: Remove AnyRelayForOnionService. | Gabriela Moldovan | 2024-03-14 | 1 | -34/+0 | |
| | | ||||||
| * | tor-circmgr: Use HsPathBuilder instead of ExitPathBuilder. | Gabriela Moldovan | 2024-03-14 | 1 | -6/+7 | |
| | | ||||||
| * | tor-circmgr: Add a new hspath module for building onion service circuits. | Gabriela Moldovan | 2024-03-14 | 2 | -0/+78 | |
| | | ||||||
| * | tor-circmgr: Implement AnonymousPathBuilder for ExitPathBuilder. | Gabriela Moldovan | 2024-03-14 | 2 | -162/+27 | |
| | | ||||||
| * | tor-circmgr: Add AnonymousPathBuilder trait. | Gabriela Moldovan | 2024-03-14 | 1 | -4/+177 | |
| | | | | | | | | | | | The `pick_path()` default implementation is an almost verbatim copy of `ExitPathBuilder::pick_path()`. The only difference is that instead of using values from `self`, the `AnonymousPathBuilder::pick_path()` uses the values returned by the different `AnonymousPathBuilder` functions (i.e., `AnonymousPathBuilder::pick_exit()` instead of `self.pick_exit()`, `AnonymousPathBuilder::compatible_with()` instead of `self.compatible_with`, etc.). | |||||
| * | Run maint/add_warning. | Nick Mathewson | 2024-03-13 | 12 | -0/+12 | |
| | | ||||||
| * | Annotate usage of low_level_predicate_permits_relay | Nick Mathewson | 2024-03-12 | 1 | -0/+8 | |
| | | ||||||
| * | Rename the RelayPredicate trait to discourage its being used directly. | Nick Mathewson | 2024-03-12 | 1 | -2/+4 | |
| | | | | | Everybody who can, should instead use a RelaySelector. | |||||
| * | Add comments about "unaccompanied" use of Relay{Usage,Exclusion} | Nick Mathewson | 2024-03-12 | 1 | -0/+2 | |
| | | | | | | | When used outside of RelaySelector, these two types don't enforce one another's presence, and as such have a bit more risk of negligent use. | |||||
| * | Annotate remaining "TODO #504" comments explaining why they are there. | Nick Mathewson | 2024-03-12 | 1 | -4/+14 | |
| | | ||||||
| * | hspool: Replace TargetInfo with a RelayExclusion. | Nick Mathewson | 2024-03-12 | 1 | -53/+17 | |
| | | ||||||
| * | circmgr: Rename "any exit" code to reflect its real purpose | Nick Mathewson | 2024-03-12 | 2 | -8/+11 | |
| | | | | | | (These functionalities are for onion service circuits, and don't actually need to go to an exit at all.) | |||||
| * | circmgr: Remove now-obsolete error variants. | Nick Mathewson | 2024-03-12 | 2 | -48/+5 | |
| | | ||||||
| * | circmgr: Begin porting path selection to tor-relay-selection | Nick Mathewson | 2024-03-12 | 5 | -191/+160 | |
| | | | | | | This covers the easy cases, where we are selecting relays at random based on a selector. | |||||
| * | New crate to define a high-level API for relay selection | Nick Mathewson | 2024-03-12 | 2 | -46/+7 | |
| | | ||||||
| * | tor-circmgr: Fix clippy warning. | Gabriela Moldovan | 2024-03-11 | 1 | -1/+1 | |
| | | ||||||
