aboutsummaryrefslogtreecommitdiff
path: root/tor-proto/src
Commit message (Collapse)AuthorAgeFilesLines
...
* Merge remote-tracking branch 'origin/mr/16' into mainNick Mathewson2021-02-261-22/+37
|\
| * Refactor StreamMap methods to use HashMap::EntryGeorge Kadianakis2021-02-261-22/+37
| |
* | Use futures::join!() to simplify test_create().Nick Mathewson2021-02-231-19/+11
| |
* | Fix an intermittent test failure on int overflow.Nick Mathewson2021-02-191-1/+4
|/
* 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-052-11/+34
|
* Rename client-demo to tor-client.Nick Mathewson2021-02-021-1/+1
|
* Migrate from futures_codec to asynchronous_codec.Nick Mathewson2021-01-153-1/+4
| | | | | | | | asynchronous_codec is a fork of futures_codec that is up-to-date on its dependencies. This migration allows us to upgrade to the current version of the bytes crate.
* Fix some clippy warnings from nightly.Nick Mathewson2021-01-022-4/+10
|
* Implement the "circwindow" and "ExtendByEd25519ID" parametersNick Mathewson2020-12-222-19/+95
| | | | | | These necessitated a little complexity for our circuit creation/extension API; we might want to refactor that down the road.
* When a stream read fails, block writes too.Nick Mathewson2020-12-221-13/+10
| | | | Closes arti#49.
* Fix a few clippy warningsNick Mathewson2020-12-171-3/+3
|
* Handle an error in circuit.rs without crashing.George Kadianakis2020-12-171-1/+4
|
* Simplify RelayCellBody::recognized() method.George Kadianakis2020-12-171-27/+22
| | | | | | self is no longer mutable. Co-authored-by: David Goulet <[email protected]>
* 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-094-6/+7
|
* Make RSAIdentity implement Copy.Nick Mathewson2020-12-081-2/+2
|
* Resolve a few nightly-only clippy issuesNick Mathewson2020-12-071-0/+2
|
* Mark some XXXX issues as XXXX-A1.Nick Mathewson2020-12-072-4/+4
|
* Run cargo fix --edition-idiomsNick Mathewson2020-12-023-3/+3
|
* Expose UniqId types for channels and circuitsNick Mathewson2020-12-014-14/+30
|
* Rename LogId -> UniqId.Nick Mathewson2020-12-017-106/+125
|
* Derive more types for circuit and channel LogIdsNick Mathewson2020-12-012-2/+2
|
* Enforce uniqueness on circuit and channel logidsNick Mathewson2020-12-011-3/+9
|
* Refactor first-hop handling types a bitNick Mathewson2020-11-172-3/+7
| | | | | | This lets us have the notion of "get the first hop of a path as some kind of a chantarget", which will make it easier to write other path types.
* Move closed-check for circuits into an atomicbool.Nick Mathewson2020-11-132-31/+47
|
* Light refactoring on remaining ChannelImpl functionsNick Mathewson2020-11-131-22/+21
|
* Turn the channel "closed" method into an AtomicBoolNick Mathewson2020-11-132-23/+24
| | | | This lets us make the test for closed channels non-async.
* Move a few immutable fields from ChannelImpl outside the lock.Nick Mathewson2020-11-132-31/+25
| | | | | Since these don't change while the channel is alive, we don't need the lock to protect them.
* Make Arc<>-ness of ClientCirc explicit.Nick Mathewson2020-11-122-42/+46
|
* Make the Arc-ness of channels more explicit.Nick Mathewson2020-11-124-54/+38
| | | | | | Previously every channel was a secret Arc<>, which I think is bad style, and which stopped us from using weak references in other places.
* Refactor DataStream to be splittable, and have internal locking.Nick Mathewson2020-11-041-8/+57
| | | | This lets me fix the deadlock in the proxy code.
* stream: Update to enable more fine-grained lockingNick Mathewson2020-11-042-16/+27
| | | | | 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
|
* Tests for tor-chanmgr.Nick Mathewson2020-10-301-0/+6
|
* chanmgr: don't return closing channels.Nick Mathewson2020-10-301-0/+7
|
* Implement a channel-manager type to get or launch channels on request.Nick Mathewson2020-10-301-1/+1
|
* Remove duplication of ipaddr argument in handshake.Nick Mathewson2020-10-291-13/+19
|
* Function to check whether a channel matches a target.Nick Mathewson2020-10-292-2/+30
|
* tor-proto API: Use new_ref, not clone.Nick Mathewson2020-10-293-14/+19
| | | | | | 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
|
* Downgrade an XXXXM3 message.Nick Mathewson2020-10-271-1/+1
|
* Unify interface for detecting stream close.Nick Mathewson2020-10-271-2/+1
|
* Add a test for sending a cell.Nick Mathewson2020-10-271-1/+84
|
* Expand test to handle building circuit with ntor.Nick Mathewson2020-10-272-15/+90
|
* Make a test for create_firsthop_fast. WOW that was hard.Nick Mathewson2020-10-272-4/+75
|
* Make circuit reactors also have a run_once() method for testing.Nick Mathewson2020-10-273-51/+60
|
* Add a fake, reactorless channel, for use in testing circuitsNick Mathewson2020-10-272-3/+45
|