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
532f57a2
Commit
532f57a2
authored
Nov 24, 2006
by
Louis Lenders
Committed by
Alexandre Julliard
Nov 27, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Add test for I_CryptInstallOssGlobal.
parent
3fa930cb
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
main.c
dlls/crypt32/tests/main.c
+19
-0
No files found.
dlls/crypt32/tests/main.c
View file @
532f57a2
...
@@ -343,6 +343,24 @@ static void test_getDefaultCryptProv(void)
...
@@ -343,6 +343,24 @@ static void test_getDefaultCryptProv(void)
CryptReleaseContext
(
prov
,
0
);
CryptReleaseContext
(
prov
,
0
);
}
}
typedef
int
(
WINAPI
*
I_CryptInstallOssGlobal
)(
DWORD
,
DWORD
,
DWORD
);
static
void
test_CryptInstallOssGlobal
(
void
)
{
int
ret
,
i
;
I_CryptInstallOssGlobal
pI_CryptInstallOssGlobal
;
if
(
!
hCrypt
)
return
;
pI_CryptInstallOssGlobal
=
(
I_CryptInstallOssGlobal
)
GetProcAddress
(
hCrypt
,
"I_CryptInstallOssGlobal"
);
/* passing in some random values to I_CryptInstallOssGlobal, it always returns 9 the first time, then 10, 11 etc.*/
for
(
i
=
0
;
i
<
30
;
i
++
)
{
ret
=
pI_CryptInstallOssGlobal
(
rand
(),
rand
(),
rand
());
ok
((
9
+
i
)
==
ret
,
"Expected %d, got %d
\n
"
,(
9
+
i
),
ret
);
}
}
START_TEST
(
main
)
START_TEST
(
main
)
{
{
hCrypt
=
LoadLibraryA
(
"crypt32.dll"
);
hCrypt
=
LoadLibraryA
(
"crypt32.dll"
);
...
@@ -354,4 +372,5 @@ START_TEST(main)
...
@@ -354,4 +372,5 @@ START_TEST(main)
test_cryptTls
();
test_cryptTls
();
test_readTrustedPublisherDWORD
();
test_readTrustedPublisherDWORD
();
test_getDefaultCryptProv
();
test_getDefaultCryptProv
();
test_CryptInstallOssGlobal
();
}
}
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