EN
Ce contenu n’est pas disponible dans votre langue. Voici la version anglaise.

CertFindAttribute function

The CertFindAttribute 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.

Syntax


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

Parameters

pszObjId [in]

A pointer to the object identifier (OID) to use in the search.

cAttr [in]

Number of attributes in the rgAttr array.

rgAttr [in]

Array of CRYPT_ATTRIBUTE structures.

Return value

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

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Wincrypt.h

Library

Crypt32.lib

DLL

Crypt32.dll

See also

Data Management Functions
CertFindExtension
CertFindRDNAttr

 

 

Ajouts de la communauté

AJOUTER
Afficher:
© 2014 Microsoft