ReactOS
0.4.16-dev-197-g92996da
schannel_main.c
Go to the documentation of this file.
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
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
55
BOOL
WINAPI
SslEmptyCacheA
(
LPSTR
target
,
DWORD
flags
)
56
{
57
FIXME
(
"%s %x\n"
,
debugstr_a
(
target
),
flags
);
58
return
TRUE
;
59
}
60
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
71
schan_InitSecurityInterfaceW(
VOID
)
72
{
73
TRACE
(
"InitSecurityInterfaceW() called\n"
);
74
return
&
schanTableW
;
75
}
76
77
PSecurityFunctionTableA
78
WINAPI
79
schan_InitSecurityInterfaceA(
VOID
)
80
{
81
TRACE
(
"InitSecurityInterfaceA() called\n"
);
82
return
&
schanTableA
;
83
}
84
85
#endif
/* __REACTOS__ */
WINE_DEFAULT_DEBUG_CHANNEL
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
Definition:
precomp.h:23
FIXME
#define FIXME(fmt,...)
Definition:
precomp.h:53
TRUE
#define TRUE
Definition:
types.h:120
FALSE
#define FALSE
Definition:
types.h:117
DLL_PROCESS_ATTACH
#define DLL_PROCESS_ATTACH
Definition:
compat.h:131
DisableThreadLibraryCalls
BOOL WINAPI DisableThreadLibraryCalls(IN HMODULE hLibModule)
Definition:
loader.c:85
BOOL
unsigned int BOOL
Definition:
ntddk_ex.h:94
DWORD
unsigned long DWORD
Definition:
ntddk_ex.h:95
flags
GLbitfield flags
Definition:
glext.h:7161
target
GLenum target
Definition:
glext.h:7315
void
Definition:
nsiface.idl:2307
debugstr_a
#define debugstr_a
Definition:
kernel32.h:31
debugstr_w
#define debugstr_w
Definition:
kernel32.h:32
lpvReserved
static IN DWORD IN LPVOID lpvReserved
Definition:
load_notifications.c:17
schannel.h
SslEmptyCacheW
BOOL WINAPI SslEmptyCacheW(LPWSTR target, DWORD flags)
Definition:
schannel_main.c:61
DllMain
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
Definition:
schannel_main.c:37
SslEmptyCacheA
BOOL WINAPI SslEmptyCacheA(LPSTR target, DWORD flags)
Definition:
schannel_main.c:55
schannel_priv.h
SECUR32_initSchannelSP
void SECUR32_initSchannelSP(void) DECLSPEC_HIDDEN
Definition:
schannel_wine.c:1473
schanTableA
SecurityFunctionTableA schanTableA
schanTableW
SecurityFunctionTableW schanTableW
debug.h
TRACE
#define TRACE(s)
Definition:
solgame.cpp:4
_SECURITY_FUNCTION_TABLE_A
Definition:
sspi.h:954
_SECURITY_FUNCTION_TABLE_W
Definition:
sspi.h:989
winbase.h
windef.h
WINAPI
#define WINAPI
Definition:
msvc.h:6
LPSTR
char * LPSTR
Definition:
xmlstorage.h:182
LPWSTR
WCHAR * LPWSTR
Definition:
xmlstorage.h:184
dll
win32
schannel
schannel_main.c
Generated on Wed Oct 30 2024 06:04:36 for ReactOS by
1.9.6