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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
32 #include "wine/debug.h"
34 WINE_DEFAULT_DEBUG_CHANNEL(wintrust);
37 /***********************************************************************
38 * DllMain (WINTRUST.@)
40 BOOL WINAPI DllMain( HINSTANCE inst, DWORD reason, LPVOID reserved )
44 case DLL_WINE_PREATTACH:
45 return FALSE; /* prefer native version */
46 case DLL_PROCESS_ATTACH:
47 DisableThreadLibraryCalls( inst );
53 /***********************************************************************
54 * TrustIsCertificateSelfSigned (WINTRUST.@)
56 BOOL WINAPI TrustIsCertificateSelfSigned( PCCERT_CONTEXT cert )
61 ret = CertCompareCertificateName(cert->dwCertEncodingType,
62 &cert->pCertInfo->Subject, &cert->pCertInfo->Issuer);
66 /***********************************************************************
67 * WinVerifyTrust (WINTRUST.@)
69 * Verifies an object by calling the specified trust provider.
72 * hwnd [I] Handle to a caller window.
73 * ActionID [I] Pointer to a GUID that identifies the action to perform.
74 * ActionData [I] Information used by the trust provider to verify the object.
78 * Failure: A TRUST_E_* error code.
81 * Trust providers can be found at:
82 * HKLM\SOFTWARE\Microsoft\Cryptography\Providers\Trust\
84 LONG WINAPI WinVerifyTrust( HWND hwnd, GUID *ActionID, LPVOID ActionData )
86 FIXME("%p %s %p\n", hwnd, debugstr_guid(ActionID), ActionData);
90 /***********************************************************************
91 * WinVerifyTrustEx (WINTRUST.@)
93 HRESULT WINAPI WinVerifyTrustEx( HWND hwnd, GUID *ActionID,
94 WINTRUST_DATA* ActionData )
96 FIXME("%p %s %p\n", hwnd, debugstr_guid(ActionID), ActionData);
100 /***********************************************************************
101 * WTHelperGetProvSignerFromChain (WINTRUST.@)
103 CRYPT_PROVIDER_SGNR * WINAPI WTHelperGetProvSignerFromChain(
104 CRYPT_PROVIDER_DATA *pProvData, DWORD idxSigner, BOOL fCounterSigner,
105 DWORD idxCounterSigner)
107 FIXME("%p %d %d %d\n", pProvData, idxSigner, fCounterSigner,
112 /***********************************************************************
113 * WTHelperProvDataFromStateData (WINTRUST.@)
115 CRYPT_PROVIDER_DATA * WINAPI WTHelperProvDataFromStateData(HANDLE hStateData)
117 FIXME("%p\n", hStateData);
121 /***********************************************************************
122 * WintrustLoadFunctionPointers (WINTRUST.@)
124 BOOL WINAPI WintrustLoadFunctionPointers( GUID* pgActionID,
125 CRYPT_PROVIDER_FUNCTIONS* pPfns )
127 FIXME("%s %p\n", debugstr_guid(pgActionID), pPfns);
128 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
132 /***********************************************************************
133 * WintrustGetRegPolicyFlags (WINTRUST.@)
135 void WINAPI WintrustGetRegPolicyFlags( DWORD* pdwPolicyFlags )
137 FIXME("%p\n", pdwPolicyFlags);
141 /***********************************************************************
142 * WintrustSetRegPolicyFlags (WINTRUST.@)
144 BOOL WINAPI WintrustSetRegPolicyFlags( DWORD dwPolicyFlags)
146 FIXME("stub: %x\n", dwPolicyFlags);