Commit f52d0a6c authored by Juan Lang's avatar Juan Lang Committed by Alexandre Julliard

Use correct names when loading registered OID functions.

parent 458cb289
...@@ -451,7 +451,7 @@ BOOL WINAPI CryptEncodeObject(DWORD dwCertEncodingType, LPCSTR lpszStructType, ...@@ -451,7 +451,7 @@ BOOL WINAPI CryptEncodeObject(DWORD dwCertEncodingType, LPCSTR lpszStructType,
/* Try registered DLL first.. */ /* Try registered DLL first.. */
pCryptEncodeObject = pCryptEncodeObject =
(CryptEncodeObjectFunc)CRYPT_GetFunc(dwCertEncodingType, (CryptEncodeObjectFunc)CRYPT_GetFunc(dwCertEncodingType,
lpszStructType, "CryptEncodeObject", &lib); lpszStructType, CRYPT_OID_ENCODE_OBJECT_FUNC, &lib);
if (pCryptEncodeObject) if (pCryptEncodeObject)
{ {
ret = pCryptEncodeObject(dwCertEncodingType, lpszStructType, ret = pCryptEncodeObject(dwCertEncodingType, lpszStructType,
...@@ -2385,7 +2385,7 @@ BOOL WINAPI CryptEncodeObjectEx(DWORD dwCertEncodingType, LPCSTR lpszStructType, ...@@ -2385,7 +2385,7 @@ BOOL WINAPI CryptEncodeObjectEx(DWORD dwCertEncodingType, LPCSTR lpszStructType,
debugstr_a(lpszStructType)); debugstr_a(lpszStructType));
if (!encodeFunc) if (!encodeFunc)
encodeFunc = (CryptEncodeObjectExFunc)CRYPT_GetFunc(dwCertEncodingType, encodeFunc = (CryptEncodeObjectExFunc)CRYPT_GetFunc(dwCertEncodingType,
lpszStructType, "CryptEncodeObjectEx", &lib); lpszStructType, CRYPT_OID_ENCODE_OBJECT_EX_FUNC, &lib);
if (encodeFunc) if (encodeFunc)
ret = encodeFunc(dwCertEncodingType, lpszStructType, pvStructInfo, ret = encodeFunc(dwCertEncodingType, lpszStructType, pvStructInfo,
dwFlags, pEncodePara, pvEncoded, pcbEncoded); dwFlags, pEncodePara, pvEncoded, pcbEncoded);
...@@ -2417,7 +2417,7 @@ BOOL WINAPI CryptDecodeObject(DWORD dwCertEncodingType, LPCSTR lpszStructType, ...@@ -2417,7 +2417,7 @@ BOOL WINAPI CryptDecodeObject(DWORD dwCertEncodingType, LPCSTR lpszStructType,
/* Try registered DLL first.. */ /* Try registered DLL first.. */
pCryptDecodeObject = pCryptDecodeObject =
(CryptDecodeObjectFunc)CRYPT_GetFunc(dwCertEncodingType, (CryptDecodeObjectFunc)CRYPT_GetFunc(dwCertEncodingType,
lpszStructType, "CryptDecodeObject", &lib); lpszStructType, CRYPT_OID_DECODE_OBJECT_FUNC, &lib);
if (pCryptDecodeObject) if (pCryptDecodeObject)
{ {
ret = pCryptDecodeObject(dwCertEncodingType, lpszStructType, ret = pCryptDecodeObject(dwCertEncodingType, lpszStructType,
...@@ -5509,7 +5509,7 @@ BOOL WINAPI CryptDecodeObjectEx(DWORD dwCertEncodingType, LPCSTR lpszStructType, ...@@ -5509,7 +5509,7 @@ BOOL WINAPI CryptDecodeObjectEx(DWORD dwCertEncodingType, LPCSTR lpszStructType,
debugstr_a(lpszStructType)); debugstr_a(lpszStructType));
if (!decodeFunc) if (!decodeFunc)
decodeFunc = (CryptDecodeObjectExFunc)CRYPT_GetFunc(dwCertEncodingType, decodeFunc = (CryptDecodeObjectExFunc)CRYPT_GetFunc(dwCertEncodingType,
lpszStructType, "CryptDecodeObjectEx", &lib); lpszStructType, CRYPT_OID_DECODE_OBJECT_EX_FUNC, &lib);
if (decodeFunc) if (decodeFunc)
ret = decodeFunc(dwCertEncodingType, lpszStructType, pbEncoded, ret = decodeFunc(dwCertEncodingType, lpszStructType, pbEncoded,
cbEncoded, dwFlags, pDecodePara, pvStructInfo, pcbStructInfo); cbEncoded, dwFlags, pDecodePara, pvStructInfo, pcbStructInfo);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment