comctl32: Update Polish translation.
[wine] / dlls / wintrust / crypt.c
1 /*
2  * WinTrust Cryptography functions
3  *
4  * Copyright 2006 James Hawkins
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 #include <stdarg.h>
22
23 #include "windef.h"
24 #include "winbase.h"
25 #include "wintrust.h"
26 #include "mscat.h"
27
28 #include "wine/debug.h"
29
30 WINE_DEFAULT_DEBUG_CHANNEL(wintrust);
31
32 /***********************************************************************
33  *      CryptCATAdminAcquireContext (WINTRUST.@)
34  *
35  * Get a catalog administrator context handle.
36  *
37  * PARAMS
38  *   catAdmin  [O] Pointer to the context handle.
39  *   sysSystem [I] Pointer to a GUID for the needed subsystem.
40  *   dwFlags   [I] Reserved.
41  *
42  * RETURNS
43  *   Success: TRUE. catAdmin contains the context handle.
44  *   Failure: FAIL.
45  *
46  */
47 BOOL WINAPI CryptCATAdminAcquireContext(HCATADMIN* catAdmin,
48                     const GUID *sysSystem, DWORD dwFlags )
49 {
50     FIXME("%p %s %lx\n", catAdmin, debugstr_guid(sysSystem), dwFlags);
51     SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
52     return FALSE;
53 }
54
55 /***********************************************************************
56  *             CryptCATAdminCalcHashFromFileHandle (WINTRUST.@)
57  */
58 BOOL WINAPI CryptCATAdminCalcHashFromFileHandle(HANDLE hFile, DWORD* pcbHash,
59                                                 BYTE* pbHash, DWORD dwFlags )
60 {
61     FIXME("%p %p %p %lx\n", hFile, pcbHash, pbHash, dwFlags);
62     SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
63     return FALSE;
64 }
65
66 /***********************************************************************
67  *             CryptCATAdminEnumCatalogFromHash (WINTRUST.@)
68  */
69 HCATINFO WINAPI CryptCATAdminEnumCatalogFromHash(HCATADMIN hCatAdmin,
70                                                  BYTE* pbHash,
71                                                  DWORD cbHash,
72                                                  DWORD dwFlags,
73                                                  HCATINFO* phPrevCatInfo )
74 {
75     FIXME("%p %p %ld %ld %p\n", hCatAdmin, pbHash, cbHash, dwFlags, phPrevCatInfo);
76     SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
77     return NULL;
78 }
79
80 /***********************************************************************
81  *      CryptCATAdminReleaseContext (WINTRUST.@)
82  *
83  * Release a catalog administrator context handle.
84  *
85  * PARAMS
86  *   catAdmin  [I] Pointer to the context handle.
87  *   dwFlags   [I] Reserved.
88  *
89  * RETURNS
90  *   Success: TRUE.
91  *   Failure: FAIL.
92  *
93  */
94 BOOL WINAPI CryptCATAdminReleaseContext(HCATADMIN hCatAdmin, DWORD dwFlags )
95 {
96     FIXME("%p %lx\n", hCatAdmin, dwFlags);
97     SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
98     return FALSE;
99 }
100
101 /***********************************************************************
102  *      CryptCATClose  (WINTRUST.@)
103  */
104 BOOL WINAPI CryptCATClose(HANDLE hCatalog)
105 {
106     FIXME("(%p) stub\n", hCatalog);
107     return TRUE;
108 }
109
110 /***********************************************************************
111  *      CryptCATEnumerateMember  (WINTRUST.@)
112  */
113 CRYPTCATMEMBER *WINAPI CryptCATEnumerateMember(HANDLE hCatalog, CRYPTCATMEMBER* pPrevMember)
114 {
115     FIXME("(%p, %p) stub\n", hCatalog, pPrevMember);
116     return NULL;
117 }
118
119 /***********************************************************************
120  *      CryptCATOpen  (WINTRUST.@)
121  */
122 HANDLE WINAPI CryptCATOpen(LPWSTR pwszFileName, DWORD fdwOpenFlags, HCRYPTPROV hProv,
123                            DWORD dwPublicVersion, DWORD dwEncodingType)
124 {
125     FIXME("(%s, %ld, %ld, %ld, %ld) stub\n", debugstr_w(pwszFileName), fdwOpenFlags,
126           hProv, dwPublicVersion, dwEncodingType);
127     return 0;
128 }