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
5b029479
Commit
5b029479
authored
Sep 06, 2007
by
Juan Lang
Committed by
Alexandre Julliard
Sep 10, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Add special case for certificates with no signature algorithm.
parent
d82f3f37
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
chain.c
dlls/crypt32/chain.c
+5
-0
chain.c
dlls/crypt32/tests/chain.c
+6
-2
No files found.
dlls/crypt32/chain.c
View file @
5b029479
...
...
@@ -651,6 +651,11 @@ BOOL WINAPI CertGetCertificateChain(HCERTCHAINENGINE hChainEngine,
SetLastError
(
E_INVALIDARG
);
return
FALSE
;
}
if
(
!
pCertContext
->
pCertInfo
->
SignatureAlgorithm
.
pszObjId
)
{
SetLastError
(
ERROR_INVALID_DATA
);
return
FALSE
;
}
if
(
!
hChainEngine
)
hChainEngine
=
CRYPT_GetDefaultChainEngine
();
/* FIXME: what about HCCE_LOCAL_MACHINE? */
...
...
dlls/crypt32/tests/chain.c
View file @
5b029479
...
...
@@ -1668,13 +1668,17 @@ static void testGetCertChain(void)
*/
/* Tests with an invalid cert (one whose signature is bad) */
SetLastError
(
0xdeadbeef
);
ret
=
CertGetCertificateChain
(
NULL
,
cert
,
NULL
,
NULL
,
&
para
,
0
,
NULL
,
&
chain
);
ok
(
!
ret
,
"Expected failure
\n
"
);
ok
(
!
ret
&&
GetLastError
()
==
ERROR_INVALID_DATA
,
"Expected ERROR_INVALID_DATA, got %d
\n
"
,
GetLastError
());
para
.
cbSize
=
sizeof
(
para
);
SetLastError
(
0xdeadbeef
);
ret
=
CertGetCertificateChain
(
NULL
,
cert
,
NULL
,
NULL
,
&
para
,
0
,
NULL
,
&
chain
);
ok
(
!
ret
,
"Expected failure
\n
"
);
ok
(
!
ret
&&
GetLastError
()
==
ERROR_INVALID_DATA
,
"Expected ERROR_INVALID_DATA, got %d
\n
"
,
GetLastError
());
CertFreeCertificateContext
(
cert
);
for
(
i
=
0
;
i
<
sizeof
(
chainCheck
)
/
sizeof
(
chainCheck
[
0
]);
i
++
)
...
...
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