propertyTsmCustomTLSClient.ALPNProtocols
property ALPNProtocols: TStringList read fALPNProtocols write SetALPNProtocols;
ALPN protocol names offered. The list IS ordered and is sent in this order, which RFC 7301 defines as the client's preference - but the choice is the SERVER's, and a server is free to ignore the order entirely. This library's own server side does ignore it: it walks its own registered protocols and takes the first the client also offered. So treat this as "any of these is acceptable to me", and read NegotiatedProtocol afterwards to learn what was actually agreed. Empty offers no ALPN extension at all. Setting it matters beyond protocol selection: ALPN plus SNI is the mitigation for TLS cross-protocol confusion (the ALPACA class of attack), where a connection meant for one protocol is redirected into a server speaking another. Most SMTP/IMAP/POP3 servers do not yet support it, so offering it is currently free rather than useful - but it costs nothing and becomes useful without any code change.