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
f953caf3
Commit
f953caf3
authored
Mar 04, 2022
by
Eric Pouech
Committed by
Alexandre Julliard
Mar 04, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
schannel/tests: Enable compilation with long types.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
0b3c158c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
25 deletions
+24
-25
Makefile.in
dlls/schannel/tests/Makefile.in
+0
-1
main.c
dlls/schannel/tests/main.c
+24
-24
No files found.
dlls/schannel/tests/Makefile.in
View file @
f953caf3
EXTRADEFS
=
-DWINE_NO_LONG_TYPES
TESTDLL
=
schannel.dll
C_SRCS
=
\
...
...
dlls/schannel/tests/main.c
View file @
f953caf3
...
...
@@ -77,27 +77,27 @@ static void testInitialize(void)
/* SpLsaModeInitialize does not care about the LSA version. */
status
=
pSpLsaModeInitialize
(
0
,
&
Version
,
&
pTables2
,
&
cTables
);
ok
(
status
==
STATUS_SUCCESS
,
"status: 0x%x
\n
"
,
status
);
ok
(
status
==
STATUS_SUCCESS
,
"status: 0x%
l
x
\n
"
,
status
);
ok
(
cTables
==
2
||
broken
(
cTables
==
1
),
/* Win2k */
"cTables: %d
\n
"
,
cTables
);
"cTables: %
l
d
\n
"
,
cTables
);
ok
(
pTables2
!=
NULL
,
"pTables: %p
\n
"
,
pTables2
);
/* We can call it as many times we want. */
status
=
pSpLsaModeInitialize
(
0x10000
,
&
Version
,
&
pTables
,
&
cTables
);
ok
(
status
==
STATUS_SUCCESS
,
"status: 0x%x
\n
"
,
status
);
ok
(
status
==
STATUS_SUCCESS
,
"status: 0x%
l
x
\n
"
,
status
);
ok
(
cTables
==
2
||
broken
(
cTables
==
1
),
/* Win2k */
"cTables: %d
\n
"
,
cTables
);
"cTables: %
l
d
\n
"
,
cTables
);
ok
(
pTables
!=
NULL
,
"pTables: %p
\n
"
,
pTables
);
/* It will always return the same pointer. */
ok
(
pTables
==
pTables2
,
"pTables: %p, pTables2: %p
\n
"
,
pTables
,
pTables2
);
status
=
pSpLsaModeInitialize
(
0x23456
,
&
Version
,
&
pTables
,
&
cTables
);
ok
(
status
==
STATUS_SUCCESS
,
"status: 0x%x
\n
"
,
status
);
ok
(
status
==
STATUS_SUCCESS
,
"status: 0x%
l
x
\n
"
,
status
);
ok
(
cTables
==
2
||
broken
(
cTables
==
1
),
/* Win2k */
"cTables: %d
\n
"
,
cTables
);
"cTables: %
l
d
\n
"
,
cTables
);
ok
(
pTables
!=
NULL
,
"pTables: %p
\n
"
,
pTables
);
ok
(
pTables
==
pTables2
,
"pTables: %p, pTables2: %p
\n
"
,
pTables
,
pTables2
);
...
...
@@ -106,32 +106,32 @@ static void testInitialize(void)
cUserTables
=
0xdead
;
pUserTables
=
NULL
;
status
=
pSpUserModeInitialize
(
0
,
&
Version
,
&
pUserTables
,
&
cUserTables
);
ok
(
status
==
STATUS_INVALID_PARAMETER
,
"status: 0x%x
\n
"
,
status
);
ok
(
Version
==
0xdead
,
"Version: 0x%x
\n
"
,
Version
);
ok
(
cUserTables
==
0xdead
,
"cTables: %d
\n
"
,
cUserTables
);
ok
(
status
==
STATUS_INVALID_PARAMETER
,
"status: 0x%
l
x
\n
"
,
status
);
ok
(
Version
==
0xdead
,
"Version: 0x%
l
x
\n
"
,
Version
);
ok
(
cUserTables
==
0xdead
,
"cTables: %
l
d
\n
"
,
cUserTables
);
ok
(
pUserTables
==
NULL
,
"pUserTables: %p
\n
"
,
pUserTables
);
status
=
pSpUserModeInitialize
(
0x20000
,
&
Version
,
&
pUserTables
,
&
cUserTables
);
ok
(
status
==
STATUS_INVALID_PARAMETER
,
"status: 0x%x
\n
"
,
status
);
ok
(
Version
==
0xdead
,
"Version: 0x%x
\n
"
,
Version
);
ok
(
cUserTables
==
0xdead
,
"cTables: %d
\n
"
,
cUserTables
);
ok
(
status
==
STATUS_INVALID_PARAMETER
,
"status: 0x%
l
x
\n
"
,
status
);
ok
(
Version
==
0xdead
,
"Version: 0x%
l
x
\n
"
,
Version
);
ok
(
cUserTables
==
0xdead
,
"cTables: %
l
d
\n
"
,
cUserTables
);
ok
(
pUserTables
==
NULL
,
"pUserTables: %p
\n
"
,
pUserTables
);
/* Good version to SpUserModeInitialize */
status
=
pSpUserModeInitialize
(
SECPKG_INTERFACE_VERSION
,
&
Version
,
&
pUserTables
,
&
cUserTables
);
ok
(
status
==
STATUS_SUCCESS
,
"status: 0x%x
\n
"
,
status
);
ok
(
Version
==
SECPKG_INTERFACE_VERSION
,
"Version: 0x%x
\n
"
,
Version
);
ok
(
status
==
STATUS_SUCCESS
,
"status: 0x%
l
x
\n
"
,
status
);
ok
(
Version
==
SECPKG_INTERFACE_VERSION
,
"Version: 0x%
l
x
\n
"
,
Version
);
ok
(
cUserTables
==
2
||
broken
(
cUserTables
==
4
),
/* Win2k */
"cUserTables: %d
\n
"
,
cUserTables
);
"cUserTables: %
l
d
\n
"
,
cUserTables
);
ok
(
pUserTables
!=
NULL
,
"pUserTables: %p
\n
"
,
pUserTables
);
/* Initializing user again */
status
=
pSpUserModeInitialize
(
SECPKG_INTERFACE_VERSION
,
&
Version
,
&
pUserTables2
,
&
cTables
);
ok
(
status
==
STATUS_SUCCESS
,
"status: 0x%x
\n
"
,
status
);
ok
(
status
==
STATUS_SUCCESS
,
"status: 0x%
l
x
\n
"
,
status
);
ok
(
pUserTables
==
pUserTables2
,
"pUserTables: %p, pUserTables2: %p
\n
"
,
pUserTables
,
pUserTables2
);
}
...
...
@@ -161,7 +161,7 @@ static PSECPKG_FUNCTION_TABLE getNextSecPkgTable(PSECPKG_FUNCTION_TABLE pTable,
else
if
(
Version
==
SECPKG_INTERFACE_VERSION_8
)
size
=
SECPKG_FUNCTION_TABLE_SIZE_8
;
else
{
ok
(
FALSE
,
"Unknown package version 0x%x
\n
"
,
Version
);
ok
(
FALSE
,
"Unknown package version 0x%
l
x
\n
"
,
Version
);
return
NULL
;
}
...
...
@@ -217,21 +217,21 @@ static void testGetInfo(void)
/* Get the dispatch table */
status
=
pSpLsaModeInitialize
(
0
,
&
Version
,
&
pTables
,
&
cTables
);
ok
(
status
==
STATUS_SUCCESS
,
"status: 0x%x
\n
"
,
status
);
ok
(
status
==
STATUS_SUCCESS
,
"status: 0x%
l
x
\n
"
,
status
);
/* Passing NULL into ->GetInfo causes a crash. */
/* First package: Unified */
status
=
pTables
->
GetInfo
(
&
PackageInfo
);
ok
(
status
==
STATUS_SUCCESS
,
"status: 0x%x
\n
"
,
status
);
ok
(
status
==
STATUS_SUCCESS
,
"status: 0x%
l
x
\n
"
,
status
);
ok
(
PackageInfo
.
fCapabilities
==
LSA_BASE_CAPS
||
PackageInfo
.
fCapabilities
==
(
LSA_BASE_CAPS
|
SECPKG_FLAG_APPCONTAINER_PASSTHROUGH
),
"fCapabilities: 0x%x
\n
"
,
PackageInfo
.
fCapabilities
);
"fCapabilities: 0x%
l
x
\n
"
,
PackageInfo
.
fCapabilities
);
ok
(
PackageInfo
.
wVersion
==
1
,
"wVersion: %d
\n
"
,
PackageInfo
.
wVersion
);
ok
(
PackageInfo
.
wRPCID
==
14
,
"wRPCID: %d
\n
"
,
PackageInfo
.
wRPCID
);
ok
(
PackageInfo
.
cbMaxToken
==
0x4000
||
PackageInfo
.
cbMaxToken
==
0x6000
,
/* Vista */
"cbMaxToken: 0x%x
\n
"
,
"cbMaxToken: 0x%
l
x
\n
"
,
PackageInfo
.
cbMaxToken
);
/* Second package */
...
...
@@ -251,18 +251,18 @@ static void testGetInfo(void)
status
=
pTables
->
GetInfo
(
&
PackageInfo
);
ok
(
SUCCEEDED
(
status
)
||
status
==
SEC_E_UNSUPPORTED_FUNCTION
,
/* win2k3 */
"status: 0x%x
\n
"
,
status
);
"status: 0x%
l
x
\n
"
,
status
);
if
(
SUCCEEDED
(
status
))
{
ok
(
PackageInfo
.
fCapabilities
==
LSA_BASE_CAPS
||
PackageInfo
.
fCapabilities
==
(
LSA_BASE_CAPS
|
SECPKG_FLAG_APPCONTAINER_PASSTHROUGH
),
"fCapabilities: 0x%x
\n
"
,
PackageInfo
.
fCapabilities
);
"fCapabilities: 0x%
l
x
\n
"
,
PackageInfo
.
fCapabilities
);
ok
(
PackageInfo
.
wVersion
==
1
,
"wVersion: %d
\n
"
,
PackageInfo
.
wVersion
);
ok
(
PackageInfo
.
wRPCID
==
14
,
"wRPCID: %d
\n
"
,
PackageInfo
.
wRPCID
);
ok
(
PackageInfo
.
cbMaxToken
==
0x4000
||
PackageInfo
.
cbMaxToken
==
0x6000
,
/* Win7 */
"cbMaxToken: 0x%x
\n
"
,
"cbMaxToken: 0x%
l
x
\n
"
,
PackageInfo
.
cbMaxToken
);
}
}
...
...
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