2 * WinTrust Cryptography functions
4 * Copyright 2006 James Hawkins
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.
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.
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
29 #include "wine/debug.h"
31 WINE_DEFAULT_DEBUG_CHANNEL(wintrust);
33 /***********************************************************************
34 * CryptCATAdminAcquireContext (WINTRUST.@)
36 * Get a catalog administrator context handle.
39 * catAdmin [O] Pointer to the context handle.
40 * sysSystem [I] Pointer to a GUID for the needed subsystem.
41 * dwFlags [I] Reserved.
44 * Success: TRUE. catAdmin contains the context handle.
48 BOOL WINAPI CryptCATAdminAcquireContext(HCATADMIN* catAdmin,
49 const GUID *sysSystem, DWORD dwFlags )
51 FIXME("%p %s %x\n", catAdmin, debugstr_guid(sysSystem), dwFlags);
53 if (catAdmin) *catAdmin = (HCATADMIN)0xdeadbeef;
57 /***********************************************************************
58 * CryptCATAdminCalcHashFromFileHandle (WINTRUST.@)
60 BOOL WINAPI CryptCATAdminCalcHashFromFileHandle(HANDLE hFile, DWORD* pcbHash,
61 BYTE* pbHash, DWORD dwFlags )
63 FIXME("%p %p %p %x\n", hFile, pcbHash, pbHash, dwFlags);
65 if (pbHash && pcbHash) memset(pbHash, 0, *pcbHash);
69 /***********************************************************************
70 * CryptCATAdminEnumCatalogFromHash (WINTRUST.@)
72 HCATINFO WINAPI CryptCATAdminEnumCatalogFromHash(HCATADMIN hCatAdmin,
76 HCATINFO* phPrevCatInfo )
78 FIXME("%p %p %d %d %p\n", hCatAdmin, pbHash, cbHash, dwFlags, phPrevCatInfo);
82 /***********************************************************************
83 * CryptCATAdminReleaseContext (WINTRUST.@)
85 * Release a catalog administrator context handle.
88 * catAdmin [I] Context handle.
89 * dwFlags [I] Reserved.
96 BOOL WINAPI CryptCATAdminReleaseContext(HCATADMIN hCatAdmin, DWORD dwFlags )
98 FIXME("%p %x\n", hCatAdmin, dwFlags);
102 /***********************************************************************
103 * CryptCATAdminRemoveCatalog (WINTRUST.@)
105 * Remove a catalog file.
108 * catAdmin [I] Context handle.
109 * pwszCatalogFile [I] Catalog file.
110 * dwFlags [I] Reserved.
117 BOOL WINAPI CryptCATAdminRemoveCatalog(HCATADMIN hCatAdmin, LPCWSTR pwszCatalogFile, DWORD dwFlags)
119 FIXME("%p %s %x\n", hCatAdmin, debugstr_w(pwszCatalogFile), dwFlags);
120 return DeleteFileW(pwszCatalogFile);
123 /***********************************************************************
124 * CryptCATClose (WINTRUST.@)
126 BOOL WINAPI CryptCATClose(HANDLE hCatalog)
128 FIXME("(%p) stub\n", hCatalog);
132 /***********************************************************************
133 * CryptCATEnumerateMember (WINTRUST.@)
135 CRYPTCATMEMBER *WINAPI CryptCATEnumerateMember(HANDLE hCatalog, CRYPTCATMEMBER* pPrevMember)
137 FIXME("(%p, %p) stub\n", hCatalog, pPrevMember);
141 /***********************************************************************
142 * CryptCATOpen (WINTRUST.@)
144 HANDLE WINAPI CryptCATOpen(LPWSTR pwszFileName, DWORD fdwOpenFlags, HCRYPTPROV hProv,
145 DWORD dwPublicVersion, DWORD dwEncodingType)
147 FIXME("(%s, %d, %ld, %d, %d) stub\n", debugstr_w(pwszFileName), fdwOpenFlags,
148 hProv, dwPublicVersion, dwEncodingType);
152 /***********************************************************************
153 * CryptSIPCreateIndirectData (WINTRUST.@)
155 BOOL WINAPI CryptSIPCreateIndirectData(SIP_SUBJECTINFO* pSubjectInfo, DWORD* pcbIndirectData,
156 SIP_INDIRECT_DATA* pIndirectData)
158 FIXME("(%p %p %p) stub\n", pSubjectInfo, pcbIndirectData, pIndirectData);
163 /***********************************************************************
164 * CryptSIPGetSignedDataMsg (WINTRUST.@)
166 BOOL WINAPI CryptSIPGetSignedDataMsg(SIP_SUBJECTINFO* pSubjectInfo, DWORD* pdwEncodingType,
167 DWORD dwIndex, DWORD* pcbSignedDataMsg, BYTE* pbSignedDataMsg)
169 FIXME("(%p %p %d %p %p) stub\n", pSubjectInfo, pdwEncodingType, dwIndex,
170 pcbSignedDataMsg, pbSignedDataMsg);
175 /***********************************************************************
176 * CryptSIPPutSignedDataMsg (WINTRUST.@)
178 BOOL WINAPI CryptSIPPutSignedDataMsg(SIP_SUBJECTINFO* pSubjectInfo, DWORD pdwEncodingType,
179 DWORD* pdwIndex, DWORD cbSignedDataMsg, BYTE* pbSignedDataMsg)
181 FIXME("(%p %d %p %d %p) stub\n", pSubjectInfo, pdwEncodingType, pdwIndex,
182 cbSignedDataMsg, pbSignedDataMsg);
187 /***********************************************************************
188 * CryptSIPRemoveSignedDataMsg (WINTRUST.@)
190 BOOL WINAPI CryptSIPRemoveSignedDataMsg(SIP_SUBJECTINFO* pSubjectInfo,
193 FIXME("(%p %d) stub\n", pSubjectInfo, dwIndex);
198 /***********************************************************************
199 * CryptSIPVerifyIndirectData (WINTRUST.@)
201 BOOL WINAPI CryptSIPVerifyIndirectData(SIP_SUBJECTINFO* pSubjectInfo,
202 SIP_INDIRECT_DATA* pIndirectData)
204 FIXME("(%p %p) stub\n", pSubjectInfo, pIndirectData);