CertFindAttribute

Windows CE 3.0

This function finds the first attribute in the CRYPT_ATTRIBUTE array, as identified by its object identifier (OID). This function can be used in the processing of a decoded certificate request. A CERT_REQUEST_INFO structure is derived from a decoded certificate request. The rgAttribute array is retrieved from that structure and passed to this function in the rgAttr parameter. This function determines whether a particular attribute is in the array, and if so, returns a pointer to it.

PCRYPT_ATTRIBUTE WINAPI CertFindAttribute(
LPCSTR pszObjId,
DWORD cAttr,
CRYPT_ATTRIBUTE rgAttr[ ]
);

Parameters

pszObjId
[in] Pointer to the OID to use in the search.
cAttr
[in] Number of attributes in the rgAttr array.
rgAttr
[in] Array of CRYPT_ATTRIBUTE structures.

Return Values

Returns a pointer to the attribute, if one is found. Otherwise, NULL is returned.

Requirements

Runs on Versions Defined in Include Link to
Windows CE OS 3.0 or later Wincrypt.h   Crypt32.lib
Note   This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.

See Also

CertFindExtension, CertFindRDNAttr, CERT_REQUEST_INFO, CRYPT_ATTRIBUTE


 Last updated on Tuesday, July 13, 2004

© 1992-2000 Microsoft Corporation. All rights reserved.

Show: