Share via


CertAddEnhancedKeyUsageIdentifier

This function adds a usage identifier OID to the certificate's extended key usage (EKU) property.

BOOL WINAPI CertAddEnhancedKeyUsageIdentifier(
  PCCERT_CONTEXT pCertContext,
  LPCSTR pszUsageIdentifier
);

Parameters

  • pCertContext
    [in] Pointer to the CERT_CONTEXT structure of the certificate for which the usage identifier is to be added.
  • pszUsageIdentifier
    [in] Pointer to the null-terminated string that contains the usage identifier OID to add.

Return Values

If the function succeeds, the return value is nonzero, or TRUE.

If the function fails, the return value is zero, or FALSE.

For extended error information, call the GetLastError function.

Requirements

OS Versions: Windows CE 3.0 and later.
Header: Wincrypt.h.
Link Library: Crypt32.lib.

See Also

CERT_CONTEXT

 Last updated on Thursday, April 08, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.