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
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
);
37 case DLL_WINE_PREATTACH
:
38 return FALSE
; /* prefer native version */
39 case DLL_PROCESS_ATTACH
:
40 DisableThreadLibraryCalls(hinstDLL
);
42 case DLL_PROCESS_DETACH
:
50 /***********************************************************************
51 * GetFriendlyNameOfCertA (CRYPTDLG.@)
53 DWORD
GetFriendlyNameOfCertA(PCCERT_CONTEXT pccert
, LPSTR pchBuffer
,
56 return CertGetNameStringA(pccert
, CERT_NAME_FRIENDLY_DISPLAY_TYPE
, 0, NULL
,
57 pchBuffer
, cchBuffer
);
60 /***********************************************************************
61 * GetFriendlyNameOfCertW (CRYPTDLG.@)
63 DWORD
GetFriendlyNameOfCertW(PCCERT_CONTEXT pccert
, LPWSTR pchBuffer
,
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
);
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
);
88 /***********************************************************************
89 * CertTrustCleanup (CRYPTDLG.@)
91 HRESULT WINAPI
CertTrustCleanup(CRYPT_PROVIDER_DATA
*pProvData
)
93 FIXME("(%p)\n", pProvData
);
97 /***********************************************************************
98 * CertTrustFinalPolicy (CRYPTDLG.@)
100 HRESULT WINAPI
CertTrustFinalPolicy(CRYPT_PROVIDER_DATA
*pProvData
)
102 FIXME("(%p)\n", pProvData
);