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
5618fdb3
Commit
5618fdb3
authored
Feb 14, 2008
by
Juan Lang
Committed by
Alexandre Julliard
Feb 16, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Fix test failures on NT4.
parent
3138f87e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
encode.c
dlls/crypt32/tests/encode.c
+15
-0
No files found.
dlls/crypt32/tests/encode.c
View file @
5618fdb3
...
...
@@ -5212,6 +5212,11 @@ static void test_encodePKCSSignerInfo(DWORD dwEncoding)
SetLastError
(
0xdeadbeef
);
ret
=
pCryptEncodeObjectEx
(
dwEncoding
,
PKCS7_SIGNER_INFO
,
&
info
,
CRYPT_ENCODE_ALLOC_FLAG
,
NULL
,
(
BYTE
*
)
&
buf
,
&
size
);
if
(
!
ret
&&
GetLastError
()
==
ERROR_FILE_NOT_FOUND
)
{
skip
(
"no PKCS7_SIGNER_INFO encode support
\n
"
);
return
;
}
ok
(
!
ret
&&
GetLastError
()
==
E_INVALIDARG
,
"Expected E_INVALIDARG, got %08x
\n
"
,
GetLastError
());
/* To be encoded, a signer must have an issuer at least, and the encoding
...
...
@@ -5509,6 +5514,11 @@ static void test_encodeNameConstraints(DWORD dwEncoding)
ret
=
pCryptEncodeObjectEx
(
dwEncoding
,
X509_NAME_CONSTRAINTS
,
&
constraints
,
CRYPT_ENCODE_ALLOC_FLAG
,
NULL
,
(
BYTE
*
)
&
buf
,
&
size
);
if
(
!
ret
&&
GetLastError
()
==
ERROR_FILE_NOT_FOUND
)
{
skip
(
"no X509_NAME_CONSTRAINTS encode support
\n
"
);
return
;
}
ok
(
ret
,
"CryptEncodeObjectEx failed: %08x
\n
"
,
GetLastError
());
if
(
ret
)
{
...
...
@@ -5660,6 +5670,11 @@ static void test_decodeNameConstraints(DWORD dwEncoding)
encodedNameConstraints
[
i
].
encoded
.
pbData
,
encodedNameConstraints
[
i
].
encoded
.
cbData
,
CRYPT_DECODE_ALLOC_FLAG
,
NULL
,
&
constraints
,
&
size
);
if
(
!
ret
&&
GetLastError
()
==
ERROR_FILE_NOT_FOUND
)
{
skip
(
"no X509_NAME_CONSTRAINTS decode support
\n
"
);
return
;
}
ok
(
ret
,
"%d: CryptDecodeObjectEx failed: %08x
\n
"
,
i
,
GetLastError
());
if
(
ret
)
{
...
...
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