CERT_CHAIN_ELEMENT structure (wincrypt.h)

The CERT_CHAIN_ELEMENT structure is a single element in a simple certificate chain. Each element has a pointer to a certificate context, a pointer to a structure that indicates the error status and information status of the certificate, and a pointer to a structure that indicates the revocation status of the certificate.

Syntax

typedef struct _CERT_CHAIN_ELEMENT {
  DWORD                 cbSize;
  PCCERT_CONTEXT        pCertContext;
  CERT_TRUST_STATUS     TrustStatus;
  PCERT_REVOCATION_INFO pRevocationInfo;
  PCERT_ENHKEY_USAGE    pIssuanceUsage;
  PCERT_ENHKEY_USAGE    pApplicationUsage;
  LPCWSTR               pwszExtendedErrorInfo;
} CERT_CHAIN_ELEMENT, *PCERT_CHAIN_ELEMENT;

Members

cbSize

Size of this structure in bytes.

pCertContext

A pointer to a certificate context.

TrustStatus

Structure indicating the status of the certificate. The structure includes an error status code and an information status code. For information about status code values, see CERT_TRUST_STATUS.

pRevocationInfo

A pointer to a CERT_REVOCATION_INFO structure with information on the revocation status of the certificate. If revocation checking was not enabled, pRevocationInfo is NULL.

pIssuanceUsage

A pointer to a CERT_ENHKEY_USAGE structure. If NULL, any issuance policy is acceptable.

pApplicationUsage

A pointer to a CERT_ENHKEY_USAGE structure. If NULL, any enhanced key usage is acceptable.

pwszExtendedErrorInfo

A pointer to a null-terminated wide character string that contains extended error information. If NULL, there is no extended error information.

Requirements

Requirement Value
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Header wincrypt.h

See also

CERT_REVOCATION_INFO

CERT_SIMPLE_CHAIN

CERT_TRUST_STATUS