RefreshAllTSLs

Security and signatures

Requires the Enterprise edition — declared in the Enterprise unit PDFlibEUTSL, which other editions do not include

Description

Downloads and validates every national trusted service list referenced by the current LOTL pointers in one all-or-nothing pass. Each download follows the same rules as LoadTSLFromURL: HTTPS scheme check under RequireHTTPS, NetworkTimeoutMS timeout, MaxXMLBytes size bound, signature verification against the pointer certificates, and the territory and expiry checks.

Only when every list passes are the new services installed as one set; a single network, scheme or signature failure aborts the refresh with the previous verified service set untouched. The revision advances exactly once on a successful refresh.

Syntax

Delphi

Function TPDFlibEUTSLTrustSource.RefreshAllTSLs: Integer;

Return values

Number of lists refreshedEvery pointer was downloaded and validated; the value equals GetPointerCount at the start of the pass
0The LOTL has no pointers, or one of the downloads or validations failed; GetLastError identifies the failing step

Remarks

If the LOTL configuration changes while the refresh is running, the pass aborts instead of mixing services from two snapshots.

The result equals the pointer count rather than a per-list success count, because a partial refresh is never committed.

See also

TPDFlibEUTSLTrustSource, TPDFlibSignatureVerifier