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
ee02d437
Commit
ee02d437
authored
Nov 09, 2009
by
Juan Lang
Committed by
Alexandre Julliard
Nov 10, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Correct error when a constrained, permitted name type isn't found in the subject name.
parent
2503e9ec
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
chain.c
dlls/crypt32/chain.c
+3
-1
chain.c
dlls/crypt32/tests/chain.c
+2
-2
No files found.
dlls/crypt32/chain.c
View file @
ee02d437
...
...
@@ -699,7 +699,8 @@ static void CRYPT_CheckNameConstraints(
CRYPT_FindMatchingNameEntry
(
&
nameConstraints
->
rgPermittedSubtree
[
i
].
Base
,
subjectName
,
trustErrorStatus
,
0
,
CERT_TRUST_HAS_NOT_PERMITTED_NAME_CONSTRAINT
);
CERT_TRUST_HAS_NOT_DEFINED_NAME_CONSTRAINT
,
CERT_TRUST_HAS_NOT_PERMITTED_NAME_CONSTRAINT
);
LocalFree
(
subjectName
);
}
else
...
...
@@ -711,6 +712,7 @@ static void CRYPT_CheckNameConstraints(
{
if
(
nameConstraints
->
cPermittedSubtree
)
*
trustErrorStatus
|=
CERT_TRUST_HAS_NOT_DEFINED_NAME_CONSTRAINT
|
CERT_TRUST_HAS_NOT_PERMITTED_NAME_CONSTRAINT
;
if
(
nameConstraints
->
cExcludedSubtree
)
*
trustErrorStatus
|=
...
...
dlls/crypt32/tests/chain.c
View file @
ee02d437
...
...
@@ -2731,7 +2731,7 @@ static ChainCheck chainCheck[] = {
{
CERT_TRUST_IS_UNTRUSTED_ROOT
|
CERT_TRUST_HAS_NOT_DEFINED_NAME_CONSTRAINT
,
0
},
1
,
simpleStatus19
},
TODO_ERROR
},
0
},
{
{
sizeof
(
chain20
)
/
sizeof
(
chain20
[
0
]),
chain20
},
{
{
CERT_TRUST_IS_NOT_TIME_NESTED
|
CERT_TRUST_IS_NOT_VALID_FOR_USAGE
,
CERT_TRUST_HAS_PREFERRED_ISSUER
},
...
...
@@ -2746,7 +2746,7 @@ static ChainCheck chainCheck[] = {
{
CERT_TRUST_IS_UNTRUSTED_ROOT
|
CERT_TRUST_HAS_NOT_DEFINED_NAME_CONSTRAINT
,
0
},
1
,
simpleStatus21
},
TODO_ERROR
},
0
},
{
{
sizeof
(
chain22
)
/
sizeof
(
chain22
[
0
]),
chain22
},
{
{
CERT_TRUST_IS_NOT_TIME_NESTED
|
CERT_TRUST_IS_NOT_VALID_FOR_USAGE
,
CERT_TRUST_HAS_PREFERRED_ISSUER
},
...
...
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