Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

methodTsmCustomTLSClient.GetChannelBinding

function GetChannelBinding(out aBinding: tBytes): Boolean; virtual;
THE RFC 9266 tls-exporter CHANNEL BINDING FOR THIS CONNECTION - the value an application protocol that authenticates INSIDE the tunnel binds that authentication to, so an answer produced on one TLS channel cannot be spent on another. The server end of the same idea is iAppTransport.ExportKeyingMaterial; this is the client end.

FAIL CLOSED. False, with aBinding empty, whenever there is no completed TLS 1.3 session to export from - not connected, TLS 1.2, handshake not finished, or the connection already gone. Every security-bearing caller must treat False as "no binding available" and refuse, never as "carry on unbound": unbound is the exact condition the binding exists to detect.

READ IT FRESH, EVERY TIME, AND DO NOT CACHE IT. The value belongs to one TLS connection. A transport that reconnects - a keep-alive that lapsed, a redirect that moved origin - is a DIFFERENT channel with a different binding, and a cached value would silently keep asserting the old one. Reading it again is what makes a moved connection visible.