summaryrefslogtreecommitdiff
path: root/tor-proto/src/circuit.rs
Commit message (Collapse)AuthorAgeFilesLines
* A few tests for circparameters generation.Nick Mathewson2021-06-191-7/+19
|
* Misc tests in tor-proto.Nick Mathewson2021-06-191-4/+23
|
* Fix some warnings about needless & from nightly clippyNick Mathewson2021-06-181-3/+3
|
* Implement Debug for ClientCirc and Channel.Nick Mathewson2021-06-141-0/+9
|
* Add a warning comment about truncate-and-reextend.Nick Mathewson2021-05-281-0/+5
|
* tor-proto: change internal meta-handler API for error-proofingNick Mathewson2021-05-281-66/+107
| | | | | | | The previous API required the caller to check that the meta-cell it got was coming from the right hop; the new API requires the caller to say which hop it expects to get a cell from. With this change, it's not possible to omit the correct-hop check.
* Use the "typos" tool to fix some spellingNick Mathewson2021-05-261-3/+3
|
* Check "connection" usage for when stream or channel would be better.Nick Mathewson2021-05-181-4/+4
|
* Prefer "relay" over "router" in docs and APIs.Nick Mathewson2021-05-181-1/+1
|
* Prefer "relay" to "server" when appropriate.Nick Mathewson2021-05-181-7/+7
|
* Add unseparated_literal_suffix lint, and fix it.Nick Mathewson2021-05-031-1/+1
|
* Fix Rust-1.51 clippy warnings about acronyms in camel case.Nick Mathewson2021-03-291-2/+2
| | | | This is painful, but we shouldn't have to do it again.
* Rename Rsa{Identity,Signature} to fix clippy warning.Nick Mathewson2021-03-291-2/+2
|
* Check for channel match in create_firsthop_ntor().Nick Mathewson2021-03-241-4/+19
| | | | | | This way we won't even try sending the CREATE2 cell unless the Ed25519 identity we know for the channel matches the provided CircTarget.
* Move stream timeout logic into tor-client.Nick Mathewson2021-03-241-146/+134
| | | | | | | | | | This is consistent with the other pieces of tor-proto, which do not handle timeouts on their own. It also lets us remove tor-rtcompat as a dependency from tor-proto, and simplify some of the test cases to use async_test. This commit unindents a lot of test code; use git's "-b" flag to read the parts that matter.
* Add tests for correct incoming sendme handling.Nick Mathewson2021-03-221-5/+198
| | | | | | At this point I'm going to pause writing tor-proto tests for a little while and think about refactoring that could make these tests simpler. I'm doing way too much copy-paste here.
* Extend the begindir test to exchange data on the stream.Nick Mathewson2021-03-191-3/+44
|
* Introduce a helper to tor_proto::circuit testsNick Mathewson2021-03-191-44/+24
|
* circuit: Add a test for a bad crypto handshake.Nick Mathewson2021-03-161-0/+13
|
* circuit: tests for different undesired responses to EXTEND.Nick Mathewson2021-03-161-3/+93
|
* circuit: improve errors on bad extended2Nick Mathewson2021-03-161-4/+11
|
* Merge remote-tracking branch 'origin/mr/21'Nick Mathewson2021-03-121-5/+1
|\
| * Avoid a slice copy in send_relay_cell().George Kadianakis2021-03-121-5/+1
| | | | | | | | Convert slice to array in the parent function instead of copying.
* | Better management for END cells in streams.Nick Mathewson2021-03-101-10/+10
| |
* | Rename TorStream => RawCellStreamNick Mathewson2021-03-101-4/+4
|/
* Make a few async_test tests work correctly again.Nick Mathewson2021-03-021-33/+35
| | | | | | For these, we need to call tor_rtcompat::task::block_on() directly, since they would crash with tokio enabled. Perhaps down the line we should look for a better fix here.
* Use futures::join!() to simplify test_create().Nick Mathewson2021-02-231-19/+11
|
* Simplify error checking in begin_data_stream().George Kadianakis2021-02-081-18/+12
|
* Implement timeout for new streams (set to 120 seconds).George Kadianakis2021-02-051-11/+23
|
* Fix some clippy warnings from nightly.Nick Mathewson2021-01-021-2/+5
|
* Implement the "circwindow" and "ExtendByEd25519ID" parametersNick Mathewson2020-12-221-17/+87
| | | | | | These necessitated a little complexity for our circuit creation/extension API; we might want to refactor that down the road.
* Fix a few clippy warningsNick Mathewson2020-12-171-3/+3
|
* Handle an error in circuit.rs without crashing.George Kadianakis2020-12-171-1/+4
|
* Basic support for IPv6 and begin flags.Nick Mathewson2020-12-151-3/+10
| | | | | | We now have a way to tell a circuitmgr whether we require ipv4/ipv6 support for a target address in an exit policy, and we use similar logic to set begin flags.
* Fix some rustdoc warnings.Nick Mathewson2020-12-091-2/+2
|
* Make RSAIdentity implement Copy.Nick Mathewson2020-12-081-2/+2
|
* Mark some XXXX issues as XXXX-A1.Nick Mathewson2020-12-071-1/+1
|
* Expose UniqId types for channels and circuitsNick Mathewson2020-12-011-1/+11
|
* Rename LogId -> UniqId.Nick Mathewson2020-12-011-22/+29
|
* Move closed-check for circuits into an atomicbool.Nick Mathewson2020-11-131-26/+43
|
* Make Arc<>-ness of ClientCirc explicit.Nick Mathewson2020-11-121-34/+39
|
* Make the Arc-ness of channels more explicit.Nick Mathewson2020-11-121-4/+4
| | | | | | Previously every channel was a secret Arc<>, which I think is bad style, and which stopped us from using weak references in other places.
* stream: Update to enable more fine-grained lockingNick Mathewson2020-11-041-1/+1
| | | | | Not sure this is quite right, or quite deadlock free, but it lets us read/write cells on a stream we haven't locked.
* Add a tiny bit of cleanup logic to tor-circmgrNick Mathewson2020-11-021-0/+7
|
* tor-proto API: Use new_ref, not clone.Nick Mathewson2020-10-291-4/+11
| | | | | | Semantically, cloning a Channel or Circuit is actually increasing an internal reference count. We should name the functions to reflect that, to be more explicit about what we're doing.
* Add a simple test for stream creation.Nick Mathewson2020-10-271-1/+37
|
* Add a test for extending a circuit with ntor.Nick Mathewson2020-10-271-0/+53
|
* circuit: test meta-cell receivingNick Mathewson2020-10-271-11/+77
|
* Add a test for sending a cell.Nick Mathewson2020-10-271-1/+84
|
* Expand test to handle building circuit with ntor.Nick Mathewson2020-10-271-15/+82
|