Share via


CertAlgIdToOID (Windows CE 5.0)

Send Feedback

This function converts a CryptoAPI algorithm identifier (ALG_ID) to an ASN.1 object identifier string.

LPCSTR WINAPI CertAlgIdToOID(DWORDdwAlgId);

Parameters

  • dwAlgId
    [in] Specifies the value to be converted to an object identifier (OID).

Return Values

Returns the NULL-terminated OID string or NULL if there is no OID string that corresponds to the algorithm identifier.

Example Code

// EXAMPLE CODE USING CertAlgIdToOID() to 
// convert the CALG_SHA algorithm identifier to an 
// object identifier string.
+
//--------------------------------------------------------------------
//  Declare variables. 
LPCSTR pszObjID;
if(pszObjID= CertAlgIdToOID(CALG_SHA))
{
   printf("The OID for CALG_SHA  is %s \n",pszObjID);
}
else
{
   printf("No object identifier string correlates to the ALG_ID. \n");
} 

Requirements

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

See Also

ALG_ID

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.