summaryrefslogtreecommitdiff
path: root/crates/tor-rtcompat/src/opaque.rs
Commit message (Collapse)AuthorAgeFilesLines
* tls: Support export keying material (RFC 5705)David Goulet2024-06-181-0/+4
| | | | | | | | | | | | | Add a function to get the keying material as detailed by RFC 5705. Because native-tls doesn't have such support, there is a place holder panic!() for now. This means that for the forseable future, relay would only work with rustls until we figure out a solution for native-tls. Closes #1432 Signed-off-by: David Goulet <[email protected]>
* tor-rtcompat: implement_opaque_runtime impls CoarseTimeProviderIan Jackson2024-03-251-0/+7
| | | | Now all our non-mock runtime types impl CoarseTimeProvider.
* add udp to runtimetrinity-1686a2022-03-141-0/+10
|
* tor-rtcompat: Provide TLS wrapping for all streamsIan Jackson2022-02-241-3/+5
| | | | | | | | 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.
* Rename `SpawnBlocking` trait to `BlockOn`.Nick Mathewson2022-01-261-1/+1
| | | | | This avoids a future confusion with the new `SpawnBlocking` trait in async_executors v0.5, and better describes what the trait provides.
* Refactor Runtimes to use separate TLS implementations internally.Nick Mathewson2022-01-191-0/+6
| | | | | This will make it easier to implement them using some other TLS provider as well, without having to duplicate all of our code.
* Add a macro to help with opaque Runtime wrappers.Nick Mathewson2022-01-191-0/+69
We're soon going to have our different Runtime types be built as CompoundRuntime instances. We don't want to expose that detail, though, so we'll use this macro to make them implement the right traits.