Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

methodTsmCustomTLSInternalServer.TLSClose

function TLSClose(const SessionID: TSessionID; Response: TStream; ErrorCode: PInteger = nil): Integer; overload;
Closes the TLS session identified by SessionID (send_alert close_notify/Close and release the session), for use with the SessionID-keyed overloads of TLSConnect/TLSEncodeData/TLSDecodeData - i.e. protocols that key a connection by TSessionID rather than by an application-owned UserData pointer. Works from either the client or the server side.
function TLSClose(UserData: Pointer; Response: TStream; ErrorCode: PInteger = nil): Integer; overload;
Closes the TLS session identified by the UserData pointer supplied when it was created (e.g. via TLSConnect/TLSAccept), for use with the UserData- keyed session overloads. Works from either the client or the server side.