CertAddEnhancedKeyUsageIdentifier function
The CertAddEnhancedKeyUsageIdentifier function adds a usage identifier object identifier (OID) to the enhanced key usage (EKU) extended property of the certificate.
Syntax
BOOL WINAPI CertAddEnhancedKeyUsageIdentifier( _In_ PCCERT_CONTEXT pCertContext, _In_ LPCSTR pszUsageIdentifier );
Parameters
- pCertContext [in]
-
A pointer to the CERT_CONTEXT of the certificate for which the usage identifier is to be added.
- pszUsageIdentifier [in]
-
Specifies the usage identifier OID to add.
Return value
If the function succeeds, the function returns nonzero (TRUE).
If the function fails, it returns zero (FALSE). For extended error information, call GetLastError.
Examples
For an example that uses this function, see Example C Program: Getting and Setting Certificate Properties.
Requirements
|
Minimum supported client |
Windows XP [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2003 [desktop apps only] |
|
Header |
|
|
Library |
|
|
DLL |
|
See also