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
b579eac2
Commit
b579eac2
authored
Feb 14, 2008
by
Juan Lang
Committed by
Alexandre Julliard
Feb 16, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Allow some last errors set by Vista.
parent
348261e6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
cert.c
dlls/crypt32/tests/cert.c
+9
-6
No files found.
dlls/crypt32/tests/cert.c
View file @
b579eac2
...
...
@@ -1552,12 +1552,14 @@ static void testSignCert(HCRYPTPROV csp, const CRYPT_DATA_BLOB *toBeSigned,
algoID
.
pszObjId
=
(
LPSTR
)
sigOID
;
ret
=
CryptSignCertificate
(
0
,
0
,
0
,
toBeSigned
->
pbData
,
toBeSigned
->
cbData
,
&
algoID
,
NULL
,
NULL
,
&
size
);
ok
(
!
ret
&&
GetLastError
()
==
ERROR_INVALID_PARAMETER
,
"Expected ERROR_INVALID_PARAMETER, got %08x
\n
"
,
GetLastError
());
ok
(
!
ret
&&
(
GetLastError
()
==
ERROR_INVALID_PARAMETER
||
NTE_BAD_ALGID
),
"Expected ERROR_INVALID_PARAMETER or NTE_BAD_ALGID, got %08x
\n
"
,
GetLastError
());
ret
=
CryptSignCertificate
(
0
,
AT_SIGNATURE
,
0
,
toBeSigned
->
pbData
,
toBeSigned
->
cbData
,
&
algoID
,
NULL
,
NULL
,
&
size
);
ok
(
!
ret
&&
GetLastError
()
==
ERROR_INVALID_PARAMETER
,
"Expected ERROR_INVALID_PARAMETER, got %08x
\n
"
,
GetLastError
());
ok
(
!
ret
&&
(
GetLastError
()
==
ERROR_INVALID_PARAMETER
||
NTE_BAD_ALGID
),
"Expected ERROR_INVALID_PARAMETER or NTE_BAD_ALGID, got %08x
\n
"
,
GetLastError
());
/* No keys exist in the new CSP yet.. */
ret
=
CryptSignCertificate
(
csp
,
AT_SIGNATURE
,
0
,
toBeSigned
->
pbData
,
...
...
@@ -1767,8 +1769,9 @@ static void testSignAndEncodeCert(void)
algID
.
pszObjId
=
oid_rsa_md5rsa
;
ret
=
CryptSignAndEncodeCertificate
(
0
,
0
,
X509_ASN_ENCODING
,
X509_CERT_TO_BE_SIGNED
,
&
info
,
&
algID
,
NULL
,
NULL
,
&
size
);
ok
(
!
ret
&&
GetLastError
()
==
ERROR_INVALID_PARAMETER
,
"Expected ERROR_INVALID_PARAMETER, got %08x
\n
"
,
GetLastError
());
ok
(
!
ret
&&
(
GetLastError
()
==
ERROR_INVALID_PARAMETER
||
NTE_BAD_ALGID
),
"Expected ERROR_INVALID_PARAMETER or NTE_BAD_ALGID, got %08x
\n
"
,
GetLastError
());
algID
.
pszObjId
=
oid_rsa_md5
;
ret
=
CryptSignAndEncodeCertificate
(
0
,
0
,
X509_ASN_ENCODING
,
X509_CERT_TO_BE_SIGNED
,
&
info
,
&
algID
,
NULL
,
NULL
,
&
size
);
...
...
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