2 * Copyright 2001 Rein Klazes
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
31 #include "wine/debug.h"
33 WINE_DEFAULT_DEBUG_CHANNEL(wintrust);
35 /***********************************************************************
36 * CryptCATAdminAcquireContext (WINTRUST.@)
38 BOOL WINAPI CryptCATAdminAcquireContext(HCATADMIN* catAdmin,
39 const GUID *sysSystem, DWORD dwFlags )
41 FIXME("%p %s %lx\n", catAdmin, debugstr_guid(sysSystem), dwFlags);
42 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
46 /***********************************************************************
47 * CryptCATAdminCalcHashFromFileHandle (WINTRUST.@)
49 BOOL WINAPI CryptCATAdminCalcHashFromFileHandle(HANDLE hFile, DWORD* pcbHash,
50 BYTE* pbHash, DWORD dwFlags )
52 FIXME("%p %p %p %lx\n", hFile, pcbHash, pbHash, dwFlags);
53 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
57 /***********************************************************************
58 * CryptCATAdminReleaseContext (WINTRUST.@)
60 BOOL WINAPI CryptCATAdminReleaseContext(HCATADMIN hCatAdmin, DWORD dwFlags )
62 FIXME("%p %lx\n", hCatAdmin, dwFlags);
63 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
67 /***********************************************************************
68 * WinVerifyTrust (WINTRUST.@)
70 LONG WINAPI WinVerifyTrust( HWND hwnd, GUID *ActionID, WINTRUST_DATA* ActionData )
72 static const GUID WINTRUST_ACTION_GENERIC_VERIFY_V2 = { 0xaac56b, 0xcd44, 0x11d0,
73 { 0x8c,0xc2,0x00,0xc0,0x4f,0xc2,0x95,0xee }};
75 FIXME("%p %s %p\n", hwnd, debugstr_guid(ActionID), ActionData);
77 /* Trust providers can be found at:
78 * HKLM\SOFTWARE\Microsoft\Cryptography\Providers\Trust\CertCheck\
80 * Process Explorer expects a correct implementation, so we
81 * return TRUST_E_PROVIDER_UNKNOWN.
83 * Girotel needs ERROR_SUCCESS.
85 * For now return TRUST_E_PROVIDER_UNKNOWN only when
86 * ActionID = WINTRUST_ACTION_GENERIC_VERIFY_V2.
90 if (IsEqualCLSID(ActionID, &WINTRUST_ACTION_GENERIC_VERIFY_V2))
91 return TRUST_E_PROVIDER_UNKNOWN;
96 /***********************************************************************
97 * WinVerifyTrustEx (WINTRUST.@)
99 HRESULT WINAPI WinVerifyTrustEx( HWND hwnd, GUID *ActionID,
100 WINTRUST_DATA* ActionData )
102 FIXME("%p %s %p\n", hwnd, debugstr_guid(ActionID), ActionData);
106 /***********************************************************************
107 * WTHelperGetProvSignerFromChain (WINTRUST.@)
109 CRYPT_PROVIDER_SGNR * WINAPI WTHelperGetProvSignerFromChain(
110 CRYPT_PROVIDER_DATA *pProvData, DWORD idxSigner, BOOL fCounterSigner,
111 DWORD idxCounterSigner)
113 FIXME("%p %ld %d %ld\n", pProvData, idxSigner, fCounterSigner,
118 /***********************************************************************
119 * WTHelperProvDataFromStateData (WINTRUST.@)
121 CRYPT_PROVIDER_DATA * WINAPI WTHelperProvDataFromStateData(HANDLE hStateData)
123 FIXME("%p\n", hStateData);
127 /***********************************************************************
128 * WintrustAddActionID (WINTRUST.@)
130 BOOL WINAPI WintrustAddActionID( GUID* pgActionID, DWORD fdwFlags,
131 CRYPT_REGISTER_ACTIONID* psProvInfo)
133 FIXME("%p %lx %p\n", pgActionID, fdwFlags, psProvInfo);
134 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
138 /***********************************************************************
139 * WintrustGetRegPolicyFlags (WINTRUST.@)
141 void WINAPI WintrustGetRegPolicyFlags( DWORD* pdwPolicyFlags )
143 FIXME("%p\n", pdwPolicyFlags);
147 /***********************************************************************
148 * WintrustSetRegPolicyFlags (WINTRUST.@)
150 BOOL WINAPI WintrustSetRegPolicyFlags( DWORD dwPolicyFlags)
152 FIXME("stub: %lx\n", dwPolicyFlags);
156 /***********************************************************************
157 * DllRegisterServer (WINTRUST.@)
159 HRESULT WINAPI DllRegisterServer(void)
165 /***********************************************************************
166 * DllUnregisterServer (WINTRUST.@)
168 HRESULT WINAPI DllUnregisterServer(void)