summaryrefslogtreecommitdiff
path: root/crates
Commit message (Collapse)AuthorAgeFilesLines
...
| * | arti: tweak docs, add TODOs with respect to Listener.Nick Mathewson2025-12-163-1/+6
| | |
| * | arti: Log the actual addresses we are listening on.Nick Mathewson2025-12-162-4/+10
| | |
| * | tor_config::Listen: Add methods to check for auto and port 0.Nick Mathewson2025-12-161-0/+37
| | |
| * | tor_config::Listen: Add "auto" itemsNick Mathewson2025-12-161-7/+55
| | | | | | | | | | | | These are a nicer syntax than using port "0" explicitly.
| * | tor_config::Listen: Deprecate localhost_port_legacy.Nick Mathewson2025-12-161-1/+5
| | | | | | | | | | | | Nothing actually uses it any more, which is good.
| * | tor_config::Listen: Refactor legacy methods.Nick Mathewson2025-12-161-22/+26
| | | | | | | | | | | | | | | Have the part of them that does the "no multiple addresses" work be common, so that we can simplify how they actually behave.
* | | arti,arti-relay: change info keystore path msg to debugSteven Engler2025-12-112-3/+8
|/ /
* | Merge branch 'tls12' into 'main'Nick Mathewson2025-12-101-1/+0
|\ \ | | | | | | | | | | | | arti: Remove 'rustls/tls12' feature See merge request tpo/core/arti!3540
| * | arti: remove 'rustls/tls12' featureSteven Engler2025-12-091-1/+0
| | | | | | | | | | | | | | | | | | | | | We don't rely on this within the arti crate, and tor-rtcompat already sets this. It's confusing to have it here as well. If the arti ecosystem requires this, it should be enabled on the lower level crates (like it already is in tor-rtcompat) so that arti-client users get it too.
* | | proto: Add an immediate order for client CircuitEvent orderingDavid Goulet2025-12-101-4/+7
| | | | | | | | | | | | | | | | | | | | | With a protocol violation, we have to immediately deal with such event before emitting anything on the wire. Signed-off-by: David Goulet <[email protected]>
* | | proto: Rename CircuitAction and cie to CircuitEventDavid Goulet2025-12-102-75/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This mirrors also the relay reactor. We've introduced the ProtoViolation into a previous commit which is not an action but rather an "event" that happened on a circuit. And so, better semantic. No behavior change. Signed-off-by: David Goulet <[email protected]>
* | | proto: #[macro_use] be gone!Gabriela Moldovan2025-12-104-2/+4
| | |
* | | proto: Rename Circuit{Action/Event}::Shutdown to ProtoViolationDavid Goulet2025-12-103-11/+12
| | | | | | | | | | | | Signed-off-by: David Goulet <[email protected]>
* | | proto: Add TODO in client reactor for bad cellDavid Goulet2025-12-101-0/+6
| | | | | | | | | | | | | | | | | | Because of https://gitlab.torproject.org/tpo/core/torspec/-/issues/385 Signed-off-by: David Goulet <[email protected]>
* | | proto: Move relay specific unit test to relay moduleDavid Goulet2025-12-102-25/+41
| | | | | | | | | | | | Signed-off-by: David Goulet <[email protected]>
* | | proto: Relay circuit reactor now handles AnyChanMsgDavid Goulet2025-12-103-12/+14
| | | | | | | | | | | | | | | | | | | | | Same as the client reactor, a message outside of our restricted set leads to a reactor shutdown. Signed-off-by: David Goulet <[email protected]>
* | | proto: Make ClientCircChanMsg pub(super)David Goulet2025-12-101-1/+1
| | | | | | | | | | | | Signed-off-by: David Goulet <[email protected]>
* | | proto: Move unit tests and minor fixDavid Goulet2025-12-103-24/+23
| | | | | | | | | | | | | | | | | | Move the client specific unit tests into the client module. Signed-off-by: David Goulet <[email protected]>
* | | proto: Client circuit reactor now handles AnyChanMsgDavid Goulet2025-12-109-34/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit removes the CircuitRx* based solely on the client circuit message and moves it into the top level of the crate so all reactors can use them. The client reactor then upon receiving the message, it converts the AnyChanMsg into a ClientCircChanMsg. On error, this leads to a shutdown of the entire reactor due to a fatal error. In order to pull this off, we added a CircuitAction::Shutdown that is handled as a priority. Signed-off-by: David Goulet <[email protected]>
* | | proto: Move RelayCircChanMsg into relay moduleDavid Goulet2025-12-105-27/+29
| | | | | | | | | | | | | | | | | | This follows the move of the client specific object. Signed-off-by: David Goulet <[email protected]>
* | | proto: Move ClientCircChanMsg into client moduleDavid Goulet2025-12-107-34/+39
| | | | | | | | | | | | | | | | | | | | | | | | Next commit will also move the Relay specific set into the relay module. These two sets are becoming specific to the reactor as the circuit reactor communication channel will use AnyChanMsg instead. Signed-off-by: David Goulet <[email protected]>
* | | proto: Remove unused restricted channel msg setDavid Goulet2025-12-101-26/+0
| | | | | | | | | | | | Signed-off-by: David Goulet <[email protected]>
* | | Merge branch 'relay-bin-4' into 'main'David Goulet2025-12-102-0/+7
|\ \ \ | | | | | | | | | | | | | | | | arti-relay: Install default ring crypto provider See merge request tpo/core/arti!3539
| * | | arti-relay: install default ring crypto providerSteven Engler2025-12-092-0/+7
| |/ / | | | | | | | | | | | | | | | | | | | | | This is what arti uses, and fixes the warning: ```text WARN tor_rtcompat::impls::rustls: Creating a RustlsRuntime, but no CryptoProvider is installed. The application should call CryptoProvider::install_default() ```
* | | Merge branch 'enc-derive' into 'main'Ian Jackson2025-12-1015-179/+1414
|\ \ \ | | | | | | | | | | | | | | | | tor-netdoc: derive-based netdoc encoder See merge request tpo/core/arti!3535
| * | | tor-netdoc encode: Fix typos in multiplicity check method docsIan Jackson2025-12-101-4/+4
| | | |
| * | | tor-netdoc encode: Enhance explanation of DeterminedMultiplicitySelectorIan Jackson2025-12-101-0/+3
| | | |
| * | | tor-netdoc encode multiplicity: Fix wrong trait refIan Jackson2025-12-101-1/+1
| | | |
| * | | tor-netdoc encode multiplicity: Add a note about omission of intro itemsIan Jackson2025-12-101-1/+1
| | | |
| * | | tor-netdoc Linkify three more typesIan Jackson2025-12-101-1/+1
| | | |
| * | | tor-netdoc Fix docs typoIan Jackson2025-12-101-1/+1
| | | |
| * | | tor-netdoc: Add two TODOs re trait namingIan Jackson2025-12-102-0/+4
| | | |
| * | | tor-netdoc README: Overview of the traitsIan Jackson2025-12-101-0/+38
| | | |
| * | | tor-netdoc README: Replace structure sectionIan Jackson2025-12-101-8/+11
| | | |
| * | | tor-netdoc README: fix description overviewIan Jackson2025-12-101-4/+3
| | | |
| * | | tor-netdoc README: fix spec refIan Jackson2025-12-101-1/+1
| | | |
| * | | tor-netdoc README: fix terminologyIan Jackson2025-12-101-1/+1
| | | |
| * | | tor-netdoc: semver.md: Document new facilitiesIan Jackson2025-12-101-0/+1
| | | |
| * | | tor-netdoc: Apply encoding derive to SharedRandStatusIan Jackson2025-12-101-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I feel that before merging all this, I ought at least to demonstrate that it can be applied to at least one real type! We can unconditionally `#[derive(Deftly)]`. That is simpler, and harmless if no actual deftly derives are applied.
| * | | tor-netdoc: test2: check round-trip encodingIan Jackson2025-12-101-29/+162
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The test case documents are often not in canonical form. We don't want to change them to be in canonical form because we want to test parsing edge cases. So, we provide a mangling scheme with in-document notes, and annotate all the documents. Apply suitable annotations to all the documents. Test that the encoded forms are as expected. This reverts commit 05e7b8b60061a7e8a8d004a822cc213d3ea22d47.
| * | | tor-netdoc: test2: implement encoding traits for all test typesIan Jackson2025-12-102-20/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Make this whole module conditional on the encode feature. Apply the derives. Provide the necessary manual implementations for the types where we use `with`.
| * | | tor-netdoc: derive netdoc encoding traitsIan Jackson2025-12-104-0/+487
| | | | | | | | | | | | | | | | | | | | Signature encoding is not yet supported. We need to consider how this will work.
| * | | tor-netdoc: debug: Add a placeholder debug print to all the other derivesIan Jackson2025-12-102-0/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We want to recognise `#[deftly(netdoc(debug))]` because otherwise we have to make lots of these attributes conditional. So, implement it for *all* the derives, providing a nugatory debug statement.
| * | | tor-netdoc: parse2: debug: Explain why we use io::stderr()Ian Jackson2025-12-101-0/+2
| | | |
| * | | tor-netdoc: parse2: debug: Fix an error messageIan Jackson2025-12-101-1/+1
| | | | | | | | | | | | | | | | What is being written to here is StderrLock, not a String.
| * | | tor-netdoc: parse2: debug: Fix scoping of netdoc_parseable_derive_debugIan Jackson2025-12-102-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | While testing I discovered that the `#[deftly(netdoc(debug))]` feature (which dumps parsing progress to stderr) didn't compile if the derive was invoked from elsewhere.
| * | | tor-netdoc: derive: F_KEYWORD_REPORT: put concat on the outsideIan Jackson2025-12-101-2/+2
| | | | | | | | | | | | | | | | This makes it possible to use $F_KEYWORD_REPORT within another concat.
| * | | tor-netdoc: derive_common: Break out docs for attrs in flattenIan Jackson2025-12-102-8/+13
| | | | | | | | | | | | | | | | | | | | | | | | Code motion fromk NetdocParseableFields to NetdocFieldsDeriveCommon. This uses the derive-deftly imported doc comment feature.
| * | | tor-netdoc: derive_common: Break out field ordering checkIan Jackson2025-12-102-16/+18
| | | | | | | | | | | | | | | | Code motion from NetdocParseable to NetdocEntireDeriveCommon.
| * | | tor-netdoc: derive_common: Break out item field type definitionsIan Jackson2025-12-102-6/+6
| | | | | | | | | | | | | | | | Code motion from ItemValueParseable to NetdocItemDeriveCommon.