<PackageReference Include="BouncyCastle.Cryptography" Version="2.4.0" />

TlsClient

public interface TlsClient : TlsPeer

If this client is offering TLS 1.3 or higher, this method may be called to determine for which groups a key share should be included in the initial ClientHello.

Return the TlsPskExternalexternal PSKs to offer in the ClientHello.

Return the session this client wants to resume, if any.

void Init(TlsClientContext context)

bool IsFallback()

RFC 5077 3.3. NewSessionTicket Handshake Message

void NotifySelectedCipherSuite(int selectedCipherSuite)

void NotifySelectedPsk(TlsPsk selectedPsk)

void NotifyServerVersion(ProtocolVersion selectedVersion)

void NotifySessionID(byte[] sessionID)

Notifies the client of the session_id sent in the ServerHello.

Notifies the client of the session that will be offered in ClientHello for resumption, if any.

void ProcessServerExtensions(IDictionary<int, byte[]> serverExtensions)

The protocol implementation validates that any server extensions received correspond to client extensions sent.