Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
f82dc3d7
Commit
f82dc3d7
authored
Nov 25, 2022
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
secur32: Use the Unix call helpers.
parent
e9c065e5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
17 deletions
+4
-17
schannel.c
dlls/secur32/schannel.c
+4
-12
secur32.c
dlls/secur32/secur32.c
+0
-3
secur32_priv.h
dlls/secur32/secur32_priv.h
+0
-2
No files found.
dlls/secur32/schannel.c
View file @
f82dc3d7
...
...
@@ -40,9 +40,7 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
secur32
);
static
unixlib_handle_t
gnutls_handle
;
#define GNUTLS_CALL( func, params ) __wine_unix_call( gnutls_handle, unix_ ## func, params )
#define GNUTLS_CALL( func, params ) WINE_UNIX_CALL( unix_ ## func, params )
#define SCHAN_INVALID_HANDLE ~0UL
...
...
@@ -1685,15 +1683,10 @@ void SECUR32_initSchannelSP(void)
};
SecureProvider
*
provider
;
if
(
!
gnutls_handle
)
if
(
__wine_init_unix_call
()
||
GNUTLS_CALL
(
process_attach
,
NULL
)
)
{
if
(
NtQueryVirtualMemory
(
GetCurrentProcess
(),
hsecur32
,
MemoryWineUnixFuncs
,
&
gnutls_handle
,
sizeof
(
gnutls_handle
),
NULL
)
||
GNUTLS_CALL
(
process_attach
,
NULL
))
{
ERR
(
"no schannel support, expect problems
\n
"
);
return
;
}
ERR
(
"no schannel support, expect problems
\n
"
);
return
;
}
schan_handle_table
=
malloc
(
64
*
sizeof
(
*
schan_handle_table
));
...
...
@@ -1751,5 +1744,4 @@ void SECUR32_deinitSchannelSP(void)
}
free
(
schan_handle_table
);
GNUTLS_CALL
(
process_detach
,
NULL
);
gnutls_handle
=
0
;
}
dlls/secur32/secur32.c
View file @
f82dc3d7
...
...
@@ -40,8 +40,6 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
secur32
);
HINSTANCE
hsecur32
;
/**
* Type definitions
*/
...
...
@@ -1183,7 +1181,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD reason, LPVOID reserved)
switch
(
reason
)
{
case
DLL_PROCESS_ATTACH
:
hsecur32
=
hinstDLL
;
DisableThreadLibraryCalls
(
hinstDLL
);
SECUR32_initializeProviders
();
break
;
...
...
dlls/secur32/secur32_priv.h
View file @
f82dc3d7
...
...
@@ -26,8 +26,6 @@
#include "schannel.h"
#include "wine/list.h"
extern
HINSTANCE
hsecur32
DECLSPEC_HIDDEN
;
typedef
struct
_SecureProvider
{
struct
list
entry
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment