THPDFSignaturePolicyValidationStatus Type

Reports how the signature policy of a CMS signer info 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; with policy pinning required this yields svSignaturePolicyMismatch
spvsPresentThe policy was parsed and its digest is a real hash rather than the all-zero placeholder
spvsUnknownHashThe policy digest is the all-zero placeholder, so the hash cannot be checked without the policy document
spvsHashVerifiedThe digest matched the pinned expected hash or the caller-supplied policy document hash
spvsIdentifierMismatchThe policy OID differs from ExpectedSignaturePolicyOID in THPDFCMSVerifyOptions
spvsHashMismatchThe digest differs from the pinned hash or document hash, or the hash is unknown while hash pinning is active
spvsUnsupportedHashAlgorithmThe policy hash algorithm OID does not map to a supported implementation while a document hash check was requested

Usage notes

Related APIs