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
96223006
Commit
96223006
authored
Dec 19, 2011
by
André Hentschel
Committed by
Alexandre Julliard
Dec 20, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
secur32/tests: Fail on missing NTLM.
parent
dbdf927e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
9 deletions
+12
-9
ntlm.c
dlls/secur32/tests/ntlm.c
+12
-9
No files found.
dlls/secur32/tests/ntlm.c
View file @
96223006
...
...
@@ -578,7 +578,7 @@ static void testInitializeSecurityContextFlags(void)
if
(
pQuerySecurityPackageInfoA
(
sec_pkg_name
,
&
pkg_info
)
!=
SEC_E_OK
)
{
skip
(
"Package not installed, skipping test!
\n
"
);
ok
(
0
,
"NTLM package not installed, skipping test.
\n
"
);
return
;
}
...
...
@@ -800,7 +800,7 @@ static void testAuth(ULONG data_rep, BOOL fake)
if
(
pQuerySecurityPackageInfoA
(
sec_pkg_name
,
&
pkg_info
)
!=
SEC_E_OK
)
{
skip
(
"P
ackage not installed, skipping test.
\n
"
);
ok
(
0
,
"NTLM p
ackage not installed, skipping test.
\n
"
);
return
;
}
...
...
@@ -942,7 +942,7 @@ static void testSignSeal(void)
*/
if
(
pQuerySecurityPackageInfoA
(
sec_pkg_name
,
&
pkg_info
)
!=
SEC_E_OK
)
{
skip
(
"P
ackage not installed, skipping test.
\n
"
);
ok
(
0
,
"NTLM p
ackage not installed, skipping test.
\n
"
);
return
;
}
...
...
@@ -1192,7 +1192,7 @@ end:
HeapFree
(
GetProcessHeap
(),
0
,
complex_data
[
3
].
pvBuffer
);
}
static
void
testAcquireCredentialsHandle
(
void
)
static
BOOL
testAcquireCredentialsHandle
(
void
)
{
CredHandle
cred
;
TimeStamp
ttl
;
...
...
@@ -1206,8 +1206,8 @@ static void testAcquireCredentialsHandle(void)
if
(
pQuerySecurityPackageInfoA
(
sec_pkg_name
,
&
pkg_info
)
!=
SEC_E_OK
)
{
skip
(
"NTLM package not installed, skipping test
\n
"
);
return
;
ok
(
0
,
"NTLM package not installed, skipping test
\n
"
);
return
FALSE
;
}
pFreeContextBuffer
(
pkg_info
);
...
...
@@ -1258,6 +1258,7 @@ static void testAcquireCredentialsHandle(void)
ok
(
ret
==
SEC_E_OK
,
"AcquireCredentialsHande() returned %s
\n
"
,
getSecError
(
ret
));
pFreeCredentialsHandle
(
&
cred
);
return
TRUE
;
}
static
void
test_cred_multiple_use
(
void
)
...
...
@@ -1279,7 +1280,7 @@ static void test_cred_multiple_use(void)
if
(
pQuerySecurityPackageInfoA
(
sec_pkg_name
,
&
pkg_info
)
!=
SEC_E_OK
)
{
skip
(
"NTLM package not installed, skipping test
\n
"
);
ok
(
0
,
"NTLM package not installed, skipping test
\n
"
);
return
;
}
buffers
[
0
].
cbBuffer
=
pkg_info
->
cbMaxToken
;
...
...
@@ -1340,7 +1341,7 @@ static void test_null_auth_data(void)
if
(
pQuerySecurityPackageInfoA
((
SEC_CHAR
*
)
"NTLM"
,
&
info
)
!=
SEC_E_OK
)
{
skip
(
"NTLM package not installed, skipping test
\n
"
);
ok
(
0
,
"NTLM package not installed, skipping test
\n
"
);
return
;
}
...
...
@@ -1383,7 +1384,8 @@ START_TEST(ntlm)
pInitializeSecurityContextA
&&
pCompleteAuthToken
&&
pQuerySecurityPackageInfoA
)
{
testAcquireCredentialsHandle
();
if
(
!
testAcquireCredentialsHandle
())
goto
cleanup
;
testInitializeSecurityContextFlags
();
if
(
pAcceptSecurityContext
)
{
...
...
@@ -1402,6 +1404,7 @@ START_TEST(ntlm)
else
win_skip
(
"Needed functions are not available
\n
"
);
cleanup
:
if
(
secdll
)
FreeLibrary
(
secdll
);
}
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