IX509CertificateRequestCmc2::CheckCertificateSignature method (certenroll.h)

The CheckCertificateSignature method verifies the signature for a specified signer.

Syntax

HRESULT CheckCertificateSignature(
  [in] ISignerCertificate *pSignerCertificate,
  [in] VARIANT_BOOL       ValidateCertificateChain
);

Parameters

[in] pSignerCertificate

Pointer to an ISignerCertificate interface that represents a signing certificate.

[in] ValidateCertificateChain

A Boolean value that specifies whether to also verify the certificate chain. This parameter can be NULL.

Return value

If the function succeeds, the function returns S_OK.

If the function fails, it returns an HRESULT value that indicates the error. Possible values include, but are not limited to, those in the following table. For a list of common error codes, see Common HRESULT Values.

Return code/value Description
E_POINTER
The pSignerCertificate parameter cannot be NULL.
CERTSRV_E_PROPERTY_EMPTY
A signer certificate cannot be found.

Requirements

Requirement Value
Minimum supported client Windows 7 [desktop apps only]
Minimum supported server Windows Server 2008 R2 [desktop apps only]
Target Platform Windows
Header certenroll.h

See also

IX509CertificateRequestCmc2