|
ProtoCore v0.0.1
Deterministic, zero-heap network stack for embedded targets
|
Deterministic TLS engine: mbedTLS over a static memory pool (PC_ENABLE_TLS). More...
Go to the source code of this file.
Deterministic TLS engine: mbedTLS over a static memory pool (PC_ENABLE_TLS).
Wraps mbedTLS as a server-side TLS layer that keeps the library's zero-heap guarantee: mbedTLS is pointed at a fixed BSS arena via MBEDTLS_MEMORY_BUFFER_ALLOC_C (no system heap), per-connection ssl_context lives in BSS, the RNG is the ESP32 hardware CSPRNG, and the transport BIO is bridged directly to the existing lwIP tcp_pcb + per-connection rx ring - so there is no socket layer and no extra task. The handshake is pumped from the single handle() loop.
ESP32/Arduino only - mbedTLS is not part of the native build. The header compiles everywhere (the functions are no-op stubs unless PC_ENABLE_TLS and ARDUINO are both set) so call sites need no extra guards.
Lifecycle per connection:
Definition in file tls.h.