Unified TLS engine connection context. More...
#include <tlsengine.h>
Data Fields | |
| union { | |
| qsc_tls_client_state client | |
| qsc_tls_server_state server | |
| } | state |
| qsc_tls_role | role |
| uint8_t | handshakebuffer [QSC_TLS_STREAM_BUFFER_MAX_SIZE] |
| size_t | handshakebufferlen |
| uint8_t | applicationbuffer [QSC_TLS_MAX_RECORD_SIZE] |
| size_t | applicationbufferlen |
Unified TLS engine connection context.
This structure stores the active TLS endpoint state, the endpoint role, and bounded scratch buffers used for inbound handshake reassembly and application record processing. The union member selected by role is initialized by either qsc_tls_engine_initialize_client() or qsc_tls_engine_initialize_server().
The caller must treat this structure as engine-owned after initialization and must not modify internal fields directly. The structure shall be disposed with qsc_tls_engine_dispose() when no longer required.
| uint8_t applicationbuffer[QSC_TLS_MAX_RECORD_SIZE] |
Inbound application-data scratch buffer.
| size_t applicationbufferlen |
Number of valid bytes in the application scratch buffer.
| qsc_tls_client_state client |
Client-side TLS protocol state.
| uint8_t handshakebuffer[QSC_TLS_STREAM_BUFFER_MAX_SIZE] |
Inbound handshake-message reassembly buffer.
| size_t handshakebufferlen |
Number of valid bytes in the handshake reassembly buffer.
| qsc_tls_role role |
Active endpoint role.
| qsc_tls_server_state server |
Server-side TLS protocol state.