ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
ra8_tls_session_handle Struct Reference

Forward declaration of the pool slot type. More...

#include <ra8_tls.h>

Collaboration diagram for ra8_tls_session_handle:

Data Fields

ra8_tls_session_cfg_t cfg
 Cached caller configuration.
bool in_use
 Slot allocated.
mbedtls_ssl_context ssl
 Mbed TLS SSL context.
mbedtls_ssl_config config
 Mbed TLS SSL configuration block.
mbedtls_x509_crt ca
 Parsed trust anchor (if cfg.ca_pem).

Detailed Description

Forward declaration of the pool slot type.

Concrete pool slot backing one ra8_tls_session_t.

Defined inside ra8_tls.c; callers only ever see the typed pointer. The pool entry holds the mbedtls_ssl_context, mbedtls_ssl_config and BIO bookkeeping for a single session.

One slot per concurrent session. in_use doubles as the bitmap bit; the array index is the slot index [0, k_ra8_tls_max_sessions).

Invariant
in_use is true if and only if cfg.bio_send is non-NULL.

Definition at line 78 of file ra8_tls.c.

Field Documentation

◆ ca

mbedtls_x509_crt ra8_tls_session_handle::ca

Parsed trust anchor (if cfg.ca_pem).

Endif.

Definition at line 87 of file ra8_tls.c.

Referenced by internal_apply_verify_cfg(), internal_pool_reset(), internal_session_mbedtls_setup(), and ra8_tls_session_close().

◆ cfg

◆ config

mbedtls_ssl_config ra8_tls_session_handle::config

Mbed TLS SSL configuration block.

Definition at line 86 of file ra8_tls.c.

Referenced by internal_apply_verify_cfg(), internal_pool_reset(), internal_session_mbedtls_setup(), and ra8_tls_session_close().

◆ in_use

bool ra8_tls_session_handle::in_use

Slot allocated.

Definition at line 83 of file ra8_tls.c.

Referenced by internal_handle_valid(), internal_pool_acquire(), internal_pool_reset(), and ra8_tls_session_open().

◆ ssl

mbedtls_ssl_context ra8_tls_session_handle::ssl

The documentation for this struct was generated from the following file: