LoadLOTLFromFile

Security and signatures

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

Description

Loads an EU list of trusted lists from an XML file. The file is read whole under the MaxXMLBytes bound and then passes through the same verification pipeline as LoadLOTLFromString: pinned-certificate XML signature check, secure parse without DTDs or entities, structural validation of the pointer set, and the next-update expiry check controlled by AllowExpiredLists.

A successful load atomically replaces the pointer set, records the file name as the LOTL location and discards all loaded national services, which must be reloaded for the new snapshot.

Syntax

Delphi

Function TPDFlibEUTSLTrustSource.LoadLOTLFromFile(Const FileName: WideString): Boolean;

Parameters

FileNameName of the file holding the LOTL XML document; the read is bounded by MaxXMLBytes

Return values

TrueThe LOTL was verified and installed; GetLOTLLocation returns the file name
FalseThe file cannot be read, exceeds the size bound, or fails validation; GetLastError describes the failure

Remarks

A failed load leaves the previously loaded LOTL and its services untouched.

See also

TPDFlibEUTSLTrustSource, TPDFlibSignatureVerifier