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
016795a9
Commit
016795a9
authored
Mar 10, 2011
by
Juan Lang
Committed by
Alexandre Julliard
Mar 11, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cryptnet/tests: Partially revert commit
de6e33f3
.
It introduced new (old) test failures on some still-tested Windows versions.
parent
819eb528
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
cryptnet.c
dlls/cryptnet/tests/cryptnet.c
+9
-6
No files found.
dlls/cryptnet/tests/cryptnet.c
View file @
016795a9
...
...
@@ -365,8 +365,9 @@ static void test_retrieveObjectByUrl(void)
SetLastError
(
0xdeadbeef
);
ret
=
CryptRetrieveObjectByUrlA
(
url
,
CONTEXT_OID_CRL
,
0
,
0
,
(
void
**
)
&
crl
,
NULL
,
NULL
,
NULL
,
NULL
);
/* w2k3,XP, newer w2k: CRYPT_E_NO_MATCH */
ok
(
!
ret
&&
(
GetLastError
()
==
CRYPT_E_NO_MATCH
),
/* w2k3,XP, newer w2k: CRYPT_E_NO_MATCH, older w2k: CRYPT_E_ASN1_BADTAG */
ok
(
!
ret
&&
(
GetLastError
()
==
CRYPT_E_NO_MATCH
||
broken
(
GetLastError
()
==
CRYPT_E_NO_MATCH
)),
"got 0x%x/%u (expected CRYPT_E_NO_MATCH)
\n
"
,
GetLastError
(),
GetLastError
());
/* only newer versions of cryptnet do the cleanup */
...
...
@@ -405,8 +406,9 @@ static void test_retrieveObjectByUrl(void)
cert
=
(
PCCERT_CONTEXT
)
0xdeadbeef
;
ret
=
CryptRetrieveObjectByUrlA
(
url
,
CONTEXT_OID_CERTIFICATE
,
0
,
0
,
(
void
**
)
&
cert
,
NULL
,
NULL
,
NULL
,
&
aux
);
/* w2k: success */
ok
(
ret
,
"got %u with 0x%x/%u (expected '!=0' or '0' with E_INVALIDARG)
\n
"
,
/* w2k: failure with E_INVALIDARG */
ok
(
ret
||
broken
(
GetLastError
()
==
E_INVALIDARG
),
"got %u with 0x%x/%u (expected '!=0' or '0' with E_INVALIDARG)
\n
"
,
ret
,
GetLastError
(),
GetLastError
());
if
(
cert
&&
cert
!=
(
PCCERT_CONTEXT
)
0xdeadbeef
)
CertFreeCertificateContext
(
cert
);
...
...
@@ -415,8 +417,9 @@ static void test_retrieveObjectByUrl(void)
aux
.
cbSize
=
sizeof
(
aux
);
ret
=
CryptRetrieveObjectByUrlA
(
url
,
CONTEXT_OID_CERTIFICATE
,
0
,
0
,
(
void
**
)
&
cert
,
NULL
,
NULL
,
NULL
,
&
aux
);
/* w2k: success */
ok
(
ret
,
"got %u with 0x%x/%u (expected '!=0' or '0' with E_INVALIDARG)
\n
"
,
/* w2k: failure with E_INVALIDARG */
ok
(
ret
||
broken
(
GetLastError
()
==
E_INVALIDARG
),
"got %u with 0x%x/%u (expected '!=0' or '0' with E_INVALIDARG)
\n
"
,
ret
,
GetLastError
(),
GetLastError
());
if
(
!
ret
)
{
/* no more tests useful */
...
...
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