Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

methodTsmCustomTLSClient.StartTLS

procedure StartTLS;
Upgrades an open cleartext connection to TLS. The descendant has already exchanged whatever its protocol requires (STARTTLS / STLS / AUTH TLS) and read the affirmative reply - inside the BeginUpgradeDialogue window when RequireTLS is in force. SECURITY, and the reason this is not a two-line wrapper: everything buffered before the handshake is DISCARDED here. A server that pipelined data into the cleartext phase - the STARTTLS command-injection family - would otherwise have that data read back as though it had arrived inside the TLS session. A descendant must also treat any capability list learned in cleartext as untrusted and re-read it afterwards.