Skip to main content

Module net_tls

Module net_tls 

Source
Expand description

Blocking TLS/SSL session wrapper (mbedTLS).

Session wraps the oveRTOS TLS handle with automatic cleanup. After creating a session and completing the handshake over an existing crate::net::TcpStream, all I/O goes through Session::send and Session::recv.

Works in both heap and zero-heap modes.

§Async alternative

For async TLS on top of crate::async_net use the embedded-tls crate from crates.io. Smaller binary (no mbedTLS in the image) and the same cipher suites we ship here (AES-128/256-GCM, ChaCha20-Poly1305). See crate::async_net’s module docs for the full pairing recipe.

Structs§

Session
TLS session with RAII cleanup.
TlsConfig
TLS session configuration.