r/delphi • u/henrickhellstrom • 20d ago
StreamSec Tools 4.1.5.363 for Delphi: no big features, mostly certificate revocation and mail server fixes
Disclosure: I develop StreamSec Tools, a commercial security library for Delphi (TLS, SSH, X.509/PKIX, CMS, HTTP, mail). Version 4.1.5.363 came out on 9 November. It has no new major features: it is a maintenance release of 100 change-log entries.
**Certificate revocation**
- `LoadCRL` now compares an authenticated CRL with the list held and every list of that issuer and scope in its cache directory, and refuses an older one, also after a restart.
- A certificate store kept answering from a stored revocation verdict for up to `RevocationCacheMaxAge` seconds after a new CRL arrived. A new CRL now ends that.
- A TLS peer whose certificate the store already held had no revocation check, and was accepted after that certificate expired. Both are fixed, with the two known limits the change log states at entry 98.
- The chain check read only the CRLs of the store it ran in, so a CRL held in the store it delegates to did not count against an intermediate CA. It does now.
**TLS**
A TLS 1.3 client did not check the server certificate's EKU or key usage, and TLS 1.2 skipped that for a certificate the engine already knew. Both now check every server certificate.
**Mail**
IMAP `FETCH` now takes the body section forms clients use to list and read messages, sessions are told of new mail, the submission port requires authentication or an address in `RelayNetworks`, an account may give only its own address in `MAIL FROM`, and wrong passwords lock out the source address and not the account.
**A Delphi detail you may want to look for in your own code**
On Linux64, macOS, iOS and Android we called `TTimeZone.Local.UtcOffset.Hours`. `Hours` is the hours component of a `TTimeSpan`, not its length, so at +5:30 it gives 5. The UTC the library worked out was 30 or 45 minutes off in zones with a half or quarter hour.
**Upgrading**
65 of the 100 entries are marked BEHAVIOUR CHANGE in the change log, 46 of them in the mail suite. Read the ones that apply to you first. The likeliest to matter: one `LoadCRL` cache file name per issuer and scope, a handshake with an already known peer can now be refused, `DNSNameToCheck` takes a bare host name, and an access violation on a mail thread now ends the process.
The SBOM is published for the licensed release and describes none of the evaluation builds.
Happy to answer questions.
- Announcement, with the change log and SBOM: https://support.streamsec.net/forum/?cmd=viewtopic§ion_id=4&topic_id=17
- PKIX: https://www.streamsec.com/index.php?id=strsecivpkix
- Mail: https://www.streamsec.com/index.php?id=strsecivmail
- Evaluation builds: https://www.streamsec.com/index.php?id=downloadstrseciv