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
0c8ce3aa
Commit
0c8ce3aa
authored
Nov 10, 2020
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Nov 10, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32/tests: Fix test failures under newer Windows versions.
Signed-off-by:
Dmitry Timoshkov
<
dmitry@baikal.ru
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
35886486
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
cert.c
dlls/crypt32/tests/cert.c
+5
-3
No files found.
dlls/crypt32/tests/cert.c
View file @
0c8ce3aa
...
...
@@ -3886,17 +3886,19 @@ static void testAcquireCertPrivateKey(void)
/* Missing private key */
ret
=
pCryptAcquireCertificatePrivateKey
(
cert
,
0
,
NULL
,
&
csp
,
NULL
,
NULL
);
ok
(
!
ret
&&
GetLastError
()
==
CRYPT_E_NO_KEY_PROPERTY
,
ok
(
!
ret
&&
(
GetLastError
()
==
CRYPT_E_NO_KEY_PROPERTY
||
GetLastError
()
==
NTE_BAD_PROV_TYPE
/* win10 */
)
,
"Expected CRYPT_E_NO_KEY_PROPERTY, got %08x
\n
"
,
GetLastError
());
ret
=
pCryptAcquireCertificatePrivateKey
(
cert
,
0
,
NULL
,
&
csp
,
&
keySpec
,
&
callerFree
);
ok
(
!
ret
&&
GetLastError
()
==
CRYPT_E_NO_KEY_PROPERTY
,
ok
(
!
ret
&&
(
GetLastError
()
==
CRYPT_E_NO_KEY_PROPERTY
||
GetLastError
()
==
NTE_BAD_PROV_TYPE
/* win10 */
)
,
"Expected CRYPT_E_NO_KEY_PROPERTY, got %08x
\n
"
,
GetLastError
());
CertSetCertificateContextProperty
(
cert
,
CERT_KEY_PROV_INFO_PROP_ID
,
0
,
&
keyProvInfo
);
ret
=
pCryptAcquireCertificatePrivateKey
(
cert
,
0
,
NULL
,
&
csp
,
&
keySpec
,
&
callerFree
);
ok
(
!
ret
&&
(
GetLastError
()
==
CRYPT_E_NO_KEY_PROPERTY
||
GetLastError
()
==
NTE_BAD_KEYSET
/* win8 */
),
ok
(
!
ret
&&
(
GetLastError
()
==
CRYPT_E_NO_KEY_PROPERTY
||
GetLastError
()
==
NTE_BAD_KEYSET
/* win8 */
||
GetLastError
()
==
NTE_BAD_PROV_TYPE
/* win10 */
),
"Expected CRYPT_E_NO_KEY_PROPERTY, got %08x
\n
"
,
GetLastError
());
pCryptAcquireContextA
(
&
csp
,
cspNameA
,
MS_DEF_PROV_A
,
PROV_RSA_FULL
,
...
...
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