wintrust: Move the Crypt* functions to crypt.c.
[wine/dibdrv.git] / dlls / wintrust / crypt.c
blobbdbbda42182aa89840b6d04c06237c070385e652
1 /*
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
21 #include <stdarg.h>
23 #include "windef.h"
24 #include "winbase.h"
25 #include "wintrust.h"
26 #include "mscat.h"
28 #include "wine/debug.h"
30 WINE_DEFAULT_DEBUG_CHANNEL(wintrust);
32 /***********************************************************************
33 * CryptCATAdminAcquireContext (WINTRUST.@)
35 * Get a catalog administrator context handle.
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.
42 * RETURNS
43 * Success: TRUE. catAdmin contains the context handle.
44 * Failure: FAIL.
47 BOOL WINAPI CryptCATAdminAcquireContext(HCATADMIN* catAdmin,
48 const GUID *sysSystem, DWORD dwFlags )
50 FIXME("%p %s %lx\n", catAdmin, debugstr_guid(sysSystem), dwFlags);
51 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
52 return FALSE;
55 /***********************************************************************
56 * CryptCATAdminCalcHashFromFileHandle (WINTRUST.@)
58 BOOL WINAPI CryptCATAdminCalcHashFromFileHandle(HANDLE hFile, DWORD* pcbHash,
59 BYTE* pbHash, DWORD dwFlags )
61 FIXME("%p %p %p %lx\n", hFile, pcbHash, pbHash, dwFlags);
62 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
63 return FALSE;
66 /***********************************************************************
67 * CryptCATAdminEnumCatalogFromHash (WINTRUST.@)
69 HCATINFO WINAPI CryptCATAdminEnumCatalogFromHash(HCATADMIN hCatAdmin,
70 BYTE* pbHash,
71 DWORD cbHash,
72 DWORD dwFlags,
73 HCATINFO* phPrevCatInfo )
75 FIXME("%p %p %ld %ld %p\n", hCatAdmin, pbHash, cbHash, dwFlags, phPrevCatInfo);
76 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
77 return NULL;
80 /***********************************************************************
81 * CryptCATAdminReleaseContext (WINTRUST.@)
83 * Release a catalog administrator context handle.
85 * PARAMS
86 * catAdmin [I] Pointer to the context handle.
87 * dwFlags [I] Reserved.
89 * RETURNS
90 * Success: TRUE.
91 * Failure: FAIL.
94 BOOL WINAPI CryptCATAdminReleaseContext(HCATADMIN hCatAdmin, DWORD dwFlags )
96 FIXME("%p %lx\n", hCatAdmin, dwFlags);
97 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
98 return FALSE;
101 /***********************************************************************
102 * CryptCATOpen (WINTRUST.@)
104 HANDLE WINAPI CryptCATOpen(LPWSTR pwszFileName, DWORD fdwOpenFlags, HCRYPTPROV hProv,
105 DWORD dwPublicVersion, DWORD dwEncodingType)
107 FIXME("(%s, %ld, %ld, %ld, %ld) stub\n", debugstr_w(pwszFileName), fdwOpenFlags,
108 hProv, dwPublicVersion, dwEncodingType);
109 return 0;