1 /*
2 * SSL/TLS Security Library
3 *
4 * Copyright 2007 Rob Shearman, for CodeWeavers
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 */
20
21 #include <stdarg.h>
22
23 #include "windef.h"
24 #include "winbase.h"
25
26 #include "wine/debug.h"
27
28 #ifdef __REACTOS__
29 #include <sspi.h>
30 #include <schannel.h>
31 #include <wine/list.h>
32 #include "schannel_priv.h"
33 #endif
34
35 WINE_DEFAULT_DEBUG_CHANNEL(schannel);
36
DllMain(HINSTANCE hinstDLL,DWORD fdwReason,LPVOID lpvReserved)37 BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
38 {
39 TRACE("(0x%p, %d, %p)\n",hinstDLL,fdwReason,lpvReserved);
40
41 if (fdwReason == DLL_WINE_PREATTACH) return FALSE; /* prefer native version */
42
43 if (fdwReason == DLL_PROCESS_ATTACH)
44 #ifdef __REACTOS__
45 {
46 #endif
47 DisableThreadLibraryCalls(hinstDLL);
48 #ifdef __REACTOS__
49 SECUR32_initSchannelSP();
50 }
51 #endif
52 return TRUE;
53 }
54
SslEmptyCacheA(LPSTR target,DWORD flags)55 BOOL WINAPI SslEmptyCacheA(LPSTR target, DWORD flags)
56 {
57 FIXME("%s %x\n", debugstr_a(target), flags);
58 return TRUE;
59 }
60
SslEmptyCacheW(LPWSTR target,DWORD flags)61 BOOL WINAPI SslEmptyCacheW(LPWSTR target, DWORD flags)
62 {
63 FIXME("%s %x\n", debugstr_w(target), flags);
64 return TRUE;
65 }
66
67 #ifdef __REACTOS__
68
69 PSecurityFunctionTableW
70 WINAPI
schan_InitSecurityInterfaceW(VOID)71 schan_InitSecurityInterfaceW(VOID)
72 {
73 TRACE("InitSecurityInterfaceW() called\n");
74 return &schanTableW;
75 }
76
77 PSecurityFunctionTableA
78 WINAPI
schan_InitSecurityInterfaceA(VOID)79 schan_InitSecurityInterfaceA(VOID)
80 {
81 TRACE("InitSecurityInterfaceA() called\n");
82 return &schanTableA;
83 }
84
85 #endif /* __REACTOS__ */
86