Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

methodtSmtpSession.SecureChannelEstablished

procedure SecureChannelEstablished(const aTransportInfo: string);
THE TRANSPORT HAS COMPLETED THE STARTTLS HANDSHAKE. Call it once, and only after OnStartTLSRequested fired and the handshake actually succeeded; a failed handshake must close the connection instead (RFC 3207 sec.4 permits either, and closing removes any question about what state the session is in).

IT DISCARDS EVERY CLAIM THE CLIENT MADE IN CLEARTEXT - the greeting name, the authenticated identity, any transaction in progress - because RFC 3207 sec.4.2 requires exactly that: the server MUST discard knowledge obtained from the client that was not obtained from the TLS negotiation itself. ResetTransaction is NOT sufficient here; it deliberately PRESERVES the session identity, which is right for RSET and wrong for this. No banner is re-sent: the client's next move is a fresh EHLO.