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
4ac3fe7f
Commit
4ac3fe7f
authored
Sep 22, 2008
by
Henri Verbeet
Committed by
Alexandre Julliard
Sep 23, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
secur32: Skip schannel tests if schannel is unavailable.
parent
3a498da7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
schannel.c
dlls/secur32/tests/schannel.c
+26
-0
No files found.
dlls/secur32/tests/schannel.c
View file @
4ac3fe7f
...
...
@@ -30,6 +30,8 @@
static
HMODULE
secdll
,
crypt32dll
;
static
ACQUIRE_CREDENTIALS_HANDLE_FN_A
pAcquireCredentialsHandleA
;
static
ENUMERATE_SECURITY_PACKAGES_FN_A
pEnumerateSecurityPackagesA
;
static
FREE_CONTEXT_BUFFER_FN
pFreeContextBuffer
;
static
FREE_CREDENTIALS_HANDLE_FN
pFreeCredentialsHandle
;
static
QUERY_CREDENTIALS_ATTRIBUTES_FN_A
pQueryCredentialsAttributesA
;
...
...
@@ -120,6 +122,8 @@ static void InitFunctionPtrs(void)
if
(
secdll
)
{
GET_PROC
(
secdll
,
AcquireCredentialsHandleA
);
GET_PROC
(
secdll
,
EnumerateSecurityPackagesA
);
GET_PROC
(
secdll
,
FreeContextBuffer
);
GET_PROC
(
secdll
,
FreeCredentialsHandle
);
GET_PROC
(
secdll
,
QueryCredentialsAttributesA
);
}
...
...
@@ -150,6 +154,9 @@ static void test_strength(PCredHandle handle)
static
void
testAcquireSecurityContext
(
void
)
{
BOOL
has_schannel
=
FALSE
;
SecPkgInfoA
*
package_info
;
ULONG
i
;
SECURITY_STATUS
st
;
CredHandle
cred
;
TimeStamp
exp
;
...
...
@@ -163,12 +170,31 @@ static void testAcquireSecurityContext(void)
CRYPT_KEY_PROV_INFO
keyProvInfo
;
if
(
!
pAcquireCredentialsHandleA
||
!
pCertCreateCertificateContext
||
!
pEnumerateSecurityPackagesA
||
!
pFreeContextBuffer
||
!
pFreeCredentialsHandle
||
!
pCryptAcquireContextW
)
{
skip
(
"Needed functions are not available
\n
"
);
return
;
}
if
(
SUCCEEDED
(
pEnumerateSecurityPackagesA
(
&
i
,
&
package_info
)))
{
while
(
i
--
)
{
if
(
!
strcmp
(
package_info
[
i
].
Name
,
unisp_name_a
))
{
has_schannel
=
TRUE
;
break
;
}
}
pFreeContextBuffer
(
package_info
);
}
if
(
!
has_schannel
)
{
skip
(
"Schannel not available
\n
"
);
return
;
}
lstrcpyW
(
ms_def_prov_w
,
MS_DEF_PROV_W
);
keyProvInfo
.
pwszContainerName
=
cspNameW
;
...
...
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