aboutsummaryrefslogtreecommitdiff
path: root/crates/tor-rtcompat/src/impls/native_tls.rs
Commit message (Collapse)AuthorAgeFilesLines
* rtcompat: Return certificates as Cow.Nick Mathewson2026-02-021-4/+7
|
* rtcompat: Clarify None returns from own_certificate.Nick Mathewson2026-01-291-0/+5
|
* rustls: add an error for unimplemented tls server support.Nick Mathewson2026-01-291-3/+4
|
* rtcompat: new server-related members on TlsProvider trait.Nick Mathewson2026-01-291-2/+13
| | | | | These are as yet unimplemented; there's a stub type for the providers (nativetls) that won't actually have them.
* rtcompat: new own_certificate method on CertifiedConn traitNick Mathewson2026-01-291-0/+4
|
* opentelemetry: Add some instrument macros.Wesley Aptekar-Cassels2025-09-241-0/+2
| | | | | I've added these in places that are useful for the debugging that I've been doing.
* smol: Implement smol in tor-rtcompatNiel Duysters2025-08-211-1/+4
|
* *: use std::io::Error::other in many placesNick Mathewson2025-05-151-5/+3
| | | | | | | The `IoError::other` function is an easier way to say `IoError::new(IoErrorKind::Other, ...)`. It's been around since 1.74, but clippy started warning about the more verbose version in 1.87.
* tor-rtcompat: Big invasive change adding StreamOps bound everywhere.Gabriela Moldovan2025-01-151-2/+2
| | | | | | This is unfortunately necessary, because after the channel handshake, we need to give the channel reactor a `StreamOps` handle to the underlying stream.
* tor-rtcompat: Implement StreamOps for TLS stream types.Gabriela Moldovan2025-01-151-1/+11
|
* tls: Support export keying material (RFC 5705)David Goulet2024-06-181-0/+16
| | | | | | | | | | | | | 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]>
* rtcompat: Set disable_built_in_roots With native_tls.Nick Mathewson2024-06-131-0/+4
| | | | | | | When using openssl on Linux, this saves us about 1.4 MB due to not loading the default CAs and CRLs (which Tor doesn't use.) Addresses part of #1027.
* clippy: consequential rustfmtIan Jackson2024-01-021-3/+1
|
* clippy: Use infallible callsIan Jackson2024-01-021-2/+1
| | | | Resolves clippy complaints about needless fallible conversions.
* fix doc-feature synchrotrinity-1686a2022-10-161-1/+4
|
* add feature annotation not added by doc_auto_cfgtrinity-1686a2022-08-241-0/+1
|
* rt-compat: Make all the individual runtime traits Clone+Send etc.Ian Jackson2022-06-081-1/+1
| | | | | | | | This will make it much more convenient for code that only wants one of these traits (or a subset of them). This is a good thing to support because it will allow us to use a ZST in places that do not need an actual async runtime handle (typically, the runtime handle is needed only for spawn).
* Replace manual Default, and abolish new, in tor-rtcompatIan Jackson2022-03-021-13/+1
| | | | The Default impl was the only call site for new()
* tor-rtcompat: Provide TLS wrapping for all streamsIan Jackson2022-02-241-10/+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.
* Make the native-tls crate optional.Nick Mathewson2022-01-261-0/+1
| | | | | | | | | | | This commit puts the native-tls crate behind a feature. The feature is off-by-default in the tor-rtcompat crate, but can be enabled either from arti or arti-client. There is an included script that I used to test that tor-rtcompat could build and run its tests with all subsets of its features. Closes #300
* Limit the inner types in tor-rtcompat that have to implement CloneNick Mathewson2022-01-261-10/+0
| | | | | If we implement our own clone on CompoundRuntime, we no longer need Clone implementations on our TlsProvider implementations.
* Refactor native_tls usage into its own moduleNick Mathewson2022-01-251-0/+115
This change uses the async-native-tls crate for everything, and deletes some duplicated code.