CertFindExtension function
The CertFindExtension 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 CERT_INFO structure's rgExtension member is passed to CertFindExtension in the rgExtensions parameter. This function determines whether a particular extension is in the array, and if so, returns a pointer to it
Syntax
PCERT_EXTENSION WINAPI CertFindExtension( _In_ LPCSTR pszObjId, _In_ DWORD cExtensions, _In_ CERT_EXTENSION rgExtensions[] );
Parameters
- pszObjId [in]
-
A pointer to the object identifier (OID) to use in the search.
- cExtensions [in]
-
Number of extensions in the rgExtensions array.
- rgExtensions [in]
-
Array of CERT_EXTENSION structures.
Return value
Returns a pointer to the extension, if one is found. Otherwise, NULL is returned.
Requirements
|
Minimum supported client |
Windows XP [desktop apps | Windows Store apps] |
|---|---|
|
Minimum supported server |
Windows Server 2003 [desktop apps | Windows Store apps] |
|
Header |
|
|
Library |
|
|
DLL |
|
See also