aboutsummaryrefslogtreecommitdiff
path: root/crates/tor-cell/tests/testvec_chanmsg.rs
Commit message (Collapse)AuthorAgeFilesLines
* proto: Remove the AUTHORIZE as a parsable cellDavid Goulet2025-08-211-15/+0
| | | | | | | | | | | | | The AUTHORIZE cell command is simply reserved but not defined. The tor specification, at this point in time, is allowing such cell before the handshake starts but it is very unclear on what ordering is allowed nor how many can are allowed. C-tor silents drop them like VPADDING and so clearly unused. Instead of dealing with it, simply remove its support but keeping its reserved number. Signed-off-by: David Goulet <[email protected]>
* Switch Cargo.toml files to edition 2024.Nick Mathewson2025-08-071-9/+14
| | | | | | | | | | | | | | 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.
* Add a caret_int HandshakeType for HTYPE constantsJim Newsome2023-10-261-3/+8
|
* Change tor_bytes::Error::BadMessage to a Cow.Nick Mathewson2023-02-091-1/+1
| | | | | | | | | | Actually, to avoid making a breaking change, I'm deprecating BadMessage and creating a new InvalidMessage variant that takes a Cow. This way I don't need to track every crate that re-exposes tor_bytes::Error and call this a breaking change in those. Making this change will allow tor_bytes errors to be much more helpful.
* tor-cell: Rename ChanMsg and ChanCell-related types.Nick Mathewson2023-02-071-8/+8
|
* tor-cell: Remove ChanMsg methods that are duplicated in ChanMsgClass.Nick Mathewson2023-02-071-9/+5
|
* tor-cell: Use macro to generate ChanMsg too.Nick Mathewson2023-02-071-2/+2
|
* Disable clippy::unlinlined-format-argsNick Mathewson2023-01-271-0/+2
| | | | | | | | This warning kind of snuck up on us! (See #748) For now, let's disable it. (I've cleaned it up in a couple of examples, since those are meant to be more idiomatic and user-facing.) Closes #748.
* msg::{CreateFast/CreatedFast}: Rename accessor to (into_)body()Neel Chauhan2022-12-181-2/+2
|
* tor-cell: Rename for_client and for_relayEmil Engler2022-10-211-5/+5
| | | | | | | This commit renames the for_client and for_relay functions to from_client and from_relay respectively, in order to indicate their origin, as the term "for" is more likely to indicate a destination, which is not true in that situation.
* tor-cell: PaddingNegotiate::start: take IntegerMillisecondsIan Jackson2022-08-171-1/+3
|
* chancell: PaddingNegotiate: Provide two constructors, not oneIan Jackson2022-08-161-1/+7
| | | | | | | | We don't really want the caller to pass ignored timeout parameters. And this makes more semantic sense. The stop constructor uses zero, which is what C Tor does. See https://gitlab.torproject.org/tpo/core/torspec/-/merge_requests/76
* tor-cell: Make encoding method signatures fallible.Nick Mathewson2022-07-111-2/+6
|
* fix/silence clippy lints in test modulesDaniel Eades2021-09-081-1/+1
|
* Move all crates into a `crates` subdirectory.Nick Mathewson2021-08-271-0/+401
This will cause some pain for now, but now is really the best time to do this kind of thing.