summaryrefslogtreecommitdiff
path: root/crates/tor-rpc-connect/src
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* | rpc: Keep Cookie in an Arc.Nick Mathewson2025-01-152-3/+9
| | | | | | | | | | Since this is a secret value, it's probably best not to copy it all over the place.
* | arti-rpcserver: Server side of cookie auth.Nick Mathewson2025-01-151-2/+25
| |
* | tor-rpc-connect: Cryptographic support for cookie auth.Nick Mathewson2025-01-151-2/+208
| | | | | | | | Conforms to rpc-cookie-sketch.md.
* | tor-rpc-connect: defer loading auth cookies on the client side.Nick Mathewson2025-01-153-6/+37
| | | | | | | | | | We want to load cookies only after we've connected and gotten a banner.
* | tor-rpc-connect: move cookie auth support to its own module.Nick Mathewson2025-01-155-171/+172
|/
* Merge branch 'mod-module-files' into 'main'Nick Mathewson2025-01-071-0/+1
|\ | | | | | | | | clippy: deny `mod_module_files` See merge request tpo/core/arti!2689
| * clippy: deny `mod_module_files`Steven Engler2025-01-061-0/+1
| | | | | | | | | | | | Denies 'mod.rs' files for consistency. https://rust-lang.github.io/rust-clippy/master/index.html#mod_module_files
* | fix: fix typosDimitris Apostolou2025-01-061-1/+1
| |
* | Merge branch 'bug1776' into 'main'Nick Mathewson2025-01-061-1/+0
|\ \ | |/ |/| | | | | | | | | rpc-connect: Remove cfg(unix) of SYSTEM_DEFAULT_CONNECT_POINT Closes #1776 See merge request tpo/core/arti!2667
| * rpc-connect: Remove cfg(unix) of SYSTEM_DEFAULT_CONNECT_POINTNick Mathewson2024-12-111-1/+0
| | | | | | | | | | | | | | When we switched this definition to use `cfg_if`, we overlooked the `#[cfg(unix)]`. Fixes #1776.
* | Rename Guard=>ListenerGuard.Nick Mathewson2024-12-191-4/+4
| |