THPDFSignaturePolicyValidationStatus Type

Reports how a CMS signer info's signature policy was parsed and checked against pinned expectations

Declaration

THPDFSignaturePolicyValidationStatus= (
  spvsNotPresent,
  spvsPresent,
  spvsUnknownHash,
  spvsHashVerified,
  spvsIdentifierMismatch,
  spvsHashMismatch,
  spvsUnsupportedHashAlgorithm
  );

Unit

HPDFSignVerify

Values

ValuePurpose
spvsNotPresentThe signer info carries no signature-policy attribute; where policy pinning is required this yields svSignaturePolicyMismatch
spvsPresentThe policy parsed cleanly and its digest is a genuine hash rather than the all-zero placeholder
spvsUnknownHashThe policy digest is the all-zero placeholder, so without the policy document the hash cannot be checked
spvsHashVerifiedThe digest tallied with the pinned expected hash or with the policy document hash supplied by the caller
spvsIdentifierMismatchThe policy OID differs from ExpectedSignaturePolicyOID as set in THPDFCMSVerifyOptions
spvsHashMismatchThe digest differs from the pinned hash or the document hash, or the hash is unknown whilst hash pinning is active
spvsUnsupportedHashAlgorithmThe policy hash algorithm OID maps to no supported implementation, yet a document hash check was requested

Usage notes

Related APIs