TsgcQUICClient › Methods › ClearSSLQUIC
Releases the TLS 1.3 session and the cached secure-connection state of the QUIC connection.
procedure ClearSSLQUIC;
ClearSSLQUIC discards the secure layer that the client keeps for the current endpoint: it deletes the cached QUIC connection held by the TLS handler and frees the associated OpenSSL objects. Use it when you want the next Connect to negotiate a completely fresh TLS 1.3 handshake instead of reusing whatever state is still cached, for example after changing SSLQUICOptions or after switching to a different Host.
Call it while the client is disconnected. It is not needed in the normal connect and disconnect cycle, the component clears the state itself when the component is destroyed.
This member is currently available in the Delphi/C++Builder implementation only. The .NET implementation builds on System.Net.Quic, which manages its own TLS state and exposes no equivalent.
oClient.Disconnect;
oClient.ClearSSLQUIC;
oClient.SSLQUICOptions.RootCertFile := 'other-ca.pem';
oClient.SSLQUICOptions.VerifyCertificate := True;
oClient.Connect;