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
de6e33f3
Commit
de6e33f3
authored
Feb 25, 2011
by
Austin English
Committed by
Alexandre Julliard
Feb 28, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cryptnet/tests: Remove win9x hacks.
parent
5c9d341c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
12 deletions
+7
-12
cryptnet.c
dlls/cryptnet/tests/cryptnet.c
+7
-12
No files found.
dlls/cryptnet/tests/cryptnet.c
View file @
de6e33f3
...
...
@@ -365,12 +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, 95: OSS_DATA_ERROR */
ok
(
!
ret
&&
(
GetLastError
()
==
CRYPT_E_NO_MATCH
||
GetLastError
()
==
CRYPT_E_ASN1_BADTAG
||
GetLastError
()
==
OSS_DATA_ERROR
),
"got 0x%x/%u (expected CRYPT_E_NO_MATCH or CRYPT_E_ASN1_BADTAG or "
"OSS_DATA_ERROR)
\n
"
,
GetLastError
(),
GetLastError
());
/* w2k3,XP, newer w2k: CRYPT_E_NO_MATCH */
ok
(
!
ret
&&
(
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 */
if
(
!
ret
&&
GetLastError
()
!=
CRYPT_E_ASN1_BADTAG
&&
...
...
@@ -408,9 +405,8 @@ 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, 9x: fail with E_INVALIDARG */
ok
(
ret
||
(
GetLastError
()
==
E_INVALIDARG
),
"got %u with 0x%x/%u (expected '!=0' or '0' with E_INVALIDARG)
\n
"
,
/* w2k: success */
ok
(
ret
,
"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
);
...
...
@@ -419,9 +415,8 @@ 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, 9x: fail with E_INVALIDARG */
ok
(
ret
||
(
GetLastError
()
==
E_INVALIDARG
),
"got %u with 0x%x/%u (expected '!=0' or '0' with E_INVALIDARG)
\n
"
,
/* w2k: success */
ok
(
ret
,
"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