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
57271ca1
Commit
57271ca1
authored
Apr 24, 2016
by
Francois Gouget
Committed by
Alexandre Julliard
Apr 25, 2016
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
schannel: Add declarations for SECPKG version 7.
Signed-off-by:
Francois Gouget
<
fgouget@free.fr
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
7657845b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
3 deletions
+19
-3
lsamode.c
dlls/schannel/lsamode.c
+3
-1
main.c
dlls/schannel/tests/main.c
+5
-1
ntsecpkg.h
include/ntsecpkg.h
+11
-1
No files found.
dlls/schannel/lsamode.c
View file @
57271ca1
...
...
@@ -115,6 +115,7 @@ static SECPKG_FUNCTION_TABLE secPkgFunctionTable[2] =
NULL
,
/* GetCredUIContext */
NULL
,
/* UpdateCredentials */
NULL
,
/* ValidateTargetInfo */
NULL
,
/* PostLogonUser */
},
{
NULL
,
/* InitializePackage */
NULL
,
/* LsaLogonUser */
...
...
@@ -151,6 +152,7 @@ static SECPKG_FUNCTION_TABLE secPkgFunctionTable[2] =
NULL
,
/* GetCredUIContext */
NULL
,
/* UpdateCredentials */
NULL
,
/* ValidateTargetInfo */
NULL
,
/* PostLogonUser */
}
};
...
...
@@ -162,7 +164,7 @@ NTSTATUS WINAPI SpLsaModeInitialize(ULONG LsaVersion, PULONG PackageVersion,
{
TRACE
(
"(%u, %p, %p, %p)
\n
"
,
LsaVersion
,
PackageVersion
,
ppTables
,
pcTables
);
*
PackageVersion
=
SECPKG_INTERFACE_VERSION_
6
;
*
PackageVersion
=
SECPKG_INTERFACE_VERSION_
7
;
*
pcTables
=
2
;
*
ppTables
=
secPkgFunctionTable
;
...
...
dlls/schannel/tests/main.c
View file @
57271ca1
...
...
@@ -43,7 +43,9 @@
QueryMetaData)
#define SECPKG_FUNCTION_TABLE_SIZE_5 FIELD_OFFSET(SECPKG_FUNCTION_TABLE, \
ValidateTargetInfo)
#define SECPKG_FUNCTION_TABLE_SIZE_6 sizeof(SECPKG_FUNCTION_TABLE)
#define SECPKG_FUNCTION_TABLE_SIZE_6 FIELD_OFFSET(SECPKG_FUNCTION_TABLE, \
PostLogonUser)
#define SECPKG_FUNCTION_TABLE_SIZE_7 sizeof(SECPKG_FUNCTION_TABLE)
#define LSA_BASE_CAPS ( \
SECPKG_FLAG_INTEGRITY | \
...
...
@@ -152,6 +154,8 @@ static PSECPKG_FUNCTION_TABLE getNextSecPkgTable(PSECPKG_FUNCTION_TABLE pTable,
size
=
SECPKG_FUNCTION_TABLE_SIZE_5
;
else
if
(
Version
==
SECPKG_INTERFACE_VERSION_6
)
size
=
SECPKG_FUNCTION_TABLE_SIZE_6
;
else
if
(
Version
==
SECPKG_INTERFACE_VERSION_7
)
size
=
SECPKG_FUNCTION_TABLE_SIZE_7
;
else
{
ok
(
FALSE
,
"Unknown package version 0x%x
\n
"
,
Version
);
return
NULL
;
...
...
include/ntsecpkg.h
View file @
57271ca1
...
...
@@ -37,6 +37,7 @@ extern "C" {
#define SECPKG_INTERFACE_VERSION_4 0x80000
#define SECPKG_INTERFACE_VERSION_5 0x100000
#define SECPKG_INTERFACE_VERSION_6 0x200000
#define SECPKG_INTERFACE_VERSION_7 0x400000
/* enum definitions for Secure Service Provider/Authentication Packages */
typedef
enum
_LSA_TOKEN_INFORMATION_TYPE
{
...
...
@@ -147,11 +148,17 @@ typedef struct _SECPKG_EXTENDED_INFORMATION {
}
Info
;
}
SECPKG_EXTENDED_INFORMATION
,
*
PSECPKG_EXTENDED_INFORMATION
;
typedef
struct
_SECPKG_TARGETINFO
{
typedef
struct
_SECPKG_TARGETINFO
{
PSID
DomainSid
;
PCWSTR
ComputerName
;
}
SECPKG_TARGETINFO
,
*
PSECPKG_TARGETINFO
;
typedef
struct
_SECPKG_POST_LOGON_USER_INFO
{
ULONG
Flags
;
LUID
LogonId
;
LUID
LinkedLogonId
;
}
SECPKG_POST_LOGON_USER_INFO
,
*
PSECPKG_POST_LOGON_USER_INFO
;
/* callbacks implemented by SSP/AP dlls and called by the LSA */
typedef
VOID
(
NTAPI
*
PLSA_CALLBACK_FUNCTION
)(
ULONG_PTR
,
ULONG_PTR
,
PSecBuffer
,
PSecBuffer
);
...
...
@@ -365,6 +372,7 @@ typedef NTSTATUS (NTAPI SpUpdateCredentialsFn)(LSA_SEC_HANDLE, GUID *, ULONG,
PUCHAR
);
typedef
NTSTATUS
(
NTAPI
SpValidateTargetInfoFn
)(
PLSA_CLIENT_REQUEST
,
PVOID
,
PVOID
,
ULONG
,
PSECPKG_TARGETINFO
);
typedef
NTSTATUS
(
NTAPI
LSA_AP_POST_LOGON_USER
)(
PSECPKG_POST_LOGON_USER_INFO
);
/* User-mode functions implemented by SSP/AP obtainable by a dispatch table */
typedef
NTSTATUS
(
NTAPI
SpInstanceInitFn
)(
ULONG
,
PSECPKG_DLL_FUNCTIONS
,
...
...
@@ -435,6 +443,8 @@ typedef struct SECPKG_FUNCTION_TABLE {
/* Packages with version SECPKG_INTERFACE_VERSION_5 end here */
SpValidateTargetInfoFn
*
ValidateTargetInfo
;
/* Packages with version SECPKG_INTERFACE_VERSION_6 end here */
LSA_AP_POST_LOGON_USER
*
PostLogonUser
;
/* Packages with version SECPKG_INTERFACE_VERSION_7 end here */
}
SECPKG_FUNCTION_TABLE
,
*
PSECPKG_FUNCTION_TABLE
;
...
...
Vitaly Lipatov
@lav
mentioned in commit
47e70700
·
Sep 03, 2020
mentioned in commit
47e70700
mentioned in commit 47e70700fbc24d1017ff33cd604c5d760040d140
Toggle commit list
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