| Commit message (Collapse) | Author | Age | Files | Lines | ||
|---|---|---|---|---|---|---|
| ... | ||||||
| * | Add tests for correct incoming sendme handling. | Nick Mathewson | 2021-03-22 | 2 | -5/+207 | |
| | | | | | | | 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 Mathewson | 2021-03-19 | 1 | -3/+44 | |
| | | ||||||
| * | Introduce a helper to tor_proto::circuit tests | Nick Mathewson | 2021-03-19 | 1 | -44/+24 | |
| | | ||||||
| * | Add a compatibility layer so we can upgrade rand_core. | Nick Mathewson | 2021-03-18 | 2 | -7/+8 | |
| | | | | | | | dalek-crypto is stuck on rand_core 0.5.1, so we've been stuck too. This commit introduces a compatibility module so that we can wrap new rand_core instances to make them backward compatible. | |||||
| * | Add appropriate categories to some Cargo.toml files. | Nick Mathewson | 2021-03-17 | 1 | -0/+1 | |
| | | ||||||
| * | Add the tor project as an author. | Nick Mathewson | 2021-03-17 | 1 | -1/+1 | |
| | | ||||||
| * | Add keywords to each Cargo.toml | Nick Mathewson | 2021-03-17 | 1 | -0/+1 | |
| | | ||||||
| * | Add a description field to all our Cargo.toml files | Nick Mathewson | 2021-03-17 | 1 | -0/+1 | |
| | | ||||||
| * | Give it a homepage everyplace. | Nick Mathewson | 2021-03-17 | 1 | -0/+1 | |
| | | ||||||
| * | circuit: Add a test for a bad crypto handshake. | Nick Mathewson | 2021-03-16 | 1 | -0/+13 | |
| | | ||||||
| * | circuit: tests for different undesired responses to EXTEND. | Nick Mathewson | 2021-03-16 | 1 | -3/+93 | |
| | | ||||||
| * | circuit: improve errors on bad extended2 | Nick Mathewson | 2021-03-16 | 1 | -4/+11 | |
| | | ||||||
| * | Refactor circuit reactor for testing. | Nick Mathewson | 2021-03-16 | 1 | -1/+6 | |
| | | ||||||
| * | Test for Channel::check_match | Nick Mathewson | 2021-03-16 | 1 | -0/+39 | |
| | | ||||||
| * | Bump a couple of deps | Nick Mathewson | 2021-03-13 | 1 | -1/+1 | |
| | | ||||||
| * | Merge remote-tracking branch 'origin/mr/21' | Nick Mathewson | 2021-03-12 | 2 | -7/+4 | |
| |\ | ||||||
| | * | Avoid a slice copy in send_relay_cell(). | George Kadianakis | 2021-03-12 | 2 | -7/+4 | |
| | | | | | | | | | Convert slice to array in the parent function instead of copying. | |||||
| * | | Better management for END cells in streams. | Nick Mathewson | 2021-03-10 | 5 | -27/+34 | |
| | | | ||||||
| * | | Box the buffer in DataWriterImpl. | Nick Mathewson | 2021-03-10 | 1 | -3/+2 | |
| | | | ||||||
| * | | Remove now-unused methods from DataStream and its allies. | Nick Mathewson | 2021-03-10 | 1 | -36/+0 | |
| | | | ||||||
| * | | Treat StreamClosed as indicating no error. | Nick Mathewson | 2021-03-10 | 1 | -3/+7 | |
| | | | | | | | | | This is wrong, but less wrong than the other way around. | |||||
| * | | Use AsyncRead and AsyncWrite in our proxy implementation | Nick Mathewson | 2021-03-10 | 1 | -0/+2 | |
| | | | ||||||
| * | | Make DataStream implement AsyncRead and AsyncWrite. | Nick Mathewson | 2021-03-10 | 1 | -1/+27 | |
| | | | ||||||
| * | | Implement AsyncWrite for DataWriter. | Nick Mathewson | 2021-03-10 | 1 | -24/+155 | |
| | | | ||||||
| * | | Revise DataReader to implement AsyncRead. | Nick Mathewson | 2021-03-10 | 2 | -23/+96 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The tricks I needed here turned out to be: * I needed to store the future returned by read_cell() while it is returning Poll::Pending. * Since the type of that future is secret, I needed to put it in a Box<dyn Future>. * But since that future holds a reference to the DataReader, that would create a self-referential structure if we tried to store the DataReader and the future at the same time. So instead, I had to make an enum() that either holds a DataReader directly, or holds the future that will give us back the DataReader when it's done. (I also had to change the read_cell() function so that it takes ownership of the DataReader, and returns it when it's finished.) (Daniel Franke explained how to do this.) * Finally, I couldn't figure out how to change the enum's type in-place, so I had to wrap it in an Option<>. (Daniel Franke says this isn't actually necessary.) I've noted a couple of places in the read code where I want to handle errors and closes more carefully. | |||||
| * | | Rearrange DataStream code a bit and add an internal layer of indirection | Nick Mathewson | 2021-03-10 | 1 | -36/+56 | |
| | | | ||||||
| * | | Make note_ended private on RawCellStream. | Nick Mathewson | 2021-03-10 | 2 | -8/+18 | |
| | | | ||||||
| * | | Move DataStream into its own module. | Nick Mathewson | 2021-03-10 | 2 | -204/+212 | |
| | | | ||||||
| * | | Move ResolveStream to its own module. | Nick Mathewson | 2021-03-10 | 2 | -35/+42 | |
| | | | ||||||
| * | | Implement From<tor_proto::Error> for std::io::Error | Nick Mathewson | 2021-03-10 | 1 | -0/+23 | |
| | | | ||||||
| * | | Move RawCellStream into its own module. | Nick Mathewson | 2021-03-10 | 2 | -86/+106 | |
| | | | ||||||
| * | | Rename TorStream => RawCellStream | Nick Mathewson | 2021-03-10 | 2 | -20/+20 | |
| | | | ||||||
| * | | Refactor DataStream constituents a bit. | Nick Mathewson | 2021-03-09 | 1 | -33/+93 | |
| | | | | | | | | | | | | | | | | | | | These new (internal so far) APIs correspond more closely to what we'll need for AsyncRead and AsyncWrite. We also make write methods take a mutable reference to self, since that seems to be (closer to) what the AsyncRead/AsyncWrite code expects. | |||||
| * | | Bump dependencies with "cargo upgrade" | Nick Mathewson | 2021-03-06 | 1 | -1/+1 | |
| |/ | ||||||
| * | Make a few async_test tests work correctly again. | Nick Mathewson | 2021-03-02 | 1 | -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. | |||||
| * | Port to work with tokio or async-std. | Nick Mathewson | 2021-03-02 | 1 | -1/+1 | |
| | | | | | | | | | | | | | | | | | | | This is fairly ugly and I think I'll need to mess around with the feature configuration a while until we get something that's pleasant to develop with. This still seems like a good idea, though, since we _will_ need to be executor-agnostic in the end, or we'll have no way to handle wasm or embedded environments. Later down the road, we'll probably want to use futures::Executor or futures::Spawn more than having global entry points in tor_rtcompat. That would probably make our feature story simpler. Tokio is the default now, since tokio seems to be more heavily used for performance-critical stuff. This patch breaks tests; the next one will fix them, albeit questionably. | |||||
| * | Merge remote-tracking branch 'origin/mr/16' into main | Nick Mathewson | 2021-02-26 | 1 | -22/+37 | |
| |\ | ||||||
| | * | Refactor StreamMap methods to use HashMap::Entry | George Kadianakis | 2021-02-26 | 1 | -22/+37 | |
| | | | ||||||
| * | | Use futures::join!() to simplify test_create(). | Nick Mathewson | 2021-02-23 | 1 | -19/+11 | |
| | | | ||||||
| * | | Update to latest futures, once_cell | Nick Mathewson | 2021-02-23 | 1 | -1/+1 | |
| | | | ||||||
| * | | Fix an intermittent test failure on int overflow. | Nick Mathewson | 2021-02-19 | 1 | -1/+4 | |
| | | | ||||||
| * | | Update some dependencies. | Nick Mathewson | 2021-02-19 | 1 | -1/+1 | |
| |/ | ||||||
| * | upgrade a few dependencies | Nick Mathewson | 2021-02-10 | 1 | -2/+2 | |
| | | ||||||
| * | Simplify error checking in begin_data_stream(). | George Kadianakis | 2021-02-08 | 1 | -18/+12 | |
| | | ||||||
| * | Implement timeout for new streams (set to 120 seconds). | George Kadianakis | 2021-02-05 | 3 | -11/+35 | |
| | | ||||||
| * | Rename client-demo to tor-client. | Nick Mathewson | 2021-02-02 | 1 | -1/+1 | |
| | | ||||||
| * | bump serde and log | Nick Mathewson | 2021-02-01 | 1 | -1/+1 | |
| | | ||||||
| * | require latest futures crate | Nick Mathewson | 2021-01-15 | 1 | -1/+1 | |
| | | ||||||
| * | Migrate from futures_codec to asynchronous_codec. | Nick Mathewson | 2021-01-15 | 4 | -4/+6 | |
| | | | | | | | | | 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. | |||||
| * | Upgrade a few more dependencies. | Nick Mathewson | 2021-01-13 | 1 | -2/+2 | |
| | | ||||||
