Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

IsExplicitTLS

function IsExplicitTLS(aPort: Integer): Boolean;
THE CONVENTIONAL ANSWER FOR A PORT, AND NOTHING MORE.

True for the ports whose registered protocol begins in cleartext and is upgraded in band: 21 FTP, 25 and 587 SMTP, 110 POP3, 119 and 433 NNTP, 143 IMAP, 389 LDAP, 5222 XMPP.

IT IS ADVISORY AND ProbeTlsChain NEVER CALLS IT. A port number is a convention, not a fact about the server listening on it; this encodes the convention so a caller who wants it does not have to, and leaves the caller free to know better. Where the two disagree, the caller is right and this is wrong - which is exactly why the probe takes the answer as a parameter.