CertOIDToAlgId function
Use the CryptFindOIDInfo function instead of this function because ALG_ID identifiers are no longer supported in CNG. Use the CRYPT_OID_INFO_OID_KEY value in the dwKeyType parameter of the CryptFindOIDInfo function instead.
Windows Server 2003 and Windows XP:
The CertOIDToAlgId function converts the Abstract Syntax Notation One (ASN.1) object identifier (OID) string to the CryptoAPI algorithm identifier (ALG_ID).
Syntax
DWORD WINAPI CertOIDToAlgId( _In_ LPCSTR pszObjId );
Parameters
- pszObjId [in]
-
Pointer to the ASN.1 OID to be converted to an algorithm identifier.
Return value
Returns the ALG_ID that corresponds to the object identifier (OID) or zero if no ALG_ID corresponds to the OID.
Examples
See Example C Program: Using CertOIDToAlgId and CertCompareIntegerBlob.
Requirements
|
Minimum supported client |
Windows XP [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2003 [desktop apps only] |
|
Header |
|
|
Library |
|
|
DLL |
|
See also