ProtoCore v1.0.16
Deterministic, zero-heap network stack for embedded targets
Loading...
Searching...
No Matches
tls.h File Reference

The TLS connection resource (RFC 8446), and the no-op surface a build without TLS sees. More...

#include "protocore_config.h"

Go to the source code of this file.

Detailed Description

The TLS connection resource (RFC 8446), and the no-op surface a build without TLS sees.

This file owns the connection: ::TlsConn, its configuration and its handshake phase. The layers that act on it are beside it - handshake/ drives the handshake (RFC 8446 sec 4), record/ frames for it (sec 5), key_schedule/ derives its secrets (sec 7.1).

The portable TLS 1.3 arm (PROTOCORE_ENABLE_TLS) is the implementation; a caller reaches it through ::TlsConnection. The slot-indexed protocore_tls_* calls below are no-ops, so a call site that predates the portable arm still compiles and needs no extra guards.

Definition in file tls.h.