| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| | | | |
| | | |
| | | |
| | | |
| | | | |
This commit documents the retriability of `RequestFailedError`,
following an IRC conversation with nickm.
|
| | | | |
| | | |
| | | |
| | | | |
Signed-off-by: David Goulet <[email protected]>
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
With specific types now for relay channels, add a function to build the
channel and run the reactor.
That function is feature gated and thus relay only.
Signed-off-by: David Goulet <[email protected]>
|
| | | | |
| | | |
| | | |
| | | | |
Signed-off-by: David Goulet <[email protected]>
|
| | | | |
| | | |
| | | |
| | | | |
Signed-off-by: David Goulet <[email protected]>
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Remove the use of traits, the caller will handle the specific type.
Signed-off-by: David Goulet <[email protected]>
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
No need for these types, we've replaced them with more specific types.
Signed-off-by: David Goulet <[email protected]>
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Add the unverified, verified, non verifiable flavor types of a responder
channel.
This follow on the previous commit to use the type system for stronger
guarantees.
Signed-off-by: David Goulet <[email protected]>
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This commit adds the Unverified and Verified flavor of a relay channel
specific to an initiator.
We decided to use the type system for safety and avoid patterns like:
"if chan.is_initiator() {...} else {...}"
This allows us also to not duplicate code between initiator and
responder code.
The downside is that we expose these types outside of tor-proto meaning
the caller needs to feature gate the usage of these types with the
"relay" flag.
Small price to pay for strong guarantees with the type system.
Signed-off-by: David Goulet <[email protected]>
|
| | |/ /
|/| |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
itself
Previous function "build_auth_data()" is still around but will be
removed in the upcoming commits.
Signed-off-by: David Goulet <[email protected]>
|
| |\ \ \
| | | |
| | | |
| | | |
| | | | |
proto: Replace send_sendme() with general-purpose function
See merge request tpo/core/arti!3641
|
| | | | |
| | | |
| | | |
| | | | |
This was leftover from back when the BWD was a relay-specific type.
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | |
| | | | |
This will soon be used for instructing the BWD to send other types of
messages too.
|
| | | |/
| |/|
| | |
| | |
| | |
| | |
| | | |
The backward reactor will soon need the ability to send other types of
relay messages too: it will soon need the ability to respond to EXTEND2
by sending back an EXTENDED2, so I am preemptively making this function
more general so we can reuse it.
|
| |/ /
| |
| |
| |
| | |
This isn't really semver related, but should be added in the changelog,
so here seems to be a reasonable place to put this.
|
| |\ \
| | |
| | |
| | |
| | | |
deps: Upgrade getrandom to 0.4.0.
See merge request tpo/core/arti!3633
|
| | | |
| | |
| | |
| | | |
This does not have any breaking changes that affect us.
|
| | | | |
|
| | | |
| | |
| | |
| | | |
This method won't really be used for bootstrapping anymore.
|
| | | |
| | |
| | |
| | | |
See https://gitlab.torproject.org/tpo/core/arti/-/issues/2329
|
| | | | |
|
| |\ \ \
| | | |
| | | |
| | | |
| | | | |
arti: test: rescope entities form util.rs files
See merge request tpo/core/arti!3624
|
| | | | | |
|
| |\ \ \ \
| | | | |
| | | | |
| | | | |
| | | | | |
arti: Improve handling of `-p` and `-d` options
See merge request tpo/core/arti!3628
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Uses the standard clap error messages, for example:
```text
$ cargo run -p arti -- proxy -p 123a
error: invalid value '123a' for '-p <PORT>': invalid digit found in string
For more information, try '--help'.
```
|
| | | | | | |
|
| | |_|/ /
|/| | | |
|
| |\ \ \ \
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
rtcompat: Return certificates as Cow.
Closes #2331
See merge request tpo/core/arti!3619
|
| | | | | | |
|
| |/ / / /
| | | |
| | | |
| | | |
| | | | |
The only breaking change here appears to be a MSRV bump that is lower
than our MSRV, so no changes are required on our end.
|
| |/ / / |
|
| | | | |
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
These were all only changed by a98faf72, which simply adds deny
statements for clippy::unused_async in various places.
It's not clear to me that we even need to bump these versions, but that
seems to be what our release documentation implies.
|
| | | |
| | |
| | |
| | | |
Since we removes a existing feature, we need to bump the version.
|
| | | | |
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Done via:
```
for crate in $(./maint/list-crates | rg '^(tor|arti-)'); do
cargo set-version -p $crate 0.39.0
done
```
|
| |\ \ \
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
arti: Remove `proxy.socks_port` and `proxy.dns_port`
Closes #2300
See merge request tpo/core/arti!3622
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
I'm undecided whether we want to keep `resolve_alternative_specs`
around, but it seems possible/likely that we'll want it in the future,
so I think we can keep it.
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | |
| | | | |
This is in preparation for removing the `listen_port` and `dns_port`
config options.
|
| | | | | |
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | |
| | | | |
Now that we can admit to knowing about tor-cert-x509, we can use
TlsCertAndKeys to simplify everything.
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Now that tor-cert-x509 is its own crate, we can use that,
and avoid the circular dependency.
Closes #2330.
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | | |
This will help resolve some dependencies in our graph.
|