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
f7b55ffa
Commit
f7b55ffa
authored
Nov 25, 2022
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kerberos: Use the Unix call helpers.
parent
5392bd30
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
29 deletions
+5
-29
krb5_ap.c
dlls/kerberos/krb5_ap.c
+4
-26
unixlib.h
dlls/kerberos/unixlib.h
+1
-3
No files found.
dlls/kerberos/krb5_ap.c
View file @
f7b55ffa
...
...
@@ -39,10 +39,6 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
kerberos
);
static
HINSTANCE
instance
;
unixlib_handle_t
krb5_handle
=
0
;
#define KERBEROS_CAPS \
( SECPKG_FLAG_INTEGRITY \
| SECPKG_FLAG_PRIVACY \
...
...
@@ -134,11 +130,9 @@ static NTSTATUS NTAPI kerberos_LsaApInitializePackage(ULONG package_id, PLSA_DIS
{
char
*
kerberos_name
;
if
(
!
krb5
_handle
)
if
(
!
__wine_unixlib
_handle
)
{
if
(
NtQueryVirtualMemory
(
GetCurrentProcess
(),
instance
,
MemoryWineUnixFuncs
,
&
krb5_handle
,
sizeof
(
krb5_handle
),
NULL
)
||
KRB5_CALL
(
process_attach
,
NULL
))
if
(
__wine_init_unix_call
()
||
KRB5_CALL
(
process_attach
,
NULL
))
ERR
(
"no Kerberos support, expect problems
\n
"
);
}
...
...
@@ -569,11 +563,9 @@ static NTSTATUS NTAPI kerberos_SpInitialize(ULONG_PTR package_id, SECPKG_PARAMET
{
TRACE
(
"%Iu, %p, %p
\n
"
,
package_id
,
params
,
lsa_function_table
);
if
(
!
krb5
_handle
)
if
(
!
__wine_unixlib
_handle
)
{
if
(
NtQueryVirtualMemory
(
GetCurrentProcess
(),
instance
,
MemoryWineUnixFuncs
,
&
krb5_handle
,
sizeof
(
krb5_handle
),
NULL
)
||
KRB5_CALL
(
process_attach
,
NULL
))
if
(
__wine_init_unix_call
()
||
KRB5_CALL
(
process_attach
,
NULL
))
WARN
(
"no Kerberos support
\n
"
);
return
STATUS_UNSUCCESSFUL
;
}
...
...
@@ -781,17 +773,3 @@ NTSTATUS NTAPI SpUserModeInitialize(ULONG lsa_version, PULONG package_version,
*
table_count
=
1
;
return
STATUS_SUCCESS
;
}
BOOL
WINAPI
DllMain
(
HINSTANCE
hinst
,
DWORD
reason
,
void
*
reserved
)
{
switch
(
reason
)
{
case
DLL_PROCESS_ATTACH
:
instance
=
hinst
;
DisableThreadLibraryCalls
(
hinst
);
break
;
case
DLL_PROCESS_DETACH
:
break
;
}
return
TRUE
;
}
dlls/kerberos/unixlib.h
View file @
f7b55ffa
...
...
@@ -139,6 +139,4 @@ enum unix_funcs
unix_verify_signature
,
};
extern
unixlib_handle_t
krb5_handle
DECLSPEC_HIDDEN
;
#define KRB5_CALL( func, params ) __wine_unix_call( krb5_handle, unix_ ## func, params )
#define KRB5_CALL( func, params ) WINE_UNIX_CALL( unix_ ## func, params )
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