Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

methodTsmCustomTLSInternalServer.TLSDecodeData

function TLSDecodeData(var SessionID: TSessionID; Src, Data, Response: TStream; ErrorCode: PInteger = nil): Integer; overload;
Feeds one TLS record (Src) through the SessionID-keyed session, writing decrypted application data to Data and any protocol response (e.g. handshake continuation, alerts) to Response. Works from either the client or the server side, whichever role the session was created with.
function TLSDecodeData(UserData: Pointer; Src, Data, Response: TStream; ErrorCode: PInteger = nil): Integer; overload;
Feeds one TLS record (Src) through the UserData-keyed session, writing decrypted application data to Data and any protocol response to Response. If no session exists yet for UserData, one is implicitly accepted as a server session (see TLSAccept) - so on a server this call alone can drive the whole handshake-then-data lifecycle for a connection; on the client side a session must already exist (created via TLSConnect) before data can be decoded.
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 stream. Server-side only: same as the four-stream TLSDecodeData overload, but any 0-RTT early application data is routed to EarlyData separately from ordinary 1-RTT Data, mirroring the EarlyData overload of TLSAccept.