mshtml: Remove menus that are in shdoclc.dll.
[wine/wine64.git] / dlls / wintrust / wintrust_main.c
blob41c97d9337f7e272ba554009fdeea008397d4d67
1 /*
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
19 #include "config.h"
21 #include <stdarg.h>
23 #include "windef.h"
24 #include "winbase.h"
25 #include "winerror.h"
26 #include "guiddef.h"
27 #include "wintrust.h"
28 #include "softpub.h"
29 #include "mscat.h"
30 #include "objbase.h"
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 )
42 switch(reason)
44 case DLL_WINE_PREATTACH:
45 return FALSE; /* prefer native version */
46 case DLL_PROCESS_ATTACH:
47 DisableThreadLibraryCalls( inst );
48 break;
50 return TRUE;
53 /***********************************************************************
54 * TrustIsCertificateSelfSigned (WINTRUST.@)
56 BOOL WINAPI TrustIsCertificateSelfSigned( PCCERT_CONTEXT cert )
58 BOOL ret;
60 TRACE("%p\n", cert);
61 ret = CertCompareCertificateName(cert->dwCertEncodingType,
62 &cert->pCertInfo->Subject, &cert->pCertInfo->Issuer);
63 return ret;
66 /***********************************************************************
67 * WinVerifyTrust (WINTRUST.@)
69 * Verifies an object by calling the specified trust provider.
71 * PARAMS
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.
76 * RETURNS
77 * Success: Zero.
78 * Failure: A TRUST_E_* error code.
80 * NOTES
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);
87 return ERROR_SUCCESS;
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);
97 return S_OK;
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,
108 idxCounterSigner);
109 return NULL;
112 /***********************************************************************
113 * WTHelperProvDataFromStateData (WINTRUST.@)
115 CRYPT_PROVIDER_DATA * WINAPI WTHelperProvDataFromStateData(HANDLE hStateData)
117 FIXME("%p\n", hStateData);
118 return NULL;
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);
129 return FALSE;
132 /***********************************************************************
133 * WintrustGetRegPolicyFlags (WINTRUST.@)
135 void WINAPI WintrustGetRegPolicyFlags( DWORD* pdwPolicyFlags )
137 FIXME("%p\n", pdwPolicyFlags);
138 *pdwPolicyFlags = 0;
141 /***********************************************************************
142 * WintrustSetRegPolicyFlags (WINTRUST.@)
144 BOOL WINAPI WintrustSetRegPolicyFlags( DWORD dwPolicyFlags)
146 FIXME("stub: %x\n", dwPolicyFlags);
147 return TRUE;