crypt32(6/11): Add CryptMsgControl stub
Juan Lang
juan.lang at gmail.com
Mon Jul 30 14:19:05 CDT 2007
--Juan
-------------- next part --------------
From b701d5b2dfac79bdd02a1b9fe7889c6af7b44354 Mon Sep 17 00:00:00 2001
From: Juan Lang <juanlang at juan.corp.google.com>
Date: Mon, 30 Jul 2007 12:07:19 -0700
Subject: [PATCH] Add CryptMsgControl stub
---
dlls/crypt32/crypt32.spec | 2 +-
dlls/crypt32/msg.c | 8 ++++++++
include/wincrypt.h | 2 +-
3 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/dlls/crypt32/crypt32.spec b/dlls/crypt32/crypt32.spec
index cf85e7b..c7c3c8d 100644
--- a/dlls/crypt32/crypt32.spec
+++ b/dlls/crypt32/crypt32.spec
@@ -141,7 +141,7 @@
@ stdcall CryptMemRealloc(ptr long)
@ stub CryptMsgCalculateEncodedLength
@ stdcall CryptMsgClose(ptr)
-@ stub CryptMsgControl
+@ stdcall CryptMsgControl(ptr long long ptr)
@ stub CryptMsgCountersign
@ stub CryptMsgCountersignEncoded
@ stdcall CryptMsgDuplicate(ptr)
diff --git a/dlls/crypt32/msg.c b/dlls/crypt32/msg.c
index 7e5a080..388821b 100644
--- a/dlls/crypt32/msg.c
+++ b/dlls/crypt32/msg.c
@@ -1994,3 +1994,11 @@ BOOL WINAPI CryptMsgGetParam(HCRYPTMSG h
pvData, pcbData);
return msg->get_param(hCryptMsg, dwParamType, dwIndex, pvData, pcbData);
}
+
+BOOL WINAPI CryptMsgControl(HCRYPTMSG hCryptMsg, DWORD dwFlags,
+ DWORD dwCtrlType, const void *pvCtrlPara)
+{
+ FIXME("(%p, %08x, %d, %p): stub\n", hCryptMsg, dwFlags, dwCtrlType,
+ pvCtrlPara);
+ return TRUE;
+}
diff --git a/include/wincrypt.h b/include/wincrypt.h
index eb0cd16..8ae00d6 100644
--- a/include/wincrypt.h
+++ b/include/wincrypt.h
@@ -3822,7 +3822,7 @@ DWORD WINAPI CryptMsgCalculateEncodedLen
BOOL WINAPI CryptMsgClose(HCRYPTMSG hCryptMsg);
-DWORD WINAPI CryptMsgControl(HCRYPTMSG hCryptMsg, DWORD dwFlags,
+BOOL WINAPI CryptMsgControl(HCRYPTMSG hCryptMsg, DWORD dwFlags,
DWORD dwCtrlType, const void *pvCtrlPara);
BOOL WINAPI CryptMsgCountersign(HCRYPTMSG hCryptMsg, DWORD dwIndex,
--
1.4.1
More information about the wine-patches
mailing list