aboutsummaryrefslogtreecommitdiff
path: root/crates/tor-rpc-connect/src
Commit message (Collapse)AuthorAgeFilesLines
* add_warning: add reference to arti#2556Jim Newsome2026-07-151-1/+1
|
* Removed unnecessary lintpryty262026-07-151-1/+1
| | | | Removed unnecessary lint
* maint: Run maint/add_warning to deny string slicesClara Engler2026-06-094-0/+5
| | | | | | | | | | | | 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.
* Merge branch 'socket-buf-size' into 'main'opara2026-05-211-2/+6
|\ | | | | | | | | | | | | Set socket buffer sizes (`SO_SNDBUF` and `SO_RCVBUF`) for proxy sockets Closes #2500 See merge request tpo/core/arti!3957
| * 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`.
* | Upgrade rand crates to 0.10.Wesley Aptekar-Cassels2026-05-121-3/+5
| | | | | | | | | | | | | | | | | | | | | | When the circ-padding feature is enabled, we use maybenot, which does not yet support rand 0.10. In the meantime, enabling this feature pulls in rand 0.9. This is not ideal, but should be okay as a temporary situation. This also replaces the use of ReseedingRng (which was removed in 0.10) with the reseeding_rng crate. This is somewhat less performant, but it should be okay.
* | rpc-connect: classify newer io errorkinds.Nick Mathewson2026-05-071-2/+4
|/ | | | | | In Rust 1.83 and 1.85, io::ErrorKind added a few new variants. Here we classify them as "Decline" or "Abort" in our connection point code.
* 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-162-0/+45
| | | | Currently does nothing.
* Allow clippy::collapsible_if to triggerGabriela Moldovan2026-02-161-0/+1
| | | | | | | | | `clippy::collapsible_if` started triggering after bumping the MSRV to 1.88. Since this triggers from a lot of places, and since there even are a couple of instances where we explicitly allow `clippy::collapsible_ifs`, I've opened #2342 for deciding what to do about it.
* rpc: Move responsibility for wrapping streams to rpc-client-coreNick Mathewson2026-02-041-26/+29
| | | | | This will be necessary since, in order to make the RPC stuff nonblocking, we'll need a better API than just `Box<dyn Read>` etc.
* Merge branch 'unused-async-lint' into 'main'gabi-2502026-01-281-0/+1
|\ | | | | | | | | | | | | maint/add_warning: Deny clippy::unused_async Closes #2328 See merge request tpo/core/arti!3613
| * maint/add_warning: Run script to add new warningGabriela Moldovan2026-01-271-0/+1
| | | | | | | | This adds the lint to all our crates.
* | 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-274-11/+40
| |
* | rpc: Add rpc-client-side support for inet-auto addressesNick Mathewson2026-01-273-5/+53
| |
* | rpc: Add rpc-server-side support for inet-auto addresses.Nick Mathewson2026-01-273-16/+97
| |
* | rpc: Begin implementing inet-auto address scheme.Nick Mathewson2026-01-273-30/+178
|/
* rpc-connect-point: Decline (not abort) on more invalid address formats.Nick Mathewson2025-12-172-4/+26
| | | | | | | | | | 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: Remove extra slash in doc commentGabriela Moldovan2025-12-011-1/+1
|
* 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-064-5/+5
| | | | Run maint/add_warning
* Remove "doc_auto_cfg" incantation from all crates.Nick Mathewson2025-09-291-1/+1
| | | | This feature has been removed from nightly, in favor of doc_cfg.
* Switch Cargo.toml files to edition 2024.Nick Mathewson2025-08-074-8/+8
| | | | | | | | | | | | | | 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.
* Temporarily suppress mismatched_lifetime_syntaxes.Gabriela Moldovan2025-07-071-0/+1
| | | | See #2060.
* tor-rpc-connect: standardized MSRV TODOhashcatHitman2025-04-161-1/+1
| | | | | - Part of a series of commits aimed at replacing all MSRV-related TODOs with a standardized format, which should be easier to find when the MSRV is bumped.
* Add some allow(unused)Ian Jackson2025-03-271-0/+3
| | | | | Fixes several warnings from cargo check --workspace --no-default-features
* AF_UNIX terminology: Rename two error structsIan Jackson2025-03-241-1/+1
| | | | | | We change `NoUnixAddressSupport` to `NoAfUnixSocketSupport` because it doesn't make much sense to talk about support for the addresses separately from support for the sockets.
* AF_UNIX terminology: Rename two error variantsIan Jackson2025-03-241-5/+5
| | | | Change `..UnixAddress...` to `...AfUnixAddress..`.
* RPC: Abolish an unused and misnamed error variantIan Jackson2025-03-241-4/+0
| | | | | This variant breaches the new guidelines about AF_UNIX terminology. And its purpose is unclear and it's not used.
* Fix AF_UNIX terminology in docs, comments, and error messagesIan Jackson2025-03-242-3/+3
|
* squash! Upgrade rand dependency to 0.9.Nick Mathewson2025-03-182-4/+4
| | | | - `rand::thread_rng()` has been deprecated and renamed to `rand::rng()`
* rpc: Fix test builds on Windows.Alexander Hansen Færøy2025-01-301-1/+4
|
* rpc-connect: Remove remaining TODO RPCsNick Mathewson2025-01-271-4/+1
| | | | I have checked the relevant code, and it seems okay.
* 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: remove todo; confirm that we do want to mkdir.Nick Mathewson2025-01-271-1/+1
|
* rpc-connect: Detect and decline connpts with invalid "auth" feieldsNick Mathewson2025-01-273-20/+18
|
* rpc-connect: Abort on misformed cookie file, and explain why.Nick Mathewson2025-01-271-6/+3
|
* rpc-connect: Use file_access() API, and permit symlinks.Nick Mathewson2025-01-272-17/+20
|
* Merge branch 'rpc-connect-clarify' into 'main'Nick Mathewson2025-01-161-0/+9
|\ | | | | | | | | | | | | rpc: Clarify and fix some issues surrounding relative paths. Closes #1748 and #1749 See merge request tpo/core/arti!2712
| * rpc: Reject relative unix paths.Nick Mathewson2025-01-151-0/+9
| |
* | rpc: Document windows USER_DEFAULT connect point.Nick Mathewson2025-01-151-1/+0
| |
* | rpc: Expose Cookie::load unconditionally.Nick Mathewson2025-01-151-2/+0
| |
* | rpc: Use symbolic constants for nonce/mac lengths.Nick Mathewson2025-01-151-7/+14
| |
* | rpc: Tests for cookie nonce/mac encoding/decoding.Nick Mathewson2025-01-151-2/+46
| | | | | | | | Also fix a bug in decoding, where we accepted too-short strings.
* | rpc: Refactor Cookie and UnloadedCookie into a single type.Nick Mathewson2025-01-153-18/+33
| |
* | rpc: consolodate naming of "inherent" auth.Nick Mathewson2025-01-153-4/+5
| | | | | | | | | | | | | | | | | | We don't want to call this "unix path" anywhere, since it corresponds to _any_ case where the ability to negotiate a successful connection means that the client is authorized. We also don't want to call it "none": The authentication is inherent to the connection, not nonexistent.
* | rpc: Tweak cookie protocol to bind both nonces.Nick Mathewson2025-01-151-2/+8
| | | | | | | | | | | | | | | | | | | | Previously participants in the cookie protocol only bound the peer nonce in their MACs. With this change, they bind both nonces. This change is _probably_ not necessary for security, but it can't hurt. It follows a general principle that Adam Langley told me a long time ago: you won't regret binding more, but you might regret binding less.