From acdd7ae2a14d966bf85098147e40860661921b76 Mon Sep 17 00:00:00 2001 From: Amine Khaldi Date: Sat, 19 May 2012 09:26:02 +0000 Subject: [PATCH] [MSSIGN32] * Sync to Wine 1.5.4. svn path=/trunk/; revision=56610 --- reactos/dll/win32/mssign32/CMakeLists.txt | 4 --- reactos/dll/win32/mssign32/mssign32.spec | 6 ++-- reactos/dll/win32/mssign32/mssign32_main.c | 34 ++++++++++++++++++++++ reactos/media/doc/README.WINE | 2 +- 4 files changed, 38 insertions(+), 8 deletions(-) diff --git a/reactos/dll/win32/mssign32/CMakeLists.txt b/reactos/dll/win32/mssign32/CMakeLists.txt index 8b2312221f5..c1087de206d 100644 --- a/reactos/dll/win32/mssign32/CMakeLists.txt +++ b/reactos/dll/win32/mssign32/CMakeLists.txt @@ -10,11 +10,7 @@ list(APPEND SOURCE ${CMAKE_CURRENT_BINARY_DIR}/mssign32.def) add_library(mssign32 SHARED ${SOURCE}) - set_module_type(mssign32 win32dll) - target_link_libraries(mssign32 wine) - add_importlibs(mssign32 msvcrt kernel32 ntdll) - add_cd_file(TARGET mssign32 DESTINATION reactos/system32 FOR all) diff --git a/reactos/dll/win32/mssign32/mssign32.spec b/reactos/dll/win32/mssign32/mssign32.spec index d28a912e089..249b36d301e 100644 --- a/reactos/dll/win32/mssign32/mssign32.spec +++ b/reactos/dll/win32/mssign32/mssign32.spec @@ -2,11 +2,11 @@ @ stub -private DllUnregisterServer @ stub FreeCryptProvFromCert @ stub GetCryptProvFromCert -@ stub PvkFreeCryptProv -@ stub PvkGetCryptProv +@ stdcall PvkFreeCryptProv(ptr wstr long wstr) +@ stdcall PvkGetCryptProv(ptr wstr wstr long wstr wstr ptr ptr ptr) @ stub PvkPrivateKeyAcquireContext @ stub PvkPrivateKeyAcquireContextA -@ stub PvkPrivateKeyAcquireContextFromMemory +@ stdcall PvkPrivateKeyAcquireContextFromMemory(wstr long ptr long ptr wstr ptr ptr ptr) @ stub PvkPrivateKeyAcquireContextFromMemoryA @ stub PvkPrivateKeyLoad @ stub PvkPrivateKeyLoadA diff --git a/reactos/dll/win32/mssign32/mssign32_main.c b/reactos/dll/win32/mssign32/mssign32_main.c index 6b403bdc98c..ef1065fe50e 100644 --- a/reactos/dll/win32/mssign32/mssign32_main.c +++ b/reactos/dll/win32/mssign32/mssign32_main.c @@ -24,7 +24,11 @@ #include "windef.h" #include "winbase.h" +#include "wincrypt.h" +#include "wine/debug.h" + +WINE_DEFAULT_DEBUG_CHANNEL(mssign); BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID lpv ) { @@ -40,3 +44,33 @@ BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID lpv ) } return TRUE; } + + +HRESULT WINAPI PvkGetCryptProv(HWND hwnd, LPCWSTR pwszCaption, LPCWSTR pwszCapiProvider, + DWORD dwProviderType, LPCWSTR pwszPvkFile, LPCWSTR pwszKeyContainerName, + DWORD *pdwKeySpec, LPWSTR *ppwszTmpContainer, HCRYPTPROV *phCryptProv) +{ + FIXME("%p %s %s %d %s %s %p %p %p stub\n", hwnd, debugstr_w(pwszCaption), debugstr_w(pwszCapiProvider), + dwProviderType, debugstr_w(pwszPvkFile), debugstr_w(pwszKeyContainerName), + pdwKeySpec, ppwszTmpContainer, phCryptProv); + + return E_FAIL; +} + +BOOL WINAPI PvkPrivateKeyAcquireContextFromMemory(LPCWSTR pwszProvName, DWORD dwProvType, + BYTE *pbData, DWORD cbData, HWND hwndOwner, LPCWSTR pwszKeyName, + DWORD *pdwKeySpec, HCRYPTPROV *phCryptProv, LPWSTR *ppwszTmpContainer) +{ + FIXME("%s %d %p %d %p %s %p %p %p stub\n", debugstr_w(pwszProvName), dwProvType, + pbData, cbData, hwndOwner, debugstr_w(pwszKeyName), pdwKeySpec, + phCryptProv, ppwszTmpContainer); + + return FALSE; +} + +void WINAPI PvkFreeCryptProv(HCRYPTPROV hProv, LPCWSTR pwszCapiProvider, DWORD dwProviderType, + LPWSTR pwszTmpContainer) +{ + FIXME("%08lx %s %d %s stub\n", hProv, debugstr_w(pwszCapiProvider), dwProviderType, + debugstr_w(pwszTmpContainer)); +} diff --git a/reactos/media/doc/README.WINE b/reactos/media/doc/README.WINE index a5bc918d9f3..935795ef4a3 100644 --- a/reactos/media/doc/README.WINE +++ b/reactos/media/doc/README.WINE @@ -109,7 +109,7 @@ reactos/dll/win32/msisip # Synced to Wine-1.3.37 reactos/dll/win32/msisys.ocx # Synced to Wine-1.3.37 reactos/dll/win32/msnet32 # Synced to Wine-1.3.37 reactos/dll/win32/msrle32 # Autosync -reactos/dll/win32/mssign32 # Synced to Wine-1.3.37 +reactos/dll/win32/mssign32 # Synced to Wine-1.5.4 reactos/dll/win32/mssip32 # Synced to Wine-1.3.37 reactos/dll/win32/mstask # Synced to Wine-1.3.37 reactos/dll/win32/msvcrt20 # Autosync