LoadTSLFromFile
security and signatures
Requires the Enterprise edition — declared in the Enterprise unit PDFlibEUTSL, which other editions do not include
Description
Loads one national trusted service list from an XML file for the LOTL pointer at PointerIndex. The file is read under the MaxXMLBytes bound and then passes through the same pipeline as LoadTSLFromString: signature verification against the pointer certificates, EU generic type and territory checks, and the next-update expiry check.
Services parsed from the file replace the previously loaded services of the same territory.
Syntax
Delphi
Function TPDFlibEUTSLTrustSource.LoadTSLFromFile(PointerIndex: Integer; Const FileName: WideString): Boolean;Parameters
| PointerIndex | Zero-based index of the LOTL pointer whose signing certificates and territory the document must match |
|---|---|
| FileName | Name of the file holding the national TSL XML document |
Return values
| True | The trusted list was verified and installed |
|---|---|
| False | The pointer index is out of range, the file cannot be read or exceeds the size bound, or validation failed; GetLastError describes the failure |
Remarks
A failed load leaves the previously loaded services of that territory in place.