MSDN Library

CertAlgIdToOID

Windows CE 3.0

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

LPCSTR WINAPI CertAlgIdToOID(
DWORD dwAlgId
);

Parameters

dwAlgId
[in] 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.

Examples

// 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

Runs on Versions Defined in Include Link to
Windows CE OS 3.0 or later Wincrypt.h   Crypt32.lib
Note   This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.

See Also

ALG_ID


 Last updated on Tuesday, July 13, 2004

© 1992-2000 Microsoft Corporation. All rights reserved.

Show:
© 2016 Microsoft