TlsConnectionBinding import { TlsConnectionBinding } from "destack:tls/binding"; Connection binding family. export interface TlsConnectionBinding { openTlsConnection(context: TlsContextHandle, socket: SocketHandle, serverName?: &'a readonly string | undefined): Result; handshakeTlsConnection(connection: TlsConnectionHandle): Result; readTlsConnection(connection: TlsConnectionHandle, buffer: &'a [uint8]): Result; writeTlsConnection(connection: TlsConnectionHandle, buffer: &'a readonly [uint8]): Result; shutdownTlsConnection(connection: TlsConnectionHandle): Result; closeTlsConnection(connection: TlsConnectionHandle): Result; readTlsAlpn(connection: TlsConnectionHandle): Result; readTlsPeerCertificatesPem(connection: TlsConnectionHandle): Result; exportTlsKeyingMaterial(connection: TlsConnectionHandle, label: &'a readonly string, context: &'b readonly [uint8], length: uint32): Result; readTlsResumptionState(connection: TlsConnectionHandle): Result; } language/library/src/tls/binding/connection.ds:29:131 Members openTlsConnection(context: TlsContextHandle, socket: SocketHandle, serverName?: &'a readonly string | undefined): Result Open one socket backed TLS connection. handshakeTlsConnection(connection: TlsConnectionHandle): Result Advance one TLS handshake state machine. readTlsConnection(connection: TlsConnectionHandle, buffer: &'a [uint8]): Result Read decrypted application bytes from one TLS connection. writeTlsConnection(connection: TlsConnectionHandle, buffer: &'a readonly [uint8]): Result Write plaintext application bytes to one TLS connection. shutdownTlsConnection(connection: TlsConnectionHandle): Result Shutdown one TLS connection. closeTlsConnection(connection: TlsConnectionHandle): Result Close one TLS connection. readTlsAlpn(connection: TlsConnectionHandle): Result Read negotiated ALPN protocol bytes. readTlsPeerCertificatesPem(connection: TlsConnectionHandle): Result Read the peer certificate chain in PEM encoding. exportTlsKeyingMaterial(connection: TlsConnectionHandle, label: &'a readonly string, context: &'b readonly [uint8], length: uint32): Result Export keying material bytes for one TLS connection. readTlsResumptionState(connection: TlsConnectionHandle): Result Return whether one connection resumed from cached state or ticket.