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
12330b43
Commit
12330b43
authored
Sep 02, 2008
by
James Hawkins
Committed by
Alexandre Julliard
Sep 03, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Fix several test failures in win9x.
parent
09454507
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
6 deletions
+18
-6
ctl.c
dlls/crypt32/tests/ctl.c
+18
-6
No files found.
dlls/crypt32/tests/ctl.c
View file @
12330b43
...
...
@@ -117,13 +117,17 @@ static void testCreateCTL(void)
"expected E_INVALIDARG, got %08x
\n
"
,
GetLastError
());
SetLastError
(
0xdeadbeef
);
ctl
=
CertCreateCTLContext
(
X509_ASN_ENCODING
,
NULL
,
0
);
ok
(
!
ctl
&&
GetLastError
()
==
ERROR_INVALID_DATA
,
ok
(
!
ctl
&&
(
GetLastError
()
==
ERROR_INVALID_DATA
||
GetLastError
()
==
OSS_MORE_INPUT
),
/* win9x */
"expected ERROR_INVALID_DATA, got %d (0x%08x)
\n
"
,
GetLastError
(),
GetLastError
());
/* An empty CTL can't be created.. */
SetLastError
(
0xdeadbeef
);
ctl
=
CertCreateCTLContext
(
X509_ASN_ENCODING
,
emptyCTL
,
sizeof
(
emptyCTL
));
ok
(
!
ctl
&&
GetLastError
()
==
ERROR_INVALID_DATA
,
ok
(
!
ctl
&&
(
GetLastError
()
==
ERROR_INVALID_DATA
||
GetLastError
()
==
OSS_DATA_ERROR
),
/* win9x */
"expected ERROR_INVALID_DATA, got %d (0x%08x)
\n
"
,
GetLastError
(),
GetLastError
());
/* Nor can any of these "signed" CTLs whose inner content OID isn't
...
...
@@ -131,19 +135,25 @@ static void testCreateCTL(void)
*/
SetLastError
(
0xdeadbeef
);
ctl
=
CertCreateCTLContext
(
X509_ASN_ENCODING
,
signedCTL
,
sizeof
(
signedCTL
));
ok
(
!
ctl
&&
GetLastError
()
==
ERROR_INVALID_DATA
,
ok
(
!
ctl
&&
(
GetLastError
()
==
ERROR_INVALID_DATA
||
GetLastError
()
==
CRYPT_E_UNEXPECTED_MSG_TYPE
),
/* win9x */
"expected ERROR_INVALID_DATA, got %d (0x%08x)
\n
"
,
GetLastError
(),
GetLastError
());
SetLastError
(
0xdeadbeef
);
ctl
=
CertCreateCTLContext
(
X509_ASN_ENCODING
,
ctlWithOneEntry
,
sizeof
(
ctlWithOneEntry
));
ok
(
!
ctl
&&
GetLastError
()
==
ERROR_INVALID_DATA
,
ok
(
!
ctl
&&
(
GetLastError
()
==
ERROR_INVALID_DATA
||
GetLastError
()
==
OSS_DATA_ERROR
),
/* win9x */
"expected ERROR_INVALID_DATA, got %d (0x%08x)
\n
"
,
GetLastError
(),
GetLastError
());
SetLastError
(
0xdeadbeef
);
ctl
=
CertCreateCTLContext
(
X509_ASN_ENCODING
,
signedCTLWithSubjectAlgorithm
,
sizeof
(
signedCTLWithSubjectAlgorithm
));
ok
(
!
ctl
&&
GetLastError
()
==
ERROR_INVALID_DATA
,
ok
(
!
ctl
&&
(
GetLastError
()
==
ERROR_INVALID_DATA
||
GetLastError
()
==
CRYPT_E_UNEXPECTED_MSG_TYPE
),
/* win9x */
"expected ERROR_INVALID_DATA, got %d (0x%08x)
\n
"
,
GetLastError
(),
GetLastError
());
/* This signed CTL with the appropriate inner content type can be decoded.
...
...
@@ -349,7 +359,9 @@ static void testAddCTLToStore(void)
signedCTLWithCTLInnerContentAndBadSig
,
sizeof
(
signedCTLWithCTLInnerContentAndBadSig
),
CERT_STORE_ADD_NEW
,
NULL
);
ok
(
!
ret
&&
GetLastError
()
==
CRYPT_E_EXISTS
,
ok
(
!
ret
&&
(
GetLastError
()
==
CRYPT_E_EXISTS
||
GetLastError
()
==
CRYPT_E_NOT_FOUND
),
/* win9x */
"expected CRYPT_E_EXISTS, got %08x
\n
"
,
GetLastError
());
CertCloseStore
(
store
,
0
);
...
...
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