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
95b8f49d
Commit
95b8f49d
authored
Feb 09, 2009
by
Juan Lang
Committed by
Alexandre Julliard
Feb 10, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Fix some tests on Windows 98.
parent
7cc615e6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
8 deletions
+13
-8
ctl.c
dlls/crypt32/tests/ctl.c
+13
-8
No files found.
dlls/crypt32/tests/ctl.c
View file @
95b8f49d
...
...
@@ -135,17 +135,19 @@ static void testCreateCTL(void)
*/
SetLastError
(
0xdeadbeef
);
ctl
=
CertCreateCTLContext
(
X509_ASN_ENCODING
,
signedCTL
,
sizeof
(
signedCTL
));
ok
(
!
ctl
&&
ok
(
(
!
ctl
&&
(
GetLastError
()
==
ERROR_INVALID_DATA
||
GetLastError
()
==
CRYPT_E_UNEXPECTED_MSG_TYPE
),
/* win9x */
GetLastError
()
==
CRYPT_E_UNEXPECTED_MSG_TYPE
/* win9x */
))
||
broken
(
ctl
/* some win98 */
),
"expected ERROR_INVALID_DATA, got %d (0x%08x)
\n
"
,
GetLastError
(),
GetLastError
());
SetLastError
(
0xdeadbeef
);
ctl
=
CertCreateCTLContext
(
X509_ASN_ENCODING
,
ctlWithOneEntry
,
sizeof
(
ctlWithOneEntry
));
ok
(
!
ctl
&&
ok
(
(
!
ctl
&&
(
GetLastError
()
==
ERROR_INVALID_DATA
||
GetLastError
()
==
OSS_DATA_ERROR
),
/* win9x */
GetLastError
()
==
CRYPT_E_UNEXPECTED_MSG_TYPE
/* win9x */
))
||
broken
(
ctl
/* some win98 */
),
"expected ERROR_INVALID_DATA, got %d (0x%08x)
\n
"
,
GetLastError
(),
GetLastError
());
SetLastError
(
0xdeadbeef
);
...
...
@@ -228,12 +230,15 @@ static void testCTLProperties(void)
/* An implicit property */
ret
=
CertGetCTLContextProperty
(
ctl
,
CERT_ACCESS_STATE_PROP_ID
,
NULL
,
&
size
);
ok
(
ret
,
"CertGetCTLContextProperty failed: %08x
\n
"
,
GetLastError
());
ok
(
ret
||
broken
(
GetLastError
()
==
CRYPT_E_NOT_FOUND
/* some win98 */
),
"CertGetCTLContextProperty failed: %08x
\n
"
,
GetLastError
());
ret
=
CertGetCTLContextProperty
(
ctl
,
CERT_ACCESS_STATE_PROP_ID
,
&
access
,
&
size
);
ok
(
ret
,
"CertGetCTLContextProperty failed: %08x
\n
"
,
GetLastError
());
ok
(
!
(
access
&
CERT_ACCESS_STATE_WRITE_PERSIST_FLAG
),
"Didn't expect a persisted cert
\n
"
);
ok
(
ret
||
broken
(
GetLastError
()
==
CRYPT_E_NOT_FOUND
/* some win98 */
),
"CertGetCTLContextProperty failed: %08x
\n
"
,
GetLastError
());
if
(
ret
)
ok
(
!
(
access
&
CERT_ACCESS_STATE_WRITE_PERSIST_FLAG
),
"Didn't expect a persisted cert
\n
"
);
checkHash
(
signedCTLWithCTLInnerContent
,
sizeof
(
signedCTLWithCTLInnerContent
),
CALG_SHA1
,
ctl
,
CERT_HASH_PROP_ID
);
...
...
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