ktls
ktls copied to clipboard
Using rustls transparently on non-linux platforms?
I've been wondering if it would be a pain to transparently use rustls
for platforms that can't support kernel TLS offloading?
It would make it easier to develop on multiple platforms and still have it highly optimized on linux.
Any thoughts? I don't know if this is a good idea at all...
I was going to say "hring does this" but it actually doesn't: it does have a "maybe-uring" crate that uses io_uring on Linux and "regular tokio" on macOS/Windows (making it possible to develop hring on those nice Apple Silicon laptops), but the hring-bingo-ktls sample is Linux-only.
I guess it would be fairly easy to come up with a "maybe-ktls" crate? There'd be a bunch of overhead, sure...
I'd like to fully fix #24 firstbecause it might involve interface changes (just need to land https://github.com/nix-rust/nix/pull/2065 )