CTL_USAGE_MATCH structure (wincrypt.h)

The CTL_USAGE_MATCH structure provides parameters for finding certificate trust lists (CTL) used to build a certificate chain.

Syntax

typedef struct _CTL_USAGE_MATCH {
  DWORD     dwType;
  CTL_USAGE Usage;
} CTL_USAGE_MATCH, *PCTL_USAGE_MATCH;

Members

dwType

Determines the kind of issuer matching to be done. In AND logic, the certificate must meet all criteria. In OR logic, the certificate must meet at least one of the criteria. The following codes are defined to determine the logic used in the match.

Value Meaning
USAGE_MATCH_TYPE_AND
AND logic
USAGE_MATCH_TYPE_OR
OR logic
 

Default usage match logic is USAGE_MATCH_TYPE_AND.

Usage

CTL_USAGE structure that includes an array of object identifiers (OIDs) a CTL must match in order to be valid.

Requirements

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