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
dd6c4c68
Commit
dd6c4c68
authored
Oct 31, 2006
by
Paul Vriens
Committed by
Alexandre Julliard
Oct 31, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
secur32: Make sure crashing tests are not run.
parent
98a3912e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
17 deletions
+27
-17
schannel.c
dlls/secur32/tests/schannel.c
+27
-17
No files found.
dlls/secur32/tests/schannel.c
View file @
dd6c4c68
...
@@ -140,10 +140,14 @@ static void testAcquireSecurityContext(void)
...
@@ -140,10 +140,14 @@ static void testAcquireSecurityContext(void)
NULL
);
NULL
);
ok
(
st
==
SEC_E_SECPKG_NOT_FOUND
,
ok
(
st
==
SEC_E_SECPKG_NOT_FOUND
,
"Expected SEC_E_SECPKG_NOT_FOUND, got %08x
\n
"
,
st
);
"Expected SEC_E_SECPKG_NOT_FOUND, got %08x
\n
"
,
st
);
st
=
pAcquireCredentialsHandleA
(
NULL
,
unisp_name_a
,
0
,
NULL
,
NULL
,
NULL
,
if
(
0
)
NULL
,
NULL
,
NULL
);
{
ok
(
st
==
SEC_E_NO_CREDENTIALS
,
"Expected SEC_E_NO_CREDENTIALS, got %08x
\n
"
,
/* Crashes on Win2K */
st
);
st
=
pAcquireCredentialsHandleA
(
NULL
,
unisp_name_a
,
0
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
);
ok
(
st
==
SEC_E_NO_CREDENTIALS
,
"Expected SEC_E_NO_CREDENTIALS, got %08x
\n
"
,
st
);
}
st
=
pAcquireCredentialsHandleA
(
NULL
,
unisp_name_a
,
SECPKG_CRED_BOTH
,
NULL
,
st
=
pAcquireCredentialsHandleA
(
NULL
,
unisp_name_a
,
SECPKG_CRED_BOTH
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
);
NULL
,
NULL
,
NULL
,
NULL
,
NULL
);
ok
(
st
==
SEC_E_NO_CREDENTIALS
,
"Expected SEC_E_NO_CREDENTIALS, got %08x
\n
"
,
ok
(
st
==
SEC_E_NO_CREDENTIALS
,
"Expected SEC_E_NO_CREDENTIALS, got %08x
\n
"
,
...
@@ -152,10 +156,12 @@ static void testAcquireSecurityContext(void)
...
@@ -152,10 +156,12 @@ static void testAcquireSecurityContext(void)
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
);
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
);
ok
(
st
==
SEC_E_NO_CREDENTIALS
,
"Expected SEC_E_NO_CREDENTIALS, got %08x
\n
"
,
ok
(
st
==
SEC_E_NO_CREDENTIALS
,
"Expected SEC_E_NO_CREDENTIALS, got %08x
\n
"
,
st
);
st
);
/* Crashes
if
(
0
)
st = pAcquireCredentialsHandleA(NULL, UNISP_NAME_A, SECPKG_CRED_OUTBOUND,
{
NULL, NULL, NULL, NULL, NULL, NULL);
/* Crashes */
*/
st
=
pAcquireCredentialsHandleA
(
NULL
,
unisp_name_a
,
SECPKG_CRED_OUTBOUND
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
);
}
st
=
pAcquireCredentialsHandleA
(
NULL
,
unisp_name_a
,
SECPKG_CRED_OUTBOUND
,
st
=
pAcquireCredentialsHandleA
(
NULL
,
unisp_name_a
,
SECPKG_CRED_OUTBOUND
,
NULL
,
NULL
,
NULL
,
NULL
,
&
cred
,
NULL
);
NULL
,
NULL
,
NULL
,
NULL
,
&
cred
,
NULL
);
ok
(
st
==
SEC_E_OK
,
"AcquireCredentialsHandleA failed: %08x
\n
"
,
st
);
ok
(
st
==
SEC_E_OK
,
"AcquireCredentialsHandleA failed: %08x
\n
"
,
st
);
...
@@ -191,11 +197,13 @@ static void testAcquireSecurityContext(void)
...
@@ -191,11 +197,13 @@ static void testAcquireSecurityContext(void)
ok
(
st
==
SEC_E_NO_CREDENTIALS
,
"Expected SEC_E_NO_CREDENTIALS, got %08x
\n
"
,
ok
(
st
==
SEC_E_NO_CREDENTIALS
,
"Expected SEC_E_NO_CREDENTIALS, got %08x
\n
"
,
st
);
st
);
/* Crashes with bad paCred pointer
if
(
0
)
schanCred.cCreds = 1;
{
st = pAcquireCredentialsHandleA(NULL, UNISP_NAME_A, SECPKG_CRED_OUTBOUND,
/* Crashes with bad paCred pointer */
NULL, &schanCred, NULL, NULL, NULL, NULL);
schanCred
.
cCreds
=
1
;
*/
st
=
pAcquireCredentialsHandleA
(
NULL
,
unisp_name_a
,
SECPKG_CRED_OUTBOUND
,
NULL
,
&
schanCred
,
NULL
,
NULL
,
NULL
,
NULL
);
}
/* Bogus cert in SCHANNEL_CRED. Windows fails with
/* Bogus cert in SCHANNEL_CRED. Windows fails with
* SEC_E_UNKNOWN_CREDENTIALS, but I'll accept SEC_E_NO_CREDENTIALS too.
* SEC_E_UNKNOWN_CREDENTIALS, but I'll accept SEC_E_NO_CREDENTIALS too.
...
@@ -251,10 +259,12 @@ static void testAcquireSecurityContext(void)
...
@@ -251,10 +259,12 @@ static void testAcquireSecurityContext(void)
{
{
PCCERT_CONTEXT
tmp
;
PCCERT_CONTEXT
tmp
;
/* Crashes
if
(
0
)
st = pAcquireCredentialsHandleA(NULL, UNISP_NAME_A, SECPKG_CRED_INBOUND,
{
NULL, &schanCred, NULL, NULL, NULL, NULL);
/* Crashes */
*/
st
=
pAcquireCredentialsHandleA
(
NULL
,
unisp_name_a
,
SECPKG_CRED_INBOUND
,
NULL
,
&
schanCred
,
NULL
,
NULL
,
NULL
,
NULL
);
}
/* Good cert with private key, bogus version */
/* Good cert with private key, bogus version */
schanCred
.
dwVersion
=
SCH_CRED_V1
;
schanCred
.
dwVersion
=
SCH_CRED_V1
;
st
=
pAcquireCredentialsHandleA
(
NULL
,
unisp_name_a
,
SECPKG_CRED_OUTBOUND
,
st
=
pAcquireCredentialsHandleA
(
NULL
,
unisp_name_a
,
SECPKG_CRED_OUTBOUND
,
...
...
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