| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| |\ \
| | |
| | |
| | |
| | | |
Resolve (mostly) RUSTSEC-2023-0052
See merge request tpo/core/arti!1534
|
| | | |
| | |
| | |
| | |
| | | |
We've solved this for rustls-webpki, but tls-api (which arti-hyper
uses) still requires the unmaintained webpki crate. See #1016.
|
| | | | |
|
| |\ \ \
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
proto: new ClientCirc::send_raw_msg function.
Closes #1010
See merge request tpo/core/arti!1525
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | | |
Closes #1010.
|
| |\ \ \ \
| | | | |
| | | | |
| | | | |
| | | | | |
Upgrade num_enum dependency to 0.7
See merge request tpo/core/arti!1530
|
| | | |_|/
| |/| | |
|
| |\ \ \ \
| | | | |
| | | | |
| | | | |
| | | | | |
Resolve warnings about ambiguous/redundant doc links
See merge request tpo/core/arti!1531
|
| | | |_|/
| |/| |
| | | |
| | | |
| | | | |
Nightly rustdoc now warns if you have a link that isn't necessary,
and if you have a link that might refer to two different things.
|
| |\ \ \ \
| |/ / /
|/| | |
| | | |
| | | | |
hsservice: Compute rendezvous points correctly.
See merge request tpo/core/arti!1521
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This duplicates some code from hsclient as noted in the comments;
it might be good to reduce this, but the remaining nontrivial
duplication is small, and the logic flow is slightly different
because of the two-step process.
|
| | | | | |
|
| |\ \ \ \
| |_|/ /
|/| | |
| | | |
| | | |
| | | |
| | | | |
upgrade serde to >=1.0.184 to not use prebuilt blob
Closes #1011
See merge request tpo/core/arti!1526
|
| | | |/
| |/|
| | |
| | | |
to remove the use of a pre-built blob
|
| |\ \ \
| |/ /
|/| |
| | |
| | | |
hashx/bench: Add cachegrind microbenchmarks
See merge request tpo/core/arti!1513
|
| |/ /
| |
| |
| |
| |
| |
| | |
This uses the 'iai' crate and valgrind to measure fine grained cache
behavior during program generation and hash computation.
Signed-off-by: Micah Elizabeth Scott <[email protected]>
|
| |\ \
| | |
| | |
| | |
| | | |
tor-hsservice errors: Introduce more error types
See merge request tpo/core/arti!1515
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
At the very least, I need FatalError to be distinct:
IptEstablisher::new ought not to fail unless everything is terrible.
Add a the Spawn variant to FatalError (that we'll need soon) and the
Bug variant (which it seems likely we might need).
This also gets rid of the crate-level Result alias.
|
| | | |
| | |
| | |
| | | |
This is what we do elsewhere.
|
| | | |
| | |
| | |
| | |
| | |
| | | |
If the service encouters operational errors, surfacing them here is
not helpful. So these methods ought to work, if they weren't called
erroneously.
|
| | | |
| | |
| | |
| | |
| | | |
The semantics of an Err return from this are unclear. Was it stopped?
And what kind of error might we even return?
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
We want to change the error return types of many methods, so we need a
way to name `std::result::Result`.
We could use `StdResult`, but, actually, properly distinguishing the
kinds of errors that can occur in various contexts means we don't
actually want a single Error type for the whole crate, so
`crate::Result` is going to go away.
|
| |\ \ \
| | | |
| | | |
| | | |
| | | | |
Define drop behaviour of IPT establisher, wrt status watch
See merge request tpo/core/arti!1516
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This was introduced in c82cda85d69d
tor-basic-utils: DropNotifyWatchSender: use DropNotifyEofSignallable
and already, then, the is_eof() method is redundant.
|
| |\ \ \ \
| |_|_|/
|/| | |
| | | |
| | | | |
hsservice: Use correct circparameters_from_netparameters fn
See merge request tpo/core/arti!1520
|
| |/ / /
| | |
| | |
| | | |
I had incorrectly thought that this function was private.
|
| |\ \ \
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
tor-proto: Make ClientCirc::allow_stream_requests take a HopNum.
Closes #1009
See merge request tpo/core/arti!1519
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This adds a test that checks if the reactor is shut down if it receives
an incoming stream request from an unexpected hop.
Part of #1009
|
| | |/ /
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
For consistency with the other `ClientCirc` APIs,
`ClientCirc::allow_stream_requests` now takes a `HopNum` argument. Upon
receiving an incoming stream request, the reactor now checks if the
request came from the hop specified in `allow_stream_requests` (and if
it came from a different hop, the circuit is closed).
Part of #1009
|
| |\ \ \
| |/ /
|/| |
| | |
| | | |
tor-hsservice: Change IptEstablisher::new to take RelayIds
See merge request tpo/core/arti!1517
|
| |/ /
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The IptEstablisher needs to continuously maintain the IPT even as the
netdir is updated. Whereas, the IPT manager just wants to select the
relay from the netdir once and then only think about the relay
identity.
So it makes sense for the establisher to do necessary lookups of the
relay's ids in the netdir.
|
| |\ \
| | |
| | |
| | |
| | | |
hsservice: new rend_handshake module
See merge request tpo/core/arti!1512
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This code has most of what we need to go from an INTRODUCE2 message
we've just received to the point where we've connected to the
rendezvous point and we're waiting for a stream of BEGIN messages.
Unfinished pieces are marked with TODO HSS.
Most of #980.
|
| | | | |
|
| | | | |
|
| |\ \ \
| |_|/
|/| |
| | |
| | | |
tor-bytes: deprecate always_bug with From trait
See merge request tpo/core/arti!1500
|
| | | |
| | |
| | |
| | |
| | |
| | | |
This commit deprecates the `EncodeError::always_bug` function with a
`From<EncodeError> for Bug` trait, which is a more semantically correct
way to perform this action.
|
| |\ \ \
| |/ /
|/| |
| | |
| | | |
test: add a test for missing NETINFO cells
See merge request tpo/core/arti!1501
|
| | | |
| | |
| | |
| | |
| | |
| | | |
This commit adds a unit test to the `tor_proto::handshake` module,
which tests the behavior when no NETINFO cell is present within a
channel.
|
| |\ \ \
| | | |
| | | |
| | | |
| | | | |
Resolve all warnings that appear from `maint/every-crate`
See merge request tpo/core/arti!1507
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| |\ \ \ \
| | | | |
| | | | |
| | | | |
| | | | | |
tor-netdir: Only select nodes that haven't been used for lower-numbered replicas.
See merge request tpo/core/arti!1494
|
| | | | | | |
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This just simplifies the expression a little bit. It still has the same
behaviour.
|
| | | | | | |
|