Skip to content

Latest commit

 

History

History
86 lines (65 loc) · 2.87 KB

nf-wincrypt-certfindattribute.md

File metadata and controls

86 lines (65 loc) · 2.87 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:wincrypt.CertFindAttribute
CertFindAttribute function (wincrypt.h)
The CertFindAttribute function finds the first attribute in the CRYPT_ATTRIBUTE array, as identified by its object identifier (OID).
CertFindAttribute
CertFindAttribute function [Security]
_crypto2_certfindattribute
security.certfindattribute
wincrypt/CertFindAttribute
security\certfindattribute.htm
security
99d690fb-ea85-4cb1-9fb0-bdb02e4ac50a
12/05/2018
CertFindAttribute, CertFindAttribute function [Security], _crypto2_certfindattribute, security.certfindattribute, wincrypt/CertFindAttribute
wincrypt.h
Windows
Windows XP [desktop apps \| UWP apps]
Windows Server 2003 [desktop apps \| UWP apps]
Crypt32.lib
Crypt32.dll
Windows
19H1
CertFindAttribute
wincrypt/CertFindAttribute
c++
APIRef
kbSyntax
DllExport
Crypt32.dll
CertFindAttribute

CertFindAttribute function

-description

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.

-parameters

-param pszObjId [in]

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

-param cAttr [in]

Number of attributes in the rgAttr array.

-param rgAttr [in]

Array of CRYPT_ATTRIBUTE structures.

-returns

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

-see-also

CertFindExtension

CertFindRDNAttr

Data Management Functions