aboutsummaryrefslogtreecommitdiff
path: root/crates/tor-rpc-connect/src/connpt.rs
Commit message (Collapse)AuthorAgeFilesLines
* maint: Run maint/add_warning to deny string slicesClara Engler2026-06-091-0/+1
| | | | | | | | | | | | This commit executes maint/add_warning with the just added change to deny string slices except in tests. I recommend auditing this by checking out the previous commit followed by running the script yourself and then verifying that the diff is identical to this commit. This commit makes cargo clippy fail. We will add exceptions in the next commit.
* tor-rtcompat+misc: add `NetStreamProvider::ListenOptions`Steven Engler2026-05-071-2/+6
| | | | | | | | | This adds the trait type `ListenOptions` to `NetStreamProvider` and adds this `ListenOptions` as an argument to `NetStreamProvider::listen()`. You probably want to look at the changes in tor-rtcompat first, then the rest of this commit is updating the various places we use `NetStreamProvider`.
* rpc-client: add support to prefer/require su permissionNick Mathewson2026-03-161-0/+20
|
* rpc: add a "superuser" element to connect points.Nick Mathewson2026-03-161-0/+34
| | | | Currently does nothing.
* rpc: Clarify comments on resolve() methods.Nick Mathewson2026-01-271-3/+3
|
* rpc: Generate a specific error for inet-auto:nonlocalNick Mathewson2026-01-271-1/+9
|
* rpc-connect: Implement json address-file format.Nick Mathewson2026-01-271-1/+21
|
* rpc: Add rpc-client-side support for inet-auto addressesNick Mathewson2026-01-271-0/+20
|
* rpc: Add rpc-server-side support for inet-auto addresses.Nick Mathewson2026-01-271-7/+64
|
* rpc: Begin implementing inet-auto address scheme.Nick Mathewson2026-01-271-14/+137
|
* rpc-connect-point: Decline (not abort) on more invalid address formats.Nick Mathewson2025-12-171-4/+9
| | | | | | | | | | When we see an address schema we don't recognize, we're supposed to _decline_ the connect point rather than aborting. Closes #2303. See discussion at #1844. Additionally, we tolerate more kinds of invalid address, in order to permit future planned extensions.
* rpc-connect: Allow missing_docs_in_private_itemsGabriela Moldovan2025-12-011-0/+1
| | | | This silences a nightly warning.
* Fix name of clippy lint to unchecked_time_subtraction (2)Ian Jackson2025-11-061-1/+1
| | | | Run maint/add_warning
* Switch Cargo.toml files to edition 2024.Nick Mathewson2025-08-071-2/+2
| | | | | | | | | | | | | | First, run ``` git grep -l "^edition =" | xargs perl -i -pe 's/^edition *=.*/edition = "2024"/;' ``` Second, manually verify that all Cargo.toml files have changed, and nothing else has changed. Third, run cargo fmt again.
* Fix AF_UNIX terminology in docs, comments, and error messagesIan Jackson2025-03-241-2/+2
|
* rpc-connect: Make Connect::validate more straightforwardNick Mathewson2025-01-271-11/+12
|
* rpc-connect: check that all paths inside a connpt are absolute.Nick Mathewson2025-01-271-13/+49
|
* rpc-connect: Detect and decline connpts with invalid "auth" feieldsNick Mathewson2025-01-271-18/+16
|
* rpc: Reject relative unix paths.Nick Mathewson2025-01-151-0/+9
|
* connect point: Use new CfgPathResolver api.Nick Mathewson2024-11-191-12/+22
|
* connect point: handle unrecognized auth variants.Nick Mathewson2024-11-191-4/+37
|
* Connect point: Improve robustness against new SocketAddr variantsNick Mathewson2024-11-191-2/+10
|
* connect point: add a test for ConflictingMembers.Nick Mathewson2024-11-191-0/+13
|
* connect-point: Rename Reps to Addresses.Nick Mathewson2024-11-191-7/+7
|
* connect point: Add client support.Nick Mathewson2024-11-191-0/+10
| | | | | ("Client support" here means connecting to a socket and reading a cookie file.)
* connect point: Treat unrecognized auth types as Decline.Nick Mathewson2024-11-191-0/+9
|
* connect points: Validate more correctness propertiesNick Mathewson2024-11-191-4/+23
| | | | | In particular, we only allow binding/connecting to localhost, and we only support None auth for Unix connections.
* connect points: Remember original string addressesNick Mathewson2024-11-191-6/+57
| | | | The cookie authentication protocol will need these.
* connect point: implement FromStr.Nick Mathewson2024-11-191-17/+58
| | | | | | | | | While doing so, tidy up the errors that we detect when parsing a connect point, so that we can differentiate ones that indicate an unsupported connect-point type. This means that fewer types now implement Deserialize; that's probably a good thing.
* tor-connect-point: new crate to manage RPC connect pointsNick Mathewson2024-11-191-0/+304
See doc/dev/rpc-book/src/rpc-connect-sketch.md for details.