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
b5d1bfe5
Commit
b5d1bfe5
authored
Feb 11, 2009
by
Juan Lang
Committed by
Alexandre Julliard
Feb 12, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Set the info status on the last element of a chain even if its issuer can't be found.
parent
913affe4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
chain.c
dlls/crypt32/chain.c
+5
-5
chain.c
dlls/crypt32/tests/chain.c
+1
-1
No files found.
dlls/crypt32/chain.c
View file @
b5d1bfe5
...
...
@@ -995,8 +995,7 @@ static PCCERT_CONTEXT CRYPT_GetIssuer(HCERTSTORE store, PCCERT_CONTEXT subject,
issuer
=
CertFindCertificateInStore
(
store
,
subject
->
dwCertEncodingType
,
0
,
CERT_FIND_SUBJECT_NAME
,
&
subject
->
pCertInfo
->
Issuer
,
prevIssuer
);
if
(
issuer
)
*
infoStatus
=
CERT_TRUST_HAS_NAME_MATCH_ISSUER
;
*
infoStatus
=
CERT_TRUST_HAS_NAME_MATCH_ISSUER
;
}
return
issuer
;
}
...
...
@@ -1013,12 +1012,13 @@ static BOOL CRYPT_BuildSimpleChain(PCertificateChainEngine engine,
while
(
ret
&&
!
CRYPT_IsSimpleChainCyclic
(
chain
)
&&
!
CRYPT_IsCertificateSelfSigned
(
cert
))
{
DWORD
infoStatus
;
PCCERT_CONTEXT
issuer
=
CRYPT_GetIssuer
(
world
,
cert
,
NULL
,
&
i
nfoStatus
);
PCCERT_CONTEXT
issuer
=
CRYPT_GetIssuer
(
world
,
cert
,
NULL
,
&
chain
->
rgpElement
[
chain
->
cElement
-
1
]
->
TrustStatus
.
dwI
nfoStatus
);
if
(
issuer
)
{
ret
=
CRYPT_AddCertToSimpleChain
(
engine
,
chain
,
issuer
,
infoStatus
);
ret
=
CRYPT_AddCertToSimpleChain
(
engine
,
chain
,
issuer
,
chain
->
rgpElement
[
chain
->
cElement
-
1
]
->
TrustStatus
.
dwInfoStatus
);
/* CRYPT_AddCertToSimpleChain add-ref's the issuer, so free it to
* close the enumeration that found it
*/
...
...
dlls/crypt32/tests/chain.c
View file @
b5d1bfe5
...
...
@@ -1620,7 +1620,7 @@ static ChainCheck chainCheckNoStore[] = {
{
{
0
,
CERT_TRUST_HAS_PREFERRED_ISSUER
},
{
CERT_TRUST_IS_PARTIAL_CHAIN
,
0
},
1
,
simpleStatus8NoStore
},
TODO_INFO
},
0
},
};
/* Wednesday, Oct 1, 2007 */
...
...
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