QSC Post Quantum Cryptographic Library 1.3.0.0 (C1)
A post quantum secure library written in Ansi C
Loading...
Searching...
No Matches
qsc_tls_connection Struct Reference

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

Detailed Description

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.

Field Documentation

◆ applicationbuffer

uint8_t applicationbuffer[QSC_TLS_MAX_RECORD_SIZE]

Inbound application-data scratch buffer.

◆ applicationbufferlen

size_t applicationbufferlen

Number of valid bytes in the application scratch buffer.

◆ client

Client-side TLS protocol state.

◆ handshakebuffer

uint8_t handshakebuffer[QSC_TLS_STREAM_BUFFER_MAX_SIZE]

Inbound handshake-message reassembly buffer.

◆ handshakebufferlen

size_t handshakebufferlen

Number of valid bytes in the handshake reassembly buffer.

◆ role

Active endpoint role.

◆ server

Server-side TLS protocol state.


The documentation for this struct was generated from the following file:
  • C:/Users/stepp/Documents/Visual Studio 2022/Projects/C/QSC/QSC/tlsengine.h