TPLSignatureSourceReport
Security and signatures
Description
TPLSignatureSourceReport is what PLAuditSignatureSource returns. Every call fills it, including the failure paths: Status starts as sssIncomplete, both flags as False, the lengths as 0, the offsets as -1 and Reason as an empty string, so a partially completed audit is still readable.
Status becomes sssVerified only when the revision binding and the Contents ownership checks both passed. sssInvalid is reserved for a selected Contents token that provably does not match the gap bytes; a missing anchor, unsupported filter or exhausted budget yields sssIncomplete. A verified status says nothing about the CMS, certificate trust or the signature value.
Syntax
Delphi
TPLSignatureSourceReport = record
Status: TPLSignatureSourceStatus;
ContentsOwnerChecked, RevisionChecked: Boolean;
SignedLength, RevisionXRefOffset, ContentsStart, ContentsEnd: Int64;
Reason: AnsiString;
end;Fields
| Status | sssVerified, sssInvalid or sssIncomplete: the overall verdict of the source audit |
|---|---|
| ContentsOwnerChecked | True once the locator path reached a direct hexadecimal Contents token in the signed revision |
| RevisionChecked | True once the current and signed cross-reference chains were parsed and bound to their revision tails |
| SignedLength | ByteRange[2] + ByteRange[3], the end of the signed revision; 0 when the range was rejected |
| RevisionXRefOffset | Offset of the cross-reference section that starts the signed revision, or -1 when it was not located |
| ContentsStart | Physical offset of the opening < of the selected Contents token, or -1 |
| ContentsEnd | Physical offset just past the closing > of that token, or -1 |
| Reason | English diagnostic for an incomplete audit, or the message describing a verified or invalid result |
Remarks
The flags record progress rather than the verdict: an incomplete report can have RevisionChecked set to True when only the locator failed, which tells the caller where to look next.
ContentsStart and ContentsEnd are the exact token boundaries compared against the excluded gap, so they double as diagnostics or as a place to re-read the token.
The offsets are physical file positions, not object numbers, and they refer to the selected revision rather than to the current revision when the signature is historical.