summaryrefslogtreecommitdiff
path: root/crates/tor-rpc-connect/src/client.rs
Commit message (Collapse)AuthorAgeFilesLines
* Switch Cargo.toml files to edition 2024.Nick Mathewson2025-08-071-1/+1
| | | | | | | | | | | | | | 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.
* rpc-connect: Detect and decline connpts with invalid "auth" feieldsNick Mathewson2025-01-271-1/+1
|
* rpc: Refactor Cookie and UnloadedCookie into a single type.Nick Mathewson2025-01-151-4/+4
|
* rpc: consolodate naming of "inherent" auth.Nick Mathewson2025-01-151-1/+1
| | | | | | | | | 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.
* tor-rpc-connect: defer loading auth cookies on the client side.Nick Mathewson2025-01-151-5/+6
| | | | | 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-151-1/+1
|
* connpt: Make unix socket handling more robust.Nick Mathewson2024-12-191-1/+1
| | | | | | | | | | Grab an associated lock file... - ... then delete the socket file (if it's present) ... - ... then bind to it. On exit: - remove the socket - then drop the lock.
* connpt: note an opportunity to save some fds.Nick Mathewson2024-12-091-0/+3
|
* connpts: duplicate socket before returning.Nick Mathewson2024-12-091-15/+24
| | | | | (We want a separate read and write socket before we return, and once we've done the type-erasure, we can't do try_clone().)
* connect point: handle unrecognized auth variants.Nick Mathewson2024-11-191-1/+1
|
* connect point: Add client support.Nick Mathewson2024-11-191-0/+82
("Client support" here means connecting to a socket and reading a cookie file.)