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
54428bfb
Commit
54428bfb
authored
Sep 11, 2007
by
Juan Lang
Committed by
Alexandre Julliard
Sep 12, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Pass subject's info status when adding an issuer to a chain.
parent
5c825488
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
chain.c
dlls/crypt32/chain.c
+7
-4
No files found.
dlls/crypt32/chain.c
View file @
54428bfb
...
...
@@ -279,7 +279,7 @@ static inline void CRYPT_CombineTrustStatus(CERT_TRUST_STATUS *chainStatus,
}
static
BOOL
CRYPT_AddCertToSimpleChain
(
PCertificateChainEngine
engine
,
PCERT_SIMPLE_CHAIN
chain
,
PCCERT_CONTEXT
cert
)
PCERT_SIMPLE_CHAIN
chain
,
PCCERT_CONTEXT
cert
,
DWORD
subjectInfoStatus
)
{
BOOL
ret
=
FALSE
;
PCERT_CHAIN_ELEMENT
element
=
CryptMemAlloc
(
sizeof
(
CERT_CHAIN_ELEMENT
));
...
...
@@ -297,6 +297,9 @@ static BOOL CRYPT_AddCertToSimpleChain(PCertificateChainEngine engine,
memset
(
element
,
0
,
sizeof
(
CERT_CHAIN_ELEMENT
));
element
->
cbSize
=
sizeof
(
CERT_CHAIN_ELEMENT
);
element
->
pCertContext
=
CertDuplicateCertificateContext
(
cert
);
if
(
chain
->
cElement
>
1
)
chain
->
rgpElement
[
chain
->
cElement
-
2
]
->
TrustStatus
.
dwInfoStatus
=
subjectInfoStatus
;
/* FIXME: initialize the rest of element */
if
(
chain
->
cElement
%
engine
->
CycleDetectionModulus
)
CRYPT_CheckSimpleChainForCycles
(
chain
);
...
...
@@ -632,7 +635,7 @@ static BOOL CRYPT_BuildSimpleChain(PCertificateChainEngine engine,
if
(
issuer
)
{
ret
=
CRYPT_AddCertToSimpleChain
(
engine
,
chain
,
issuer
);
ret
=
CRYPT_AddCertToSimpleChain
(
engine
,
chain
,
issuer
,
0
);
cert
=
issuer
;
}
else
...
...
@@ -658,7 +661,7 @@ static BOOL CRYPT_GetSimpleChainForCert(PCertificateChainEngine engine,
{
memset
(
chain
,
0
,
sizeof
(
CERT_SIMPLE_CHAIN
));
chain
->
cbSize
=
sizeof
(
CERT_SIMPLE_CHAIN
);
ret
=
CRYPT_AddCertToSimpleChain
(
engine
,
chain
,
cert
);
ret
=
CRYPT_AddCertToSimpleChain
(
engine
,
chain
,
cert
,
0
);
if
(
ret
)
{
ret
=
CRYPT_BuildSimpleChain
(
engine
,
world
,
chain
);
...
...
@@ -909,7 +912,7 @@ static PCertificateChain CRYPT_BuildAlternateContextFromChain(
if
(
alternate
)
{
BOOL
ret
=
CRYPT_AddCertToSimpleChain
(
engine
,
alternate
->
context
.
rgpChain
[
i
],
alternateIssuer
);
alternate
->
context
.
rgpChain
[
i
],
alternateIssuer
,
0
);
if
(
ret
)
{
...
...
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