| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| |/ / / /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
`PreferredRuntime` is now an opaque wrapper struct that contains the
"actual" preferred runtime as a type alias. The `current_user_runtime`
and `create_runtime` functions become `PreferredRuntime::current` and
`PreferredRuntime::create`, respectively.
This removes the dependence on `impl Trait`, meaning we can now name the
returned runtime (yay!).
In addition, the documentation was cleaned up a bit to make it
(hopefully) flow better. Items that don't make sense to publicize, like
testing implementation details, have been marked #[doc(hidden)] and
semver warnings added.
|
| |\ \ \ \
| |/ / /
|/| | |
| | | |
| | | | |
Upgrade a few dependencies to newer versions
See merge request tpo/core/arti!357
|
| | | | |
| | | |
| | | |
| | | |
| | | | |
This is needed to make the backtrace test pass on Rust 1.53 with
minimum-version libraries.
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| |\ \ \ \
| | | | |
| | | | |
| | | | |
| | | | | |
use runtime TlsProvider in tcp-hook example
See merge request tpo/core/arti!356
|
| | | | | | |
|
| |\ \ \ \ \
| |_|/ / /
|/| | | |
| | | | |
| | | | | |
tor-proto datastream: Fix typo in Debug impl
See merge request tpo/core/arti!354
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
As per
https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/353#note_2781632
|
| |\ \ \ \ \
| |_|/ / /
|/| | | |
| | | | |
| | | | | |
TorClient: Add get_runtime() convenience method
See merge request tpo/core/arti!350
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
As per
https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/350#note_2781368
|
| | | | | | |
|
| |\ \ \ \ \
| |_|/ / /
|/| | | |
| | | | |
| | | | | |
tor-rtcompat: Provide TLS wrapping for all streams
See merge request tpo/core/arti!349
|
| | | | | | |
|
| | |/ / /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Now all of the runtime types we provide all
impl<S> TlsProvider<S> where S: ...
rather than merely TlsProvider<Self::TcpStream>.
And we document and intent to perhaps require this in the future.
|
| |\ \ \ \
| | | | |
| | | | |
| | | | |
| | | | | |
tor-proto datastream: Do not dump packet data in DataWriterImpl
See merge request tpo/core/arti!353
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| |\ \ \ \ \
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
arti-client: Unlock the state manager on failure to bootstrap
Closes #335
See merge request tpo/core/arti!334
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
`StateMgr` got a new `unlock()` method that does what it says on the
tin. We now call it from `bootstrap()` using the new
`util::StateMgrUnlockGuard`, which works in a manner similar to the
`BoolResetter` from `tor_dirmgr`.
(A decent small little task in future might be to unify these types in
some sort of general arti utility crate?)
closes arti#335
|
| |\ \ \ \ \ \
| |/ / / / /
|/| | | | |
| | | | | |
| | | | | | |
make arti return a web page when receiving http request on socks port
See merge request tpo/core/arti!348
|
| | | | | | | |
|
| | | |/ / /
| |/| | | |
|
| |\ \ \ \ \
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Initial cut of hyper bindings as a library crate
See merge request tpo/core/arti!342
|
| | | | | | | |
|
| | | | | | | |
|
| | | | | | | |
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | | |
Pure code motion. (Including motion/copying of "use" lines.)
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
We need this not to use anyhow because we don't want our libraries to
expose anyhow, and this is about to go into the library.
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
It auto-converts to ErrorDetail but add this for convenience of
callers which don't want to look into that unstable API.
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | | |
Code motion and consequential dependency adjustments.
|
| | | | | | | |
|
| | |/ / / / |
|
| |\ \ \ \ \
| |_|/ / /
|/| | | |
| | | | |
| | | | |
| | | | |
| | | | | |
tor-proto: Split up a couple of handshake-based errors
Closes #359 and #358
See merge request tpo/core/arti!344
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Remove default conversion; instead use a specific conversion in each
of the two modules that need to do it.
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This helps the user distinguish between protocol violations that
happen when connecting to the tor network from those that happen
while connected.
Closes #358.
|
| | | | | |
| | | | |
| | | | |
| | | | | |
(We'll have a BadChanHandshake soon.)
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
We want to distinguish handshake failures from errors later on in
the channel's lifetime.
Closes #359.
|
| |\ \ \ \ \
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Give specific error kinds to different END reasons
Closes #360
See merge request tpo/core/arti!343
|
| | |/ / / /
| | | | |
| | | | |
| | | | | |
Closes #360.
|
| |\ \ \ \ \
| |_|_|/ /
|/| | | |
| | | | |
| | | | | |
impl Debug for DataStream (and its components)
See merge request tpo/core/arti!351
|
| | | |/ /
| |/| |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
My proximate motivation is that tls-api wants its inner streams to be
Debug. But in general, I agree with the Rust API Guidelines notion
that almost everything should be Debug.
I have gone for the "dump all the things" approach. A more nuanced
approach would be possible too.
|
| |\ \ \ \
| | | | |
| | | | |
| | | | |
| | | | | |
Dir store redux
See merge request tpo/core/arti!345
|
| | | | | | |
|
| | | |_|/
| |/| | |
|
| |/ / / |
|
| |\ \ \
| |_|/
|/| |
| | |
| | | |
add example of tcp hook
See merge request tpo/core/arti!341
|