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
f8044948
Commit
f8044948
authored
Nov 16, 2009
by
Juan Lang
Committed by
Alexandre Julliard
Nov 18, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Remove an unnecessary if.
parent
85852031
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
10 deletions
+3
-10
chain.c
dlls/crypt32/chain.c
+3
-10
No files found.
dlls/crypt32/chain.c
View file @
f8044948
...
...
@@ -778,9 +778,6 @@ static void CRYPT_CheckNameConstraints(
const
CERT_NAME_CONSTRAINTS_INFO
*
nameConstraints
,
const
CERT_INFO
*
cert
,
DWORD
*
trustErrorStatus
)
{
/* If there aren't any existing constraints, don't bother checking */
if
(
nameConstraints
->
cPermittedSubtree
||
nameConstraints
->
cExcludedSubtree
)
{
CERT_EXTENSION
*
ext
=
get_subject_alt_name_ext
(
cert
);
if
(
ext
)
...
...
@@ -798,8 +795,7 @@ static void CRYPT_CheckNameConstraints(
for
(
i
=
0
;
i
<
nameConstraints
->
cExcludedSubtree
;
i
++
)
CRYPT_FindMatchingNameEntry
(
&
nameConstraints
->
rgExcludedSubtree
[
i
].
Base
,
subjectName
,
trustErrorStatus
,
CERT_TRUST_HAS_EXCLUDED_NAME_CONSTRAINT
,
0
);
trustErrorStatus
,
CERT_TRUST_HAS_EXCLUDED_NAME_CONSTRAINT
,
0
);
for
(
i
=
0
;
i
<
nameConstraints
->
cPermittedSubtree
;
i
++
)
CRYPT_FindMatchingNameEntry
(
&
nameConstraints
->
rgPermittedSubtree
[
i
].
Base
,
subjectName
,
...
...
@@ -809,8 +805,7 @@ static void CRYPT_CheckNameConstraints(
}
else
*
trustErrorStatus
|=
CERT_TRUST_INVALID_EXTENSION
|
CERT_TRUST_INVALID_NAME_CONSTRAINTS
;
CERT_TRUST_INVALID_EXTENSION
|
CERT_TRUST_INVALID_NAME_CONSTRAINTS
;
}
else
{
...
...
@@ -819,9 +814,7 @@ static void CRYPT_CheckNameConstraints(
CERT_TRUST_HAS_NOT_DEFINED_NAME_CONSTRAINT
|
CERT_TRUST_HAS_NOT_PERMITTED_NAME_CONSTRAINT
;
if
(
nameConstraints
->
cExcludedSubtree
)
*
trustErrorStatus
|=
CERT_TRUST_HAS_EXCLUDED_NAME_CONSTRAINT
;
}
*
trustErrorStatus
|=
CERT_TRUST_HAS_EXCLUDED_NAME_CONSTRAINT
;
}
}
...
...
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