- Sync with trunk r58248 to bring the latest changes from Amine (headers) and others...
[reactos.git] / dll / win32 / mssign32 / mssign32_main.c
1 /*
2 * MSSIGN32 implementation
3 *
4 * Copyright 2009 Austin English
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 */
20
21 #define WIN32_NO_STATUS
22
23 #include <config.h>
24
25 #include <stdarg.h>
26
27 #include <windef.h>
28 #include <winbase.h>
29 #include <wincrypt.h>
30
31 #include <wine/debug.h>
32
33 WINE_DEFAULT_DEBUG_CHANNEL(mssign);
34
35 BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID lpv )
36 {
37 switch(reason)
38 {
39 case DLL_WINE_PREATTACH:
40 return FALSE; /* prefer native version */
41 case DLL_PROCESS_ATTACH:
42 DisableThreadLibraryCalls( hinst );
43 break;
44 case DLL_PROCESS_DETACH:
45 break;
46 }
47 return TRUE;
48 }
49
50
51 HRESULT WINAPI PvkGetCryptProv(HWND hwnd, LPCWSTR pwszCaption, LPCWSTR pwszCapiProvider,
52 DWORD dwProviderType, LPCWSTR pwszPvkFile, LPCWSTR pwszKeyContainerName,
53 DWORD *pdwKeySpec, LPWSTR *ppwszTmpContainer, HCRYPTPROV *phCryptProv)
54 {
55 FIXME("%p %s %s %d %s %s %p %p %p stub\n", hwnd, debugstr_w(pwszCaption), debugstr_w(pwszCapiProvider),
56 dwProviderType, debugstr_w(pwszPvkFile), debugstr_w(pwszKeyContainerName),
57 pdwKeySpec, ppwszTmpContainer, phCryptProv);
58
59 return E_FAIL;
60 }
61
62 BOOL WINAPI PvkPrivateKeyAcquireContextFromMemory(LPCWSTR pwszProvName, DWORD dwProvType,
63 BYTE *pbData, DWORD cbData, HWND hwndOwner, LPCWSTR pwszKeyName,
64 DWORD *pdwKeySpec, HCRYPTPROV *phCryptProv, LPWSTR *ppwszTmpContainer)
65 {
66 FIXME("%s %d %p %d %p %s %p %p %p stub\n", debugstr_w(pwszProvName), dwProvType,
67 pbData, cbData, hwndOwner, debugstr_w(pwszKeyName), pdwKeySpec,
68 phCryptProv, ppwszTmpContainer);
69
70 return FALSE;
71 }
72
73 void WINAPI PvkFreeCryptProv(HCRYPTPROV hProv, LPCWSTR pwszCapiProvider, DWORD dwProviderType,
74 LPWSTR pwszTmpContainer)
75 {
76 FIXME("%08lx %s %d %s stub\n", hProv, debugstr_w(pwszCapiProvider), dwProviderType,
77 debugstr_w(pwszTmpContainer));
78 }