wineconsole: Don't use a Win32 wait on a Unix file descriptor.
[wine/dcerpc.git] / dlls / cryptdlg / main.c
blob9d3eb4ec13340f00a3544ccdc0674a66f3ab4d3b
1 /*
2 * Copyright 2008 Maarten Lankhorst
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 "wincrypt.h"
26 #include "wintrust.h"
27 #include "wine/debug.h"
29 WINE_DEFAULT_DEBUG_CHANNEL(cryptdlg);
31 BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
33 TRACE("(0x%p, %d, %p)\n", hinstDLL, fdwReason, lpvReserved);
35 switch (fdwReason)
37 case DLL_WINE_PREATTACH:
38 return FALSE; /* prefer native version */
39 case DLL_PROCESS_ATTACH:
40 DisableThreadLibraryCalls(hinstDLL);
41 break;
42 case DLL_PROCESS_DETACH:
43 break;
44 default:
45 break;
47 return TRUE;
50 /***********************************************************************
51 * GetFriendlyNameOfCertA (CRYPTDLG.@)
53 DWORD WINAPI GetFriendlyNameOfCertA(PCCERT_CONTEXT pccert, LPSTR pchBuffer,
54 DWORD cchBuffer)
56 return CertGetNameStringA(pccert, CERT_NAME_FRIENDLY_DISPLAY_TYPE, 0, NULL,
57 pchBuffer, cchBuffer);
60 /***********************************************************************
61 * GetFriendlyNameOfCertW (CRYPTDLG.@)
63 DWORD WINAPI GetFriendlyNameOfCertW(PCCERT_CONTEXT pccert, LPWSTR pchBuffer,
64 DWORD cchBuffer)
66 return CertGetNameStringW(pccert, CERT_NAME_FRIENDLY_DISPLAY_TYPE, 0, NULL,
67 pchBuffer, cchBuffer);
70 /***********************************************************************
71 * CertTrustInit (CRYPTDLG.@)
73 HRESULT WINAPI CertTrustInit(CRYPT_PROVIDER_DATA *pProvData)
75 FIXME("(%p)\n", pProvData);
76 return E_NOTIMPL;
79 /***********************************************************************
80 * CertTrustCertPolicy (CRYPTDLG.@)
82 BOOL WINAPI CertTrustCertPolicy(CRYPT_PROVIDER_DATA *pProvData, DWORD idxSigner, BOOL fCounterSignerChain, DWORD idxCounterSigner)
84 FIXME("(%p, %d, %s, %d)\n", pProvData, idxSigner, fCounterSignerChain ? "TRUE" : "FALSE", idxCounterSigner);
85 return FALSE;
88 /***********************************************************************
89 * CertTrustCleanup (CRYPTDLG.@)
91 HRESULT WINAPI CertTrustCleanup(CRYPT_PROVIDER_DATA *pProvData)
93 FIXME("(%p)\n", pProvData);
94 return E_NOTIMPL;
97 /***********************************************************************
98 * CertTrustFinalPolicy (CRYPTDLG.@)
100 HRESULT WINAPI CertTrustFinalPolicy(CRYPT_PROVIDER_DATA *pProvData)
102 FIXME("(%p)\n", pProvData);
103 return E_NOTIMPL;