| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | tor-netdir: Add timeliness param to wait_for_netdir_to_list. | Wesley Aptekar-Cassels | 2024-11-25 | 1 | -1/+2 |
| | | |||||
| * | Move helpers from tor-hsservice to tor-netdir. | Wesley Aptekar-Cassels | 2024-11-25 | 1 | -1/+79 |
| | | | | | | These helpers seem potentially broadly useful, and only really discoverable if they're here. | ||||
| * | tor-netdir: Allow access to the `ConsensusBuilder` when building test netdirs. | Gabriela Moldovan | 2024-09-09 | 1 | -7/+7 |
| | | | | | | This allows us to set SRVs for example (needed because by default, the test `NetDir` is built from a consensus that doesn't contain any SRVs). | ||||
| * | Fix new "clippy::needless-maybe-sized" warning on nightly | Nick Mathewson | 2024-07-28 | 1 | -1/+1 |
| | | | | | | This warning complains when we say `where T: SomeTrait + ?Sized` when `SomeTrait` is inherently Sized. | ||||
| * | Re-run maint/add_warning. | Nick Mathewson | 2024-05-06 | 1 | -2/+2 |
| | | | | | This commit is automatically generated. | ||||
| * | Doc: tweak documentation on NetDir::id*listed functions | Nick Mathewson | 2024-04-10 | 1 | -10/+9 |
| | | | | | | Previously they were a bit confusing, and the public function explained its behavior in terms of the private one. | ||||
| * | Doc: Add xref from NetDir::by_ids to ids_listed. | Nick Mathewson | 2024-04-10 | 1 | -0/+7 |
| | | | | | | | | Explain that `by_ids` isn't what you want if you need to know whether a relay _definitely_ doesn't exist. Closes #1365 | ||||
| * | Fix some rustdoc links and copypaste errors in tor-netdir. | Nick Mathewson | 2024-04-04 | 1 | -2/+2 |
| | | |||||
| * | tor-netdir: Abolish Relay::has_same_relay_ids | Ian Jackson | 2024-04-03 | 1 | -10/+3 |
| | | | | | This was an open-coded specialisation. Remove the one call site. | ||||
| * | Move rs_is_dircache to details.rs | Nick Mathewson | 2024-03-28 | 1 | -6/+0 |
| | | |||||
| * | Rename `Relay::same_relay` and make it private. | Nick Mathewson | 2024-03-28 | 1 | -8/+6 |
| | | | | | | Everybody outside of tor-netdir should use HasRelayIds::same_relay_ids, whose intent is clearer. | ||||
| * | Remove all *Relay is_flagged_guard methods. | Nick Mathewson | 2024-03-28 | 1 | -4/+2 |
| | | | | | These were only used for testing. | ||||
| * | Remove temporary functions in CheckedRelay. | Nick Mathewson | 2024-03-28 | 1 | -169/+57 |
| | | |||||
| * | Remove temporary functions in UncheckedRelay. | Nick Mathewson | 2024-03-28 | 1 | -26/+6 |
| | | |||||
| * | Move most functions from *Relay to *RelayDetails | Nick Mathewson | 2024-03-28 | 1 | -0/+145 |
| | | | | | | | | | In *RelayDetails, this is just a matter of changing a bunch of `self`s to `self.0`. Additionally, I've added temporary stub functions to delegate to the new functions. | ||||
| * | Relocate declarations of *Relay methods to details.rs | Nick Mathewson | 2024-03-28 | 1 | -129/+1 |
| | | | | | This is 99% code movement. | ||||
| * | Add low_level_details to {Unchecked,}Relay. | Nick Mathewson | 2024-03-27 | 1 | -0/+19 |
| | | | | | | | | | | | I'm going to use this wrapper type to hide checks that should mostly not be used without careful thinking. There are also comments here explaining when you'd want to use these types, and when you shouldn't. Part of #504. | ||||
| * | Run maint/add_warning. | Nick Mathewson | 2024-03-13 | 1 | -0/+1 |
| | | |||||
| * | netdir: Add additional functionality to SubnetConfig | Nick Mathewson | 2024-03-12 | 1 | -1/+62 |
| | | | | | We'll need this to implement restrictions more reasonably. | ||||
| * | deny clippy::unchecked_duration_subtraction | trinity-1686a | 2024-02-29 | 1 | -0/+1 |
| | | |||||
| * | Note a calculation we can clean up after doing spec work. | Nick Mathewson | 2024-02-20 | 1 | -1/+3 |
| | | |||||
| * | Add caveats on is_flagged_guard, and note possible deprecation | Nick Mathewson | 2024-02-20 | 1 | -1/+15 |
| | | |||||
| * | Add and use "UncheckedRelay::is_suitable_as_guard" | Nick Mathewson | 2024-02-20 | 1 | -0/+5 |
| | | |||||
| * | Only pick Fast relays as introduction points. | Nick Mathewson | 2024-02-20 | 1 | -1/+1 |
| | | | | | This matches the behavior of C tor. Part of #1100. | ||||
| * | Require that guards are Fast and Stable. | Nick Mathewson | 2024-02-20 | 1 | -0/+5 |
| | | | | | | | This matches the behavior of C tor. Part of #1100. | ||||
| * | netdir: Add Relay::is_flagged_{fast,stable} methods. | Nick Mathewson | 2024-02-12 | 1 | -0/+14 |
| | | |||||
| * | tor-netdir: Make hs_dirs_{upload, download} take separate args instead of tuple. | Gabriela Moldovan | 2024-01-24 | 1 | -2/+4 |
| | | | | | Prompted by https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/1904#note_2987777 | ||||
| * | tor-netdir: Simplify `hs_dirs_upload` by only returning the `Relay`. | Gabriela Moldovan | 2024-01-24 | 1 | -20/+15 |
| | | | | | | | | | The publisher is the only user of `hs_dirs_upload`. It turns out it never actually uses the first element of the yielded `Item`s, so we can simplify `hs_dir_upload` to only return the HsDir `Relay`s. Part of #1166 | ||||
| * | tor-netdir: Make hs_all_time_periods return HsDirParams. | Gabriela Moldovan | 2024-01-24 | 1 | -3/+3 |
| | | | | | | | | | | The descriptor publisher uses this function to obtain the list of relevant time periods. It will soon also need to know the `srv_lifespan` associated with each time period, so we change this function to return `HsDirParams`. Part of #1166 | ||||
| * | netdir: Make hs_dirs_upload() yield &HsDirParams. | Nick Mathewson | 2024-01-23 | 1 | -2/+3 |
| | | | | | Closes #1254. | ||||
| * | Expose HsDirParams, and give it accessors. | Nick Mathewson | 2024-01-23 | 1 | -1/+5 |
| | | |||||
| * | netdir: Only choose Stable relays as introduction points. | Nick Mathewson | 2024-01-16 | 1 | -3/+1 |
| | | | | | | | This implements Relay::is_hs_intro_point. Close #1240. | ||||
| * | netdir: Downgrade a TODO in a deprecated, unused function. | Nick Mathewson | 2024-01-14 | 1 | -1/+5 |
| | | |||||
| * | netdir: Make TODOs on is_hs_intro_point refer to #1240 | Nick Mathewson | 2024-01-14 | 1 | -3/+3 |
| | | |||||
| * | netdir: Downgrade or remove several "TODO HSS" comments. | Nick Mathewson | 2024-01-14 | 1 | -7/+5 |
| | | | | | These are not release-blockers. | ||||
| * | tor-hsservice: Rewrite map() as a for-loop (fmt). | Gabriela Moldovan | 2023-10-03 | 1 | -1/+2 |
| | | |||||
| * | tor-netdir: Fix broken condition. | Gabriela Moldovan | 2023-10-03 | 1 | -4/+5 |
| | | | | | | | | | | | | | | The statement ``` if hsids.all(|(_hsid, period)| rings.any(|(_, _, tp)| tp == period)) { ``` had 2 bugs: * the condition is reversed (it should be negated: we need to bail if one of the specified `hsids` cannot be found on any of our rings) * `rings.any()` mutates the `rings` iterator, causing `hs_dirs_upload` to return fewer HSDirs than expected | ||||
| * | arti-client: add exit selection with GeoIP country codes | eta | 2023-09-18 | 1 | -0/+2 |
| | | | | | | | | | | | | | | | | | | | | | This threads the country codes work through the rest of the codebase: - `tor-dirmgr` will now enable GeoIP with the embedded database when the `geoip` future is enabled - This can be extended later using the `DirMgrConfig` to allow specifying a custom database; this is not done here, though - `tor-circmgr`'s `SupportedCircUsage` and `TargetCircUsage` fields gain new `country_code` members to allow filtering circuits by country - These are `()` in builds where the `geoip` feature is not enabled -- doing it this way means we don't have to copy and paste huge swathes of code, since we can't use `#[cfg]` in patterns - `ExitPathBuilder` gains (hacked-in) support for choosing a relay with the correct country code - Due to the lack of conjuction, we just copy and paste a small bit, pending further refactoring - `StreamPrefs` now lets you specify a country code, letting embedders make use of the feature | ||||
| * | hs: Intro point selection: TODO re checking the stable flag (fmt) | Ian Jackson | 2023-08-29 | 1 | -1/+1 |
| | | | | | Apply erroneous formatting as demanded by rustfmt. | ||||
| * | hs: Intro point selection: TODO re checking the stable flag | Ian Jackson | 2023-08-29 | 1 | -0/+1 |
| | | |||||
| * | hs: Intro point selection: Actually call is_hs_intro_point() | Ian Jackson | 2023-08-29 | 1 | -2/+6 |
| | | | | | | | | | Call site as per https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/1550#note_2936401 Plus a TODO comment with an opinion from me about this API. (Note not a TODO HSS so this is on the back burner.) | ||||
| * | tor-netdir: Support for seleting HS intro points | Ian Jackson | 2023-08-29 | 1 | -0/+7 |
| | | | | | | | I'm quite unsure about this. Hence the TODOs. I think the API is right, though. | ||||
| * | Run maint/add_warning to add lint block everywhere | Ian Jackson | 2023-08-23 | 1 | -0/+1 |
| | | |||||
| * | tor-netdir: Use an owned HsBlindId instead of a reference. | Gabriela Moldovan | 2023-08-22 | 1 | -4/+4 |
| | | | | | `HsBlindId` is `Copy`. | ||||
| * | tor-netdir: Replace flat_map() with cartesian_product(). | Gabriela Moldovan | 2023-08-22 | 1 | -7/+2 |
| | | |||||
| * | tor-netdir: Make `hs_dirs_upload` take an iterator instead of a slice (fmt). | Gabriela Moldovan | 2023-08-22 | 1 | -4/+6 |
| | | |||||
| * | tor-netdir: Make `hs_dirs_upload` take an iterator instead of a slice. | Gabriela Moldovan | 2023-08-22 | 1 | -7/+10 |
| | | |||||
| * | tor-netdir: Add TODO about making HsDirOp private. | Gabriela Moldovan | 2023-08-22 | 1 | -0/+3 |
| | | | | | When `hs_dirs` is removed this won't n't need to be public anymore. | ||||
| * | tor-hsclient: Use hs_dirs_download instead of the deprecated hs_dirs. | Gabriela Moldovan | 2023-08-22 | 1 | -1/+1 |
| | | |||||
| * | tor-netdir: Deprecate hs_dirs(). | Gabriela Moldovan | 2023-08-22 | 1 | -0/+2 |
| | | |||||
