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
49c1a347
Commit
49c1a347
authored
Nov 10, 2009
by
Juan Lang
Committed by
Alexandre Julliard
Nov 11, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Fix some test failures on older crypt32 versions.
parent
1547b474
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
4 deletions
+28
-4
encode.c
dlls/crypt32/tests/encode.c
+28
-4
No files found.
dlls/crypt32/tests/encode.c
View file @
49c1a347
...
...
@@ -7523,7 +7523,13 @@ static void test_encodeCertPolicyMappings(DWORD dwEncoding)
memset
(
&
info
,
0
,
sizeof
(
info
));
ret
=
pCryptEncodeObjectEx
(
dwEncoding
,
mappingOids
[
i
],
&
info
,
CRYPT_ENCODE_ALLOC_FLAG
,
NULL
,
&
buf
,
&
size
);
ok
(
ret
,
"CryptEncodeObjectEx failed: %08x
\n
"
,
GetLastError
());
ok
(
ret
||
broken
(
GetLastError
()
==
ERROR_FILE_NOT_FOUND
),
"CryptEncodeObjectEx failed: %08x
\n
"
,
GetLastError
());
if
(
!
ret
&&
GetLastError
()
==
ERROR_FILE_NOT_FOUND
)
{
win_skip
(
"no policy mappings support
\n
"
);
return
;
}
if
(
ret
)
{
ok
(
size
==
sizeof
(
emptySequence
),
"unexpected size %d
\n
"
,
size
);
...
...
@@ -7582,7 +7588,13 @@ static void test_decodeCertPolicyMappings(DWORD dwEncoding)
ret
=
pCryptDecodeObjectEx
(
dwEncoding
,
mappingOids
[
i
],
emptySequence
,
sizeof
(
emptySequence
),
CRYPT_DECODE_ALLOC_FLAG
,
NULL
,
&
info
,
&
size
);
ok
(
ret
,
"CryptDecodeObjectEx failed: %08x
\n
"
,
GetLastError
());
ok
(
ret
||
broken
(
GetLastError
()
==
ERROR_FILE_NOT_FOUND
),
"CryptDecodeObjectEx failed: %08x
\n
"
,
GetLastError
());
if
(
!
ret
&&
GetLastError
()
==
ERROR_FILE_NOT_FOUND
)
{
win_skip
(
"no policy mappings support
\n
"
);
return
;
}
if
(
ret
)
{
ok
(
info
->
cPolicyMapping
==
0
,
...
...
@@ -7649,7 +7661,13 @@ static void test_encodeCertPolicyConstraints(DWORD dwEncoding)
*/
ret
=
pCryptEncodeObjectEx
(
dwEncoding
,
X509_POLICY_CONSTRAINTS
,
&
info
,
CRYPT_ENCODE_ALLOC_FLAG
,
NULL
,
&
buf
,
&
size
);
ok
(
ret
,
"CryptEncodeObjectEx failed: %08x
\n
"
,
GetLastError
());
ok
(
ret
||
broken
(
GetLastError
()
==
ERROR_FILE_NOT_FOUND
),
"CryptEncodeObjectEx failed: %08x
\n
"
,
GetLastError
());
if
(
!
ret
&&
GetLastError
()
==
ERROR_FILE_NOT_FOUND
)
{
win_skip
(
"no policy constraints support
\n
"
);
return
;
}
if
(
ret
)
{
ok
(
size
==
sizeof
(
emptySequence
),
"unexpected size %d
\n
"
,
size
);
...
...
@@ -7716,7 +7734,13 @@ static void test_decodeCertPolicyConstraints(DWORD dwEncoding)
ret
=
pCryptDecodeObjectEx
(
dwEncoding
,
X509_POLICY_CONSTRAINTS
,
emptySequence
,
sizeof
(
emptySequence
),
CRYPT_DECODE_ALLOC_FLAG
,
NULL
,
&
info
,
&
size
);
ok
(
ret
,
"CryptDecodeObjectEx failed: %08x
\n
"
,
GetLastError
());
ok
(
ret
||
broken
(
GetLastError
()
==
ERROR_FILE_NOT_FOUND
),
"CryptDecodeObjectEx failed: %08x
\n
"
,
GetLastError
());
if
(
!
ret
&&
GetLastError
()
==
ERROR_FILE_NOT_FOUND
)
{
win_skip
(
"no policy mappings support
\n
"
);
return
;
}
if
(
ret
)
{
ok
(
!
info
->
fRequireExplicitPolicy
,
...
...
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