openssl_ktls/
lib.rs

1//! This crate provides KTLS compatible openssl SslStream implementation.
2//!
3//! We cannot use the openssl::ssl::SslStream directly here
4//! because its BIOs are not compatible with KTLS.
5//! The BIO blocks the ctrl messages that needs to be passed down to
6//! the next BIO layer.
7
8// Only support linux
9// Raw fd does not exist on windows.
10#![cfg(target_os = "linux")]
11
12pub mod ffi;
13
14pub mod option;
15mod stream;
16pub use stream::SslStream;
17
18#[cfg(feature = "tokio")]
19pub mod tokio_stream;
20#[cfg(feature = "tokio")]
21pub type TokioSslStream = tokio_stream::SslStream;
22
23pub mod error;