From 628d773ebde49a948d7060188741212f58ca4350 Mon Sep 17 00:00:00 2001 From: Juan Lang Date: Mon, 28 Jul 2008 13:26:09 -0700 Subject: [PATCH] crypt32: Add stub for CryptHashMessage. --- dlls/crypt32/crypt32.spec | 2 +- dlls/crypt32/message.c | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/dlls/crypt32/crypt32.spec b/dlls/crypt32/crypt32.spec index b7f45d06b16..a5ef37dc2bf 100644 --- a/dlls/crypt32/crypt32.spec +++ b/dlls/crypt32/crypt32.spec @@ -129,7 +129,7 @@ @ stdcall CryptGetOIDFunctionAddress(long long str long ptr ptr) @ stdcall CryptGetOIDFunctionValue(long str str wstr ptr ptr ptr) @ stdcall CryptHashCertificate(long long long ptr long ptr ptr) -@ stub CryptHashMessage +@ stdcall CryptHashMessage(ptr long long ptr ptr ptr ptr ptr ptr) @ stdcall CryptHashPublicKeyInfo(long long long long ptr ptr ptr) @ stub CryptHashToBeSigned @ stub CryptImportPKCS8 diff --git a/dlls/crypt32/message.c b/dlls/crypt32/message.c index 1a329696db4..5e8270897c5 100644 --- a/dlls/crypt32/message.c +++ b/dlls/crypt32/message.c @@ -212,3 +212,15 @@ BOOL WINAPI CryptVerifyMessageSignature(PCRYPT_VERIFY_MESSAGE_PARA pVerifyPara, TRACE("returning %d\n", ret); return ret; } + +BOOL WINAPI CryptHashMessage(PCRYPT_HASH_MESSAGE_PARA pHashPara, + BOOL fDetachedHash, DWORD cToBeHashed, const BYTE *rgpbToBeHashed[], + DWORD rgcbToBeHashed[], BYTE *pbHashedBlob, DWORD *pcbHashedBlob, + BYTE *pbComputedHash, DWORD *pcbComputedHash) +{ + FIXME("(%p, %d, %d, %p, %p, %p, %p, %p, %p): stub\n", pHashPara, + fDetachedHash, cToBeHashed, rgpbToBeHashed, rgcbToBeHashed, pbHashedBlob, + pcbHashedBlob, pbComputedHash, pcbComputedHash); + SetLastError(ERROR_CALL_NOT_IMPLEMENTED); + return FALSE; +} -- 2.11.4.GIT