Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This function finds the first extension in the CERT_EXTENSION array, as identified by its object identifier (OID). This function can be used in the processing of a decoded certificate. A CERT_INFO structure is derived from a decoded certificate. The rgExtension array is retrieved from that structure and passed to this function in the rgExtension parameter. This function determines whether a particular extension is in the array, and if so, returns a pointer to it.
PCERT_EXTENSION WINAPI CertFindExtension(LPCSTRpszObjId,DWORDcExtensions,CERT_EXTENSIONrgExtensions[ ]);
Parameters
- pszObjId
[in] Pointer to the OID to use in the search. - cExtensions
[in] Number of extensions in the rgExtensions array. - rgExtensions
[in] Array of CERT_EXTENSION structures.
Return Values
This function returns a pointer to the extension, if one is found. Otherwise, NULL is returned.
Requirements
OS Versions: Windows CE 3.0 and later.
Header: Wincrypt.h.
Link Library: Crypt32.lib.
See Also
CertFindAttribute | CertFindRDNAttr | CERT_EXTENSION | CERT_INFO
Send Feedback on this topic to the authors