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
25a03754
Commit
25a03754
authored
Dec 12, 2013
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Dec 13, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
secur32/tests: Add a test for QueryCredentialsAttributes(SECPKG_CRED_ATTR_NAMES).
parent
476f57fd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
schannel.c
dlls/secur32/tests/schannel.c
+9
-0
No files found.
dlls/secur32/tests/schannel.c
View file @
25a03754
...
...
@@ -198,6 +198,7 @@ static void testAcquireSecurityContext(void)
ULONG
i
;
SECURITY_STATUS
st
;
CredHandle
cred
;
SecPkgCredentials_NamesA
names
;
TimeStamp
exp
;
SCHANNEL_CRED
schanCred
;
PCCERT_CONTEXT
certs
[
2
];
...
...
@@ -299,6 +300,10 @@ static void testAcquireSecurityContext(void)
ok
(
st
==
SEC_E_OK
,
"AcquireCredentialsHandleA failed: %08x
\n
"
,
st
);
/* expriy is indeterminate in win2k3 */
trace
(
"expiry: %08x%08x
\n
"
,
exp
.
HighPart
,
exp
.
LowPart
);
st
=
pQueryCredentialsAttributesA
(
&
cred
,
SECPKG_CRED_ATTR_NAMES
,
&
names
);
ok
(
st
==
SEC_E_NO_CREDENTIALS
||
st
==
SEC_E_UNSUPPORTED_FUNCTION
/* before Vista */
,
"expected SEC_E_NO_CREDENTIALS, got %08x
\n
"
,
st
);
pFreeCredentialsHandle
(
&
cred
);
/* Bad version in SCHANNEL_CRED */
...
...
@@ -621,6 +626,7 @@ static void test_communication(void)
SCHANNEL_CRED
cred
;
CredHandle
cred_handle
;
CtxtHandle
context
;
SecPkgCredentials_NamesA
names
;
SecPkgContext_StreamSizes
sizes
;
SecPkgContext_ConnectionInfo
conn_info
;
CERT_CONTEXT
*
cert
;
...
...
@@ -790,6 +796,9 @@ todo_wine
return
;
}
status
=
pQueryCredentialsAttributesA
(
&
cred_handle
,
SECPKG_CRED_ATTR_NAMES
,
&
names
);
ok
(
status
==
SEC_E_NO_CREDENTIALS
||
status
==
SEC_E_UNSUPPORTED_FUNCTION
/* before Vista */
,
"expected SEC_E_NO_CREDENTIALS, got %08x
\n
"
,
status
);
status
=
pQueryContextAttributesA
(
&
context
,
SECPKG_ATTR_REMOTE_CERT_CONTEXT
,
(
void
*
)
&
cert
);
ok
(
status
==
SEC_E_OK
,
"QueryContextAttributesW(SECPKG_ATTR_REMOTE_CERT_CONTEXT) failed: %08x
\n
"
,
status
);
if
(
status
==
SEC_E_OK
)
{
...
...
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