Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
c718981a
Commit
c718981a
authored
Sep 07, 2008
by
Reece Dunn
Committed by
Alexandre Julliard
Sep 08, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
secur32: Fixed the schannel tests on Vista.
parent
a8ffb232
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
20 deletions
+30
-20
schannel.c
dlls/secur32/tests/schannel.c
+30
-20
No files found.
dlls/secur32/tests/schannel.c
View file @
c718981a
...
...
@@ -230,12 +230,14 @@ static void testAcquireSecurityContext(void)
memset
(
&
schanCred
,
0
,
sizeof
(
schanCred
));
st
=
pAcquireCredentialsHandleA
(
NULL
,
unisp_name_a
,
SECPKG_CRED_OUTBOUND
,
NULL
,
&
schanCred
,
NULL
,
NULL
,
NULL
,
NULL
);
ok
(
st
==
SEC_E_INTERNAL_ERROR
,
"Expected SEC_E_INTERNAL_ERROR, got %08x
\n
"
,
st
);
ok
(
st
==
SEC_E_INTERNAL_ERROR
||
st
==
SEC_E_UNKNOWN_CREDENTIALS
/* Vista/win2k8 */
,
"Expected SEC_E_INTERNAL_ERROR or SEC_E_UNKNOWN_CREDENTIALS, got %08x
\n
"
,
st
);
st
=
pAcquireCredentialsHandleA
(
NULL
,
unisp_name_a
,
SECPKG_CRED_INBOUND
,
NULL
,
&
schanCred
,
NULL
,
NULL
,
NULL
,
NULL
);
ok
(
st
==
SEC_E_INTERNAL_ERROR
,
"Expected SEC_E_INTERNAL_ERROR, got %08x
\n
"
,
st
);
ok
(
st
==
SEC_E_INTERNAL_ERROR
||
st
==
SEC_E_UNKNOWN_CREDENTIALS
/* Vista/win2k8 */
,
"Expected SEC_E_INTERNAL_ERROR or SEC_E_UNKNOWN_CREDENTIALS, got %08x
\n
"
,
st
);
/* No cert in SCHANNEL_CRED succeeds for outbound.. */
schanCred
.
dwVersion
=
SCHANNEL_CRED_VERSION
;
...
...
@@ -246,8 +248,9 @@ static void testAcquireSecurityContext(void)
/* but fails for inbound. */
st
=
pAcquireCredentialsHandleA
(
NULL
,
unisp_name_a
,
SECPKG_CRED_INBOUND
,
NULL
,
&
schanCred
,
NULL
,
NULL
,
&
cred
,
NULL
);
ok
(
st
==
SEC_E_NO_CREDENTIALS
,
"Expected SEC_E_NO_CREDENTIALS, got %08x
\n
"
,
st
);
ok
(
st
==
SEC_E_NO_CREDENTIALS
||
st
==
SEC_E_OK
/* Vista/win2k8 */
,
"Expected SEC_E_NO_CREDENTIALS or SEC_E_OK, got %08x
\n
"
,
st
);
if
(
0
)
{
...
...
@@ -328,21 +331,25 @@ static void testAcquireSecurityContext(void)
schanCred
.
dwVersion
=
SCH_CRED_V1
;
st
=
pAcquireCredentialsHandleA
(
NULL
,
unisp_name_a
,
SECPKG_CRED_OUTBOUND
,
NULL
,
&
schanCred
,
NULL
,
NULL
,
&
cred
,
NULL
);
ok
(
st
==
SEC_E_INTERNAL_ERROR
,
"Expected SEC_E_INTERNAL_ERROR, got %08x
\n
"
,
st
);
ok
(
st
==
SEC_E_INTERNAL_ERROR
||
st
==
SEC_E_UNKNOWN_CREDENTIALS
/* Vista/win2k8 */
,
"Expected SEC_E_INTERNAL_ERROR or SEC_E_UNKNOWN_CREDENTIALS, got %08x
\n
"
,
st
);
st
=
pAcquireCredentialsHandleA
(
NULL
,
unisp_name_a
,
SECPKG_CRED_INBOUND
,
NULL
,
&
schanCred
,
NULL
,
NULL
,
&
cred
,
NULL
);
ok
(
st
==
SEC_E_INTERNAL_ERROR
,
"Expected SEC_E_INTERNAL_ERROR, got %08x
\n
"
,
st
);
ok
(
st
==
SEC_E_INTERNAL_ERROR
||
st
==
SEC_E_UNKNOWN_CREDENTIALS
/* Vista/win2k8 */
,
"Expected SEC_E_INTERNAL_ERROR or SEC_E_UNKNOWN_CREDENTIALS, got %08x
\n
"
,
st
);
schanCred
.
dwVersion
=
SCH_CRED_V2
;
st
=
pAcquireCredentialsHandleA
(
NULL
,
unisp_name_a
,
SECPKG_CRED_OUTBOUND
,
NULL
,
&
schanCred
,
NULL
,
NULL
,
&
cred
,
NULL
);
ok
(
st
==
SEC_E_INTERNAL_ERROR
,
"Expected SEC_E_INTERNAL_ERROR, got %08x
\n
"
,
st
);
ok
(
st
==
SEC_E_INTERNAL_ERROR
||
st
==
SEC_E_UNKNOWN_CREDENTIALS
/* Vista/win2k8 */
,
"Expected SEC_E_INTERNAL_ERROR or SEC_E_UNKNOWN_CREDENTIALS, got %08x
\n
"
,
st
);
st
=
pAcquireCredentialsHandleA
(
NULL
,
unisp_name_a
,
SECPKG_CRED_INBOUND
,
NULL
,
&
schanCred
,
NULL
,
NULL
,
&
cred
,
NULL
);
ok
(
st
==
SEC_E_INTERNAL_ERROR
,
"Expected SEC_E_INTERNAL_ERROR, got %08x
\n
"
,
st
);
ok
(
st
==
SEC_E_INTERNAL_ERROR
||
st
==
SEC_E_UNKNOWN_CREDENTIALS
/* Vista/win2k8 */
,
"Expected SEC_E_INTERNAL_ERROR or SEC_E_UNKNOWN_CREDENTIALS, got %08x
\n
"
,
st
);
/* Succeeds on V3 or higher */
schanCred
.
dwVersion
=
SCH_CRED_V3
;
...
...
@@ -374,19 +381,22 @@ static void testAcquireSecurityContext(void)
schanCred
.
paCred
=
certs
;
st
=
pAcquireCredentialsHandleA
(
NULL
,
unisp_name_a
,
SECPKG_CRED_OUTBOUND
,
NULL
,
&
schanCred
,
NULL
,
NULL
,
&
cred
,
NULL
);
ok
(
st
==
SEC_E_UNKNOWN_CREDENTIALS
,
"Expected SEC_E_UNKNOWN_CREDENTIALS, got %08x
\n
"
,
st
);
ok
(
st
==
SEC_E_UNKNOWN_CREDENTIALS
||
st
==
SEC_E_NO_CREDENTIALS
/* Vista/win2k8 */
,
"Expected SEC_E_UNKNOWN_CREDENTIALS or SEC_E_NO_CREDENTIALS, got %08x
\n
"
,
st
);
st
=
pAcquireCredentialsHandleA
(
NULL
,
unisp_name_a
,
SECPKG_CRED_INBOUND
,
NULL
,
&
schanCred
,
NULL
,
NULL
,
&
cred
,
NULL
);
ok
(
st
==
SEC_E_UNKNOWN_CREDENTIALS
,
"Expected SEC_E_UNKNOWN_CREDENTIALS, got %08x
\n
"
,
st
);
ok
(
st
==
SEC_E_UNKNOWN_CREDENTIALS
||
st
==
SEC_E_NO_CREDENTIALS
,
"Expected SEC_E_UNKNOWN_CREDENTIALS, got %08x
\n
"
,
st
);
tmp
=
certs
[
0
];
certs
[
0
]
=
certs
[
1
];
certs
[
1
]
=
tmp
;
st
=
pAcquireCredentialsHandleA
(
NULL
,
unisp_name_a
,
SECPKG_CRED_OUTBOUND
,
NULL
,
&
schanCred
,
NULL
,
NULL
,
&
cred
,
NULL
);
ok
(
st
==
SEC_E_UNKNOWN_CREDENTIALS
,
"Expected SEC_E_UNKNOWN_CREDENTIALS, got %08x
\n
"
,
st
);
ok
(
st
==
SEC_E_UNKNOWN_CREDENTIALS
||
st
==
SEC_E_NO_CREDENTIALS
,
"Expected SEC_E_UNKNOWN_CREDENTIALS, got %08x
\n
"
,
st
);
st
=
pAcquireCredentialsHandleA
(
NULL
,
unisp_name_a
,
SECPKG_CRED_INBOUND
,
NULL
,
&
schanCred
,
NULL
,
NULL
,
&
cred
,
NULL
);
ok
(
st
==
SEC_E_UNKNOWN_CREDENTIALS
,
...
...
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