Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
quic_session_state Struct Reference

Resumable QUIC client session state. More...

#include <zephyr/net/quic.h>

Data Fields

uint16_t version
 Structure format version, must be QUIC_SESSION_STATE_VERSION.
uint16_t cipher_suite
 TLS 1.3 cipher suite associated with the resumable state.
uint32_t ticket_lifetime
 Ticket lifetime in seconds from NewSessionTicket.
uint32_t ticket_age_add
 Random ticket_age_add value from NewSessionTicket.
uint32_t max_early_data_size
 Early-data allowance from NewSessionTicket: 0 when 0-RTT is not permitted, otherwise the RFC 9001 4.6.1 sentinel 0xffffffff (in QUIC the actual early-data limit is governed by transport parameters).
uint64_t issue_time_ms
 Local monotonic timestamp in milliseconds when the ticket was received.
uint16_t ticket_len
 Length of the opaque ticket identity.
uint16_t psk_len
 Length of the derived resumption PSK.
uint8_t ticket [256U]
 Opaque ticket identity from NewSessionTicket.
uint8_t psk [48U]
 Derived resumption PSK used for the next resumed handshake.
struct quic_session_transport_params transport_params
 Remembered peer transport parameters associated with the ticket.

Detailed Description

Resumable QUIC client session state.

The structure is exported with getsockopt() and imported with setsockopt() using ZSOCK_QUIC_SO_SESSION_STATE on a connection socket.

Field Documentation

◆ cipher_suite

uint16_t quic_session_state::cipher_suite

TLS 1.3 cipher suite associated with the resumable state.

◆ issue_time_ms

uint64_t quic_session_state::issue_time_ms

Local monotonic timestamp in milliseconds when the ticket was received.

◆ max_early_data_size

uint32_t quic_session_state::max_early_data_size

Early-data allowance from NewSessionTicket: 0 when 0-RTT is not permitted, otherwise the RFC 9001 4.6.1 sentinel 0xffffffff (in QUIC the actual early-data limit is governed by transport parameters).

◆ psk

uint8_t quic_session_state::psk[48U]

Derived resumption PSK used for the next resumed handshake.

◆ psk_len

uint16_t quic_session_state::psk_len

Length of the derived resumption PSK.

◆ ticket

uint8_t quic_session_state::ticket[256U]

Opaque ticket identity from NewSessionTicket.

◆ ticket_age_add

uint32_t quic_session_state::ticket_age_add

Random ticket_age_add value from NewSessionTicket.

◆ ticket_len

uint16_t quic_session_state::ticket_len

Length of the opaque ticket identity.

◆ ticket_lifetime

uint32_t quic_session_state::ticket_lifetime

Ticket lifetime in seconds from NewSessionTicket.

◆ transport_params

struct quic_session_transport_params quic_session_state::transport_params

Remembered peer transport parameters associated with the ticket.

◆ version

uint16_t quic_session_state::version

Structure format version, must be QUIC_SESSION_STATE_VERSION.


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