Hans Leidekker : crypt32: Add stub implementations of CryptProtectMemory and CryptUnprotectMemory.

Alexandre Julliard julliard at wine.codeweavers.com
Thu Aug 6 10:15:43 CDT 2015


Module: wine
Branch: master
Commit: a8baf4d3ef3410d55857dd42d50303ed2618a656
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=a8baf4d3ef3410d55857dd42d50303ed2618a656

Author: Hans Leidekker <hans at codeweavers.com>
Date:   Wed Aug  5 17:12:44 2015 +0200

crypt32: Add stub implementations of CryptProtectMemory and CryptUnprotectMemory.

---

 dlls/crypt32/crypt32.spec |  2 ++
 dlls/crypt32/main.c       | 12 ++++++++++++
 2 files changed, 14 insertions(+)

diff --git a/dlls/crypt32/crypt32.spec b/dlls/crypt32/crypt32.spec
index 66d831b..e639d7c 100644
--- a/dlls/crypt32/crypt32.spec
+++ b/dlls/crypt32/crypt32.spec
@@ -163,6 +163,7 @@
 @ stub CryptMsgVerifyCountersignatureEncoded
 @ stdcall CryptMsgVerifyCountersignatureEncodedEx(ptr long ptr long ptr long long ptr long ptr)
 @ stdcall CryptProtectData(ptr wstr ptr ptr ptr long ptr)
+@ stdcall CryptProtectMemory(ptr long long)
 @ stdcall CryptQueryObject(long ptr long long long ptr ptr ptr ptr ptr ptr)
 @ stdcall CryptRegisterDefaultOIDFunction(long str long wstr)
 @ stdcall CryptRegisterOIDFunction(long str str wstr str)
@@ -186,6 +187,7 @@
 @ stdcall CryptSignMessage(ptr long long ptr ptr ptr ptr)
 @ stub CryptSignMessageWithKey
 @ stdcall CryptUnprotectData(ptr ptr ptr ptr ptr long ptr)
+@ stdcall CryptUnprotectMemory(ptr long long)
 @ stdcall CryptUnregisterDefaultOIDFunction(long str wstr)
 @ stdcall CryptUnregisterOIDFunction(long str str)
 @ stub CryptUnregisterOIDInfo
diff --git a/dlls/crypt32/main.c b/dlls/crypt32/main.c
index c4f6c78..241a1d9 100644
--- a/dlls/crypt32/main.c
+++ b/dlls/crypt32/main.c
@@ -250,3 +250,15 @@ ASN1encoding_t WINAPI I_CryptGetAsn1Encoder(HCRYPTASN1MODULE x)
     FIXME("(%08x): stub\n", x);
     return NULL;
 }
+
+BOOL WINAPI CryptProtectMemory(void *data, DWORD len, DWORD flags)
+{
+    FIXME("(%p %u %08x): stub\n", data, len, flags);
+    return TRUE;
+}
+
+BOOL WINAPI CryptUnprotectMemory(void *data, DWORD len, DWORD flags)
+{
+    FIXME("(%p %u %08x): stub\n", data, len, flags);
+    return TRUE;
+}




More information about the wine-cvs mailing list