aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | Fix rustdoc "skip this" markupIan Jackson2022-02-241-1/+1
| | | |
| * | | Note that tls-api is now async and can disable hostname verificationIan Jackson2022-02-241-2/+1
| | | | | | | | | | | | | | | | The other features we want aren't there yet.
| * | | tor-rtcompat: Provide TLS wrapping for all streamsIan Jackson2022-02-247-29/+38
| |/ / | | | | | | | | | | | | | | | | | | | | | 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.
* | | Merge branch 'debug-datastream' into 'main'eta2022-02-241-4/+11
|\ \ \ | | | | | | | | | | | | | | | | tor-proto datastream: Do not dump packet data in DataWriterImpl See merge request tpo/core/arti!353
| * | | Fix rustfmtIan Jackson2022-02-241-1/+1
| | | |
| * | | tor-proto datastream: Do not dump packet data in DataWriterImplIan Jackson2022-02-241-2/+9
| | | |
| * | | tor-proto datastream: import std::fmt::Debug trait nameIan Jackson2022-02-241-2/+2
| | | |
* | | | Merge branch 'eta/335' into 'main'eta2022-02-246-6/+71
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | arti-client: Unlock the state manager on failure to bootstrap Closes #335 See merge request tpo/core/arti!334
| * | | | arti-client: Unlock the state manager on failure to bootstrapeta2022-02-246-6/+71
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `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
* | | | | Merge branch 'socks-version-is-http' into 'main'eta2022-02-241-1/+36
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | make arti return a web page when receiving http request on socks port See merge request tpo/core/arti!348
| * | | | use less magic in http checktrinity-1686a2022-02-241-2/+4
| | | | |
| * | | | make arti return a web page when receiving http request on socks porttrinity-1686a2022-02-231-1/+34
| | |/ / | |/| |
* | | | Merge branch 'http-layer' into 'main'eta2022-02-2410-66/+226
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | Initial cut of hyper bindings as a library crate See merge request tpo/core/arti!342
| * | | | arti-hyper: impl HasKind for ConnectionErrorIan Jackson2022-02-233-0/+16
| | | | |
| * | | | arti-hyper: Add note about missing https supportIan Jackson2022-02-232-0/+4
| | | | |
| * | | | arti-hyper: Add vacuous doc comments to placate clippyIan Jackson2022-02-231-0/+3
| | | | |
| * | | | arti-hyper: Move support code into libraryIan Jackson2022-02-232-112/+113
| | | | | | | | | | | | | | | | | | | | Pure code motion. (Including motion/copying of "use" lines.)
| * | | | arti-hyper: Introduce new ConnectionError typeIan Jackson2022-02-234-13/+44
| | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | | | impl From<TorAddrError> for tor_error::ErrorIan Jackson2022-02-231-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | It auto-converts to ErrorDetail but add this for convenience of callers which don't want to look into that unstable API.
| * | | | arti-hyper: Move hyper example from arti-clientIan Jackson2022-02-234-6/+13
| | | | | | | | | | | | | | | | | | | | Code motion and consequential dependency adjustments.
| * | | | arti-hyper: empty crate skeletonIan Jackson2022-02-235-0/+86
| | | | |
| * | | | Add missing documentation for TLS features to two readmesIan Jackson2022-02-232-0/+4
| |/ / /
* | | | Merge branch 'proto_handshake_err' into 'main'Nick Mathewson2022-02-2411-98/+143
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | | | | | | | | | tor-proto: Split up a couple of handshake-based errors Closes #359 and #358 See merge request tpo/core/arti!344
| * | | proto: Refactor conversion from CodecError to ErrorNick Mathewson2022-02-243-32/+37
| | | | | | | | | | | | | | | | | | | | Remove default conversion; instead use a specific conversion in each of the two modules that need to do it.
| * | | tor-proto: refactor handshake protocol errors to a different typeNick Mathewson2022-02-232-52/+79
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This helps the user distinguish between protocol violations that happen when connecting to the tor network from those that happen while connected. Closes #358.
| * | | tor-proto: Rename BadHandshake to BadCircHandshakeNick Mathewson2022-02-237-12/+12
| | | | | | | | | | | | | | | | (We'll have a BadChanHandshake soon.)
| * | | tor-proto: Split IoErr based on when it occursNick Mathewson2022-02-235-21/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | We want to distinguish handshake failures from errors later on in the channel's lifetime. Closes #359.
* | | | Merge branch 'remote_stream_err' into 'main'eta2022-02-243-4/+75
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Give specific error kinds to different END reasons Closes #360 See merge request tpo/core/arti!343
| * | | | Give specific error kinds to different END reasonsNick Mathewson2022-02-233-4/+75
| |/ / / | | | | | | | | | | | | Closes #360.
* | | | Merge branch 'debug-datastream' into 'main'eta2022-02-243-2/+19
|\ \ \ \ | |_|_|/ |/| | | | | | | | | | | impl Debug for DataStream (and its components) See merge request tpo/core/arti!351
| * | | impl Debug for DataStream (and its components)Ian Jackson2022-02-243-2/+19
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | 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.
* | | Merge branch 'dir-store-redux' into 'main'Nick Mathewson2022-02-246-297/+350
|\ \ \ | | | | | | | | | | | | | | | | Dir store redux See merge request tpo/core/arti!345
| * | | dirmgr::Store.expire_all takes configtharvik2022-02-233-26/+47
| | | |
| * | | dirmgr: add Store traittharvik2022-02-236-278/+310
| | | |
* | | | Merge branch 'typos' into 'main'Nick Mathewson2022-02-231-3/+3
|\ \ \ \ | |/ / / |/| | | | | | | | | | | Fix typos See merge request tpo/core/arti!346
| * | | Fix typosDimitris Apostolou2022-02-231-3/+3
|/ / /
* | | Merge branch 'custom-tcp-hook' into 'main'eta2022-02-232-0/+344
|\ \ \ | |_|/ |/| | | | | | | | add example of tcp hook See merge request tpo/core/arti!341
| * | add one more comment to hook-tcptrinity-1686a2022-02-231-0/+1
| | |
| * | examples/hook-tcp: add some comments, rework lifetimes a biteta2022-02-231-28/+73
| | | | | | | | | | | | | | | | | | Try to make the `hook-tcp` example a bit easier to read by adding/changing comments, and renaming the lifetimes for `async_trait`-generated trait methods.
| * | implement correct handling of connection close and add comment explaining ↵trinity-1686a2022-02-231-9/+54
| | | | | | | | | | | | goal of the example
| * | add drop on CustomTcpStream to catch disconnection without closetrinity-1686a2022-02-231-0/+13
| | |
| * | add example of tcp hooktrinity-1686a2022-02-232-0/+240
| | | | | | | | | | | | this required to make additional types public
* | | Merge remote-tracking branch 'origin/mr/340'Nick Mathewson2022-02-2313-121/+117
|\ \ \
| * | | Cleanups on !340 from @dizietIan Jackson2022-02-231-2/+8
| | | |
| * | | Make NoLock into BadApiUsage.Nick Mathewson2022-02-224-23/+15
| | | | | | | | | | | | | | | | | | | | | | | | To implement this, we had to refactor the tor_circmgr api for flushing state changes to disk, so that it checks if it has the lock, and only then tries to store.
| * | | Eliminate RequestedResourceAbsent kind.Nick Mathewson2022-02-226-30/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There was only one use of this, and it was in as-yet-unused relay-only code. Removing this type required refactoring the relay onion handshake code to use its own error type, which is probably clever anyway.
| * | | Fold NamespaceFull into BadApiUsage.Nick Mathewson2022-02-222-13/+1
| | | |
| * | | Rename RemoteNameError to RemoteHostNotFoundNick Mathewson2022-02-222-6/+6
| | | | | | | | | | | | | | | | | | | | This is a bit ugly but we need it to work around the problem where exits aren't always clear about _why_ a hostname lookup failed.
| * | | Replace TorNetworkError with TorDirectoryErrorNick Mathewson2022-02-222-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | This is still not as specific as we want; but there's already a TODO comment in tor-dirclient::err about fixing that at some point in the future.
| * | | Rename TorConnectionFailed to TorAccessFailedNick Mathewson2022-02-223-4/+4
| | | |