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
eee17920
Commit
eee17920
authored
Nov 20, 2009
by
Juan Lang
Committed by
Alexandre Julliard
Nov 21, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32/tests: Fix tests on Win9x/ME.
parent
1a392e1a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
14 deletions
+25
-14
cert.c
dlls/crypt32/tests/cert.c
+25
-14
No files found.
dlls/crypt32/tests/cert.c
View file @
eee17920
...
...
@@ -3200,21 +3200,28 @@ static void testVerifyRevocation(void)
SetLastError
(
0xdeadbeef
);
ret
=
CertVerifyRevocation
(
X509_ASN_ENCODING
,
CERT_CONTEXT_REVOCATION_TYPE
,
1
,
(
void
**
)
&
certs
[
1
],
0
,
NULL
,
&
status
);
todo_wine
ok
(
!
ret
&&
GetLastError
()
==
CRYPT_E_REVOCATION_OFFLINE
,
"expected CRYPT_E_REVOCATION_OFFLINE, got %08x
\n
"
,
GetLastError
());
todo_wine
ok
(
status
.
dwError
==
CRYPT_E_REVOCATION_OFFLINE
,
"expected CRYPT_E_REVOCATION_OFFLINE, got %08x
\n
"
,
status
.
dwError
);
ok
(
!
ret
&&
(
GetLastError
()
==
CRYPT_E_NO_REVOCATION_CHECK
/* Win9x */
||
GetLastError
()
==
CRYPT_E_REVOCATION_OFFLINE
),
"expected CRYPT_E_NO_REVOCATION_CHECK or CRYPT_E_REVOCATION_OFFLINE, got %08x
\n
"
,
GetLastError
());
ok
(
status
.
dwError
==
CRYPT_E_NO_REVOCATION_CHECK
/* Win9x */
||
status
.
dwError
==
CRYPT_E_REVOCATION_OFFLINE
,
"expected CRYPT_E_NO_REVOCATION_CHECK or CRYPT_E_REVOCATION_OFFLINE, got %08x
\n
"
,
status
.
dwError
);
ok
(
status
.
dwIndex
==
0
,
"expected index 0, got %d
\n
"
,
status
.
dwIndex
);
/* Both certs together can't, either (they're not CRLs) */
SetLastError
(
0xdeadbeef
);
ret
=
CertVerifyRevocation
(
X509_ASN_ENCODING
,
CERT_CONTEXT_REVOCATION_TYPE
,
2
,
(
void
**
)
certs
,
0
,
NULL
,
&
status
);
ok
(
!
ret
&&
GetLastError
()
==
CRYPT_E_NO_REVOCATION_CHECK
,
"expected CRYPT_E_NO_REVOCATION_CHECK, got %08x
\n
"
,
GetLastError
());
ok
(
status
.
dwError
==
CRYPT_E_NO_REVOCATION_CHECK
,
"expected CRYPT_E_NO_REVOCATION_CHECK, got %08x
\n
"
,
status
.
dwError
);
ok
(
!
ret
&&
(
GetLastError
()
==
CRYPT_E_NO_REVOCATION_CHECK
||
GetLastError
()
==
CRYPT_E_REVOCATION_OFFLINE
/* WinME */
),
"expected CRYPT_E_NO_REVOCATION_CHECK or CRYPT_E_REVOCATION_OFFLINE, got %08x
\n
"
,
GetLastError
());
ok
(
status
.
dwError
==
CRYPT_E_NO_REVOCATION_CHECK
||
status
.
dwError
==
CRYPT_E_REVOCATION_OFFLINE
/* WinME */
,
"expected CRYPT_E_NO_REVOCATION_CHECK or CRYPT_E_REVOCATION_OFFLINE, got %08x
\n
"
,
status
.
dwError
);
ok
(
status
.
dwIndex
==
0
,
"expected index 0, got %d
\n
"
,
status
.
dwIndex
);
ok
(
status
.
dwIndex
==
0
,
"expected index 0, got %d
\n
"
,
status
.
dwIndex
);
/* Now add a CRL to the hCrlStore */
revPara
.
hCrlStore
=
CertOpenStore
(
CERT_STORE_PROV_MEMORY
,
0
,
0
,
...
...
@@ -3224,10 +3231,14 @@ static void testVerifyRevocation(void)
SetLastError
(
0xdeadbeef
);
ret
=
CertVerifyRevocation
(
X509_ASN_ENCODING
,
CERT_CONTEXT_REVOCATION_TYPE
,
2
,
(
void
**
)
certs
,
0
,
&
revPara
,
&
status
);
ok
(
!
ret
&&
GetLastError
()
==
CRYPT_E_NO_REVOCATION_CHECK
,
"expected CRYPT_E_NO_REVOCATION_CHECK, got %08x
\n
"
,
GetLastError
());
ok
(
status
.
dwError
==
CRYPT_E_NO_REVOCATION_CHECK
,
"expected CRYPT_E_NO_REVOCATION_CHECK, got %08x
\n
"
,
status
.
dwError
);
ok
(
!
ret
&&
(
GetLastError
()
==
CRYPT_E_NO_REVOCATION_CHECK
||
GetLastError
()
==
CRYPT_E_REVOCATION_OFFLINE
/* WinME */
),
"expected CRYPT_E_NO_REVOCATION_CHECK or CRYPT_E_REVOCATION_OFFLINE, got %08x
\n
"
,
GetLastError
());
ok
(
status
.
dwError
==
CRYPT_E_NO_REVOCATION_CHECK
||
status
.
dwError
==
CRYPT_E_REVOCATION_OFFLINE
/* WinME */
,
"expected CRYPT_E_NO_REVOCATION_CHECK or CRYPT_E_REVOCATION_OFFLINE, got %08x
\n
"
,
status
.
dwError
);
ok
(
status
.
dwIndex
==
0
,
"expected index 0, got %d
\n
"
,
status
.
dwIndex
);
/* Specifying CERT_VERIFY_REV_CHAIN_FLAG doesn't change things either */
SetLastError
(
0xdeadbeef
);
...
...
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