Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

StreamSec.Quic.Ticket

Feature notes: Asynchronous QUIC server and HTTP/3 component

Classes, interfaces and records

classtQuicSessionTicket

What a client needs to resume a later QUIC connection to the same server: a TLS 1.3 session ticket, with the QUIC version, server name, ALPN, the server's transport parameters and your application context from the connection that received it. Get one from tQuicClient.CaptureResumptionTicket (or tHttp3QuicClient's); you own it. Hand it to ConfigureResumption of a new client before Start, which also tells whether it still fits; 0-RTT additionally needs ConfigureEarlyData. A ticket captured while DNSNameToCheck was empty (a server identified by its IP address, say) can never be used. Clone and Context return independent copies. Use one ticket from one thread at a time.

constructor Create(aTicket: TTls13ClientTicket; const aContext: tQuicResumptionContext);
Normally called by CaptureResumptionTicket. Raises eQuicError unless aTicket is a QUIC ticket whose server name and ALPN equal those of aContext; copies both, so the caller keeps ownership of aTicket.
destructor Destroy; override; function Clone: tQuicSessionTicket;
Delegates to tQuicSessionTicket.Create, forwarding fTicket and fContext, and returns its result.
function NewTLSOffer(aVersion: Cardinal; const aServerName: string; const aProtocols: TApplicationProtocols; const aApplicationContext: TBytes; aNow: TDateTime): TTls13ClientTicket;
Used by tQuicClient.ConfigureResumption. A copy of the TLS ticket when aVersion, aServerName and aApplicationContext equal the context's, aProtocols include its ALPN and the ticket is still valid at aNow (local time, as Now); nil otherwise. The caller owns the copy and frees it only after the TLS session it is given to is released.
property Context: tQuicResumptionContext read GetContext;