summaryrefslogtreecommitdiff
path: root/crates
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | tor-proto: add `HopLocation` and `TargetHop`Steven Engler2025-02-241-0/+29
| |_|/ |/| |
* | | arti-rpcserver: Fix operator precedence warning.Gabriela Moldovan2025-02-241-1/+1
| | | | | | | | | | | | | | | This fixes an "operator precedence can trip the unwary" warning that showed up after I updated my toolchain to 1.85.
* | | tor-netdoc: Fix useless conversion warning.Gabriela Moldovan2025-02-241-1/+1
| | | | | | | | | | | | This fixes a warning that triggers on the latest stable release (1.85).
* | | tor-proto: Add a tunnel module.David Goulet2025-02-2027-210/+242
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move StreamTarget to the tunnel module and the circuit module. From now on streams will be implemented on tunnels, not circuits. This moves `StreamTarget` to the tunnel module. A future change will replace `ClientCirc` with `ClientTunnel` inside `StreamTarget`. This is mostly code motion, best reviewed with `--color-moved`. Signed-off-by: David Goulet <[email protected]>
* | | tor-proto: Change the visibility of a series of structGabriela Moldovan2025-02-203-17/+17
| | | | | | | | | | | | | | | | | | | | | We're about to need this in `tor_proto::tunnel` which is from the Conflux work. In the spirit of upstreaming as much as possible, it is done now.
* | | tor-proto: Add a newtype wrapper for LegId.Gabriela Moldovan2025-02-201-4/+12
| | | | | | | | | | | | | | | We will eventually need to expose this in `tor-proto`'s public API, so it'll need to be an opaque type.
* | | tor-proto: Add LegId type that can be used as a slotmap key.Gabriela Moldovan2025-02-201-0/+8
| | | | | | | | | | | | | | | This will soon be used by the reactor-internal `ConfluxSet` as a unique identifier for the circuit legs stored in its `SlotMap`.
* | | tor-cell: Add encodable conflux relay message types.Gabriela Moldovan2025-02-183-0/+216
| | | | | | | | | | | | | | | | | | | | | This adds support for encoding and decoding `RELAY_CONFLUX_LINK`, `RELAY_CONFLUX_LINKED`, and `RELAY_CONFLUX_SWITCH` cells. Closes #1852
* | | tor-cell: Add conflux RelayCmds.Gabriela Moldovan2025-02-182-0/+14
| | | | | | | | | | | | Part of #1852
* | | tor-cell: Add an experimental conflux feature.Gabriela Moldovan2025-02-181-0/+2
| | |
* | | Merge branch 'circ-reactor-refactor' into 'main'gabi-2502025-02-183-59/+67
|\ \ \ | | | | | | | | | | | | | | | | tor-proto: Move CreateHandshakeWrap to reactor module. See merge request tpo/core/arti!2796
| * | | tor-proto: Move CreateHandshakeWrap to reactor module (fmt).Gabriela Moldovan2025-02-181-3/+1
| | | |
| * | | tor-proto: Move CreateHandshakeWrap to reactor module.Gabriela Moldovan2025-02-183-57/+67
| | | | | | | | | | | | | | | | | | | | This moves the `CreateHandshakeWrap` and its implementors to `reactor::create` (none of these are used outside of the reactor).
* | | | Fix `crate_bootstrapped` typokpcyrd2025-02-161-1/+1
|/ / /
* / / tor-proto: Remove deprecated DataStream API.Gabriela Moldovan2025-02-131-32/+0
|/ / | | | | | | | | Reducing `ClientCirc` proliferation will make our lives easier when implementing !2790.
* | Enable derive-deftly beta featuresIan Jackson2025-02-1219-20/+20
| | | | | | | | | | | | | | | | Right now this will give us `${Xmeta as ... default ...}`, which may improve things in the future. The Cargo.toml syntax is precisely that from https://docs.rs/derive-deftly/1.0.0/derive_deftly/doc_changelog/index.html#t:beta
* | Update to derive-deftly 1.0Ian Jackson2025-02-1224-25/+25
|/ | | | | | | | | This is released now. Prepared with: cargo upgrade -i -p derive-deftly There is some new duplication now I think mostly because pwd-grp uses old derive-deftly.
* Merge branch 'upgrade-hickory-proto' into 'main'Nick Mathewson2025-02-111-1/+1
|\ | | | | | | | | | | | | arti: Upgrade 'hickory-proto' to 0.24.3 Closes #1847 See merge request tpo/core/arti!2784
| * arti: upgrade 'hickory-proto' to 0.24.3Steven Engler2025-02-101-1/+1
| | | | | | | | This resolves RUSTSEC-2025-0006, which arti is not affected by.
* | fallbackdir: Update list generated on February 05, 2025Tor CI Release2025-02-111-889/+922
| | | | | | | | Signed-off-by: Tor CI Release <[email protected]>
* | tor-proto: Fold the CommandHandler into ControlHandler.Gabriela Moldovan2025-02-112-95/+79
|/ | | | | | | | This gets rid of a bit of a duplicated code. It also moves `CtrlCmd` closer to `CtrlMsg`. Offshoot from my WIP conflux branch for #1838
* tor-proto: added 'semver.md' fileSteven Engler2025-02-101-0/+1
|
* tor-proto: remove `ClientCirc::channel`Steven Engler2025-02-101-26/+2
|
* tor-dirclient: modify `check_circuit` to use `first_hop_clock_skew`Steven Engler2025-02-102-15/+30
|
* tor-proto: add `ClientCirc::first_hop_clock_skew`Steven Engler2025-02-103-0/+33
|
* Merge branch 'bug1839' into 'main'opara2025-02-101-2/+7
|\ | | | | | | | | | | | | conflux: Split off `time_provider` from `channel` in `ClientCirc` Closes #1839 See merge request tpo/core/arti!2772
| * conflux: Split off `time_provider` from `channel` in `ClientCirc`Neel Chauhan2025-02-101-2/+7
| |
* | tor-hsservice: Change replay/mod.rs to replay.rs.Wesley Aptekar-Cassels2025-02-101-0/+0
| | | | | | | | We have a new lint that requires this.
* | tor-hsservice: Change unclear names in ReplayLog.Wesley Aptekar-Cassels2025-02-102-21/+21
| |
* | tor-hsservice: Assert that hash length is correct in ReplayLog.Wesley Aptekar-Cassels2025-02-101-0/+3
| |
* | tor-hsservice: Change ReplayLog parse_log_leafname API.Wesley Aptekar-Cassels2025-02-103-8/+11
| | | | | | | | | | This previously returned a &str for sort of unclear reasons, which was only used in logging. Remove that.
* | tor-hsservice: Fix some comments in ReplayLog.Wesley Aptekar-Cassels2025-02-101-2/+5
| |
* | tor-hsservice: Make TODOs not doccomments.Wesley Aptekar-Cassels2025-02-101-2/+2
| |
* | tor-hsservice: Rename some variables to reflect refactor.Wesley Aptekar-Cassels2025-02-101-22/+22
| | | | | | | | | | | | Get rid of anything talking about hashes or "h" in mod.rs, since that should now be relegated to ipt.rs. Fix some other things to use generic names as well.
* | tor-hsservice: Add whitespace.Wesley Aptekar-Cassels2025-02-101-0/+1
| |
* | tor-hsservice: Update comment in replay log code.Wesley Aptekar-Cassels2025-02-101-1/+3
| |
* | tor-hsservice: Remove ReplayLog::check_inner.Wesley Aptekar-Cassels2025-02-101-9/+2
| | | | | | | | | | | | This didn't really need to be a helper, we can just do everything in check_for_replay. It was a helper since we previously couldn't test the check_for_replay function, but now that this is generic we can.
* | tor-hsservice: Remove ReplayLog HASH_LEN constant.Wesley Aptekar-Cassels2025-02-101-9/+8
| | | | | | | | | | This needed to be the same as the MESSAGE_LEN constant, so we should just use the same constant for both.
* | tor-hsservice: Clean up replay::ipt::hash types.Wesley Aptekar-Cassels2025-02-101-9/+6
| | | | | | | | | | I don't think a newtype here was really buying us anything. Might as well get rid of it.
* | tor-hsservice: Move replay::hash into replay::ipt::hash.Wesley Aptekar-Cassels2025-02-102-75/+83
| | | | | | | | The IPT log is the only one that will need hashing, so move that code.
* | tor-hsservice: Move ReplayLog hashing out of generic code.Wesley Aptekar-Cassels2025-02-102-19/+20
| |
* | tor-hsservice: Stop using check_inner in ReplayLog tests.Wesley Aptekar-Cassels2025-02-101-41/+69
| | | | | | | | | | | | This is a internal detail that the tests shouldn't care about. This will also allow us to make hashing a detail handled by IptReplayLogType, rather than having it in the generic code.
* | tor-hsservice: Make ReplayLog magic bytes generic.Wesley Aptekar-Cassels2025-02-102-12/+21
| | | | | | | | This will ensure that we can't confuse different types of replay logs.
* | tor-hsservice: Make ReplayLog generic.Wesley Aptekar-Cassels2025-02-105-50/+102
| |
* | tor-hsservice: Make directory for replay module.Wesley Aptekar-Cassels2025-02-101-0/+0
|/ | | | | This will shortly become multiple files, so it will be helpful to have it in a directory.
* Merge branch 'remove-reactor-param' into 'main'David Goulet2025-02-102-18/+5
|\ | | | | | | | | tor-proto: Remove unnecessary param in handshake handler. See merge request tpo/core/arti!2774
| * tor-proto: Remove unnecessary param in handshake handler (fmt).Gabriela Moldovan2025-02-061-12/+3
| |
| * tor-proto: Remove unnecessary param in handshake handler.Gabriela Moldovan2025-02-062-6/+2
| | | | | | | | | | | | | | | | | | The `Reactor` argument is never used, so we can just remove it from the trait. Removing this arg also simplifies #1838 for me (I am moving some code around, and the calls to `handle_sever_aux_data` no longer have access to the `Reactor`).
* | Remove semver.md files post releaseIan Jackson2025-02-074-13/+0
| |
* | Bump minor version of fs-mistrustIan Jackson2025-02-0714-14/+14
| | | | | | | | Fixes #1841.