Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

methodTsmStreamSecII.TLSDecodeData

function TLSDecodeData(var SessionID: TSessionID; Src, Data, Response: TStream; ErrorCode: PInteger = nil): Integer; overload;
Decrypt inbound TLS records from Src into application plaintext Data, writing any handshake/alert bytes that must be sent back into Response, for the session identified by SessionID. Feed socket-received bytes here as they arrive. The SessionID variant is used once a session id is known.
function TLSDecodeData(UserData: Pointer; Src, Data, Response: TStream; ErrorCode: PInteger = nil): Integer; overload;
Main per-connection pump keyed on UserData: decrypt inbound records from Src into Data and emit any protocol response into Response. If no session exists yet for UserData it transparently begins a server handshake (routes to TLSAccept), so a server can call this for every inbound chunk from first byte onward.
function TLSDecodeData(UserData: Pointer; Src, Data, EarlyData, Response: TStream; ErrorCode: PInteger = nil): Integer; overload;
TLS 1.3 (NEW, task 11): decode with a 0-RTT EarlyData destination.