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
0556e9d9
Commit
0556e9d9
authored
Oct 22, 2008
by
Juan Lang
Committed by
Alexandre Julliard
Oct 23, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Correct trust error status for cyclic chains.
parent
5a36d489
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
chain.c
dlls/crypt32/chain.c
+2
-4
chain.c
dlls/crypt32/tests/chain.c
+1
-1
No files found.
dlls/crypt32/chain.c
View file @
0556e9d9
...
...
@@ -754,13 +754,11 @@ static void CRYPT_CheckSimpleChain(PCertificateChainEngine engine,
if
(
CRYPT_IsSimpleChainCyclic
(
chain
))
{
/* If the chain is cyclic, then the path length constraints
* are violated, because the chain is infinitely long. MS
* misleadingly also sets the not supported name constraint bit,
* whether or not name constraints were present.
* are violated, because the chain is infinitely long.
*/
pathLengthConstraintViolated
=
TRUE
;
chain
->
TrustStatus
.
dwErrorStatus
|=
CERT_TRUST_
HAS_NOT_SUPPORTED_NAME_CONSTRAINT
|
CERT_TRUST_
IS_PARTIAL_CHAIN
|
CERT_TRUST_INVALID_BASIC_CONSTRAINTS
;
}
/* FIXME: check valid usages */
...
...
dlls/crypt32/tests/chain.c
View file @
0556e9d9
...
...
@@ -1527,7 +1527,7 @@ static ChainCheck chainCheck[] = {
TODO_ERROR
},
{
{
sizeof
(
chain9
)
/
sizeof
(
chain9
[
0
]),
chain9
},
{
{
CERT_TRUST_IS_NOT_TIME_NESTED
,
CERT_TRUST_HAS_PREFERRED_ISSUER
},
{
CERT_TRUST_
HAS_NOT_SUPPORTED_NAME_CONSTRAINT
|
{
CERT_TRUST_
IS_PARTIAL_CHAIN
|
CERT_TRUST_INVALID_BASIC_CONSTRAINTS
|
CERT_TRUST_IS_CYCLIC
,
0
},
1
,
simpleStatus9
},
TODO_INFO
},
...
...
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