| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| | | | |
| | | |
| | | |
| | | |
| | | | |
DirSpecificTarget in the usage was renamed apropos an MR comment but
this function name was overlooked.
|
| | | | |
| | | |
| | | |
| | | |
| | | | |
If pt-client is disabled, there are in fact no tests, so the module is
empty. But we would always want `use super::*` here.
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | |
| | | | |
This doesn't make sense now we've released Arti 1.0. The version
number is enough I think.
|
| | | |/
| |/| |
|
| |\ \ \
| | | |
| | | |
| | | |
| | | | |
cleanup target dir on job completion
See merge request tpo/core/arti!786
|
| | | | | |
|
| |\ \ \ \
| |/ / /
|/| | |
| | | |
| | | | |
tor-cell: Avoid redundant pointer copy
See merge request tpo/core/arti!791
|
| | | |/
| |/|
| | |
| | |
| | |
| | | |
This commit changes an iteration by copying a u16 (which is 2 bytes)
instead of a pointer address, which is most likely 8 bytes on most
machines.
|
| |\ \ \
| |_|/
|/| |
| | |
| | | |
Make error from bridge descriptor provider be a trait object
See merge request tpo/core/arti!796
|
| | | | |
|
| | | | |
|
| |/ /
| |
| |
| |
| |
| |
| |
| | |
We could in the future provide a version of abs_retry_time which took
an &dyn closure if that turns out to be wanted.
I think this isn't a semver break because trait implementors are
allowed to relax bounds.
|
| |\ \
| | |
| | |
| | |
| | | |
Oops: Mark some imports as pt-client only.
See merge request tpo/core/arti!794
|
| | | |
| | |
| | |
| | | |
This causes CI problems, and is entirely my fault.
|
| |\ \ \
| |/ /
|/| |
| | |
| | |
| | |
| | | |
add checks for many feature combinations
Closes #303
See merge request tpo/core/arti!775
|
| | | | |
|
| | | | |
|
| | | |
| | |
| | |
| | | |
and fix issue compiling tor-rtcompat with on ssl runtime
|
| |\ \ \
| | | |
| | | |
| | | |
| | | | |
tor-cell: Avoid redundant allocation
See merge request tpo/core/arti!790
|
| | | |/
| |/|
| | |
| | |
| | |
| | | |
This commit changes the way how a vector with a known sized gets
allocated, by using Vec::with_capacity() instead of Vec::new().
It will eventually avoid an allocation of more memory than required.
|
| |\ \ \
| |/ /
|/| |
| | |
| | | |
tor-cell: Rename fixed_len to fixed_len_handshake
See merge request tpo/core/arti!789
|
| |/ /
| |
| |
| |
| |
| | |
This commit renames the fixed_len! macro to fixed_len_handshake!, in
order to indicate, that this macro is only suited for cells with
commands related to handshaking.
|
| |\ \
| | |
| | |
| | |
| | | |
Make DirResponse API not an error handling footgun
See merge request tpo/core/arti!782
|
| | | | |
|
| | | |
| | |
| | |
| | | |
I want this for testing. It seems friendly to provide it, though.
|
| | | | |
|
| | | |
| | |
| | |
| | | |
Split off to assist review.
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
We're going to have functions on Response that fail by returning only
one of these.
Sadly this diff is quite noisy.
|
| | | |
| | |
| | |
| | |
| | | |
These don't check errors and are therefore quite hazardous.
I'm going to introduce a more cooked version in a moment.
|
| |\ \ \
| | | |
| | | |
| | | |
| | | | |
serde support for PtTarget
See merge request tpo/core/arti!780
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | | |
This will let us remember bridges that use pluggable transports.
|
| | | | | |
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
The `PtTarget` type and its contents (`TransportName`,
`PtTargetAddr`, `PtSettings`) are now unconditionally compiled and
exposed. This will allow us to serialize and deserialize them in
our guard-state files even when we have been built without explicit
PT support.
The `pt-client` feature controls whether `TransportName` is a
variant of `TransportId`, and whether `PtTarget` is a variant of
`ChanMethod`: this in turn means that we'll still have simpler
binary code and smaller structures when we're building without PT
support (which is what we wanted when we initially made these types
conditional).
|
| |\ \ \ \
| | | | |
| | | | |
| | | | |
| | | | | |
Implement a TransportHelper to connect via a SOCKS-based pluggable transport
See merge request tpo/core/arti!776
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This is a compromise between C tor (never escapes = signs) and the
spec (calls for escaping all = signs). In C tor there is no way to
actually construct a key with an = sign in it, so this difference
should be undetectable.
|
| | | | | | |
|
| | | | | | |
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This is mostly a matter of encoding parameters in the format used
for socks authentication.
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This code is _not_ conditional, since we want to support running
with a proxy even if we don't support pluggable transports.
We may eventually want to refactor this into a new create.
|
| | | | | | |
|
| | | | | | |
|
| |\ \ \ \ \
| |_|/ / /
|/| | | |
| | | | |
| | | | | |
Use BridgeConfig to identify bridges in two places
See merge request tpo/core/arti!781
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This lets us write functions which can either take an existing
owned OwnedChanTarget, or copy out of some other kind of ChanTarget
passed by reference.
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
The target is identified by Into<OwnedChanTarget>.
We introduce corresponding TargetCircUsage and SupportedCircUsage.
|
| | | |/ /
| |/| |
| | | |
| | | |
| | | |
| | | |
| | | | |
Now keyed by Arc<BridgeConfig>, and the values can be errors.
Currently there is no implementation so there can't be any errors,
but the error enum will become nonempty.
|
| |\ \ \ \
| |/ / /
|/| | |
| | | |
| | | | |
impl ChanTarget for BridgeConfig
See merge request tpo/core/arti!783
|
| | | | | |
|