methodTsmX509TrustedCertificates.VerifyCAChain
function VerifyCAChain(const Cert: iCertificate; var Code: TCertStatusCode; PolicyMappings: TStrings = nil; AcceptedPolicies: TStrings = nil; NC: iNameConstraints = nil; AllowExpired: Boolean = False): Boolean;
Validates the full CA chain above Cert against the store's anchors, enforcing basic/name/policy constraints and revocation: each CA certificate is looked up in the CRLs this store holds and, unless the store that decides a revocation check has rpIgnore, in those of the stores it delegates to (TrustedCACertificates), with no OCSP request and no download. A CA that a list revokes, or that has expired, gives crcCAExpiredOrRevoked, unless the stores hold another certificate of that CA, which signed the certificate below it, with a way up that has neither. Pass in the acceptable policy sets / name constraints to tighten acceptance. Use to verify that a leaf's issuer chain is trusted and compliant.