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