Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

This structure provides parameters for finding issuer certificates used to build a certificate chain.

Syntax

typedef struct _CERT_USAGE_MATCH {
  DWORD 
dwType;
  CERT_ENHKEY_USAGE 
Usage;
} CERT_USAGE_MATCH, *PCERT_USAGE_MATCH;

Members

dwType

Type of issuer matching to be done. In ANDlogic, the certificate must meet all criteria. In ORlogic, the certificate must meet at least one of the criteria. The following table shows defined codes that determine the logic used in the match.

Code Description

USAGE_MATCH_TYPE_AND

AND logic

USAGE_MATCH_TYPE_OR

OR logic

The default usage match logic is USAGE_MATCH_TYPE_AND.

Usage

CERT_ENHKEY_USAGEstructure, which is the same as a CTL_USAGEstructure, that includes an array of certificate OIDs that a certificate must match in order to be valid.

Requirements

Header wincrypt.h
Windows Embedded CE Windows CE 3.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

CTL_USAGE
CTL_USAGE