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
1fc8c607
Commit
1fc8c607
authored
Sep 06, 2007
by
Juan Lang
Committed by
Alexandre Julliard
Sep 10, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Flags weren't set, so don't bother passing them.
parent
a040dd22
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
17 deletions
+3
-17
chain.c
dlls/crypt32/chain.c
+3
-17
No files found.
dlls/crypt32/chain.c
View file @
1fc8c607
...
...
@@ -264,7 +264,7 @@ static inline void CRYPT_CombineTrustStatus(CERT_TRUST_STATUS *chainStatus,
}
static
BOOL
CRYPT_AddCertToSimpleChain
(
PCertificateChainEngine
engine
,
PCERT_SIMPLE_CHAIN
chain
,
PCCERT_CONTEXT
cert
,
DWORD
dwFlags
)
PCERT_SIMPLE_CHAIN
chain
,
PCCERT_CONTEXT
cert
)
{
BOOL
ret
=
FALSE
;
PCERT_CHAIN_ELEMENT
element
=
CryptMemAlloc
(
sizeof
(
CERT_CHAIN_ELEMENT
));
...
...
@@ -282,20 +282,6 @@ static BOOL CRYPT_AddCertToSimpleChain(PCertificateChainEngine engine,
memset
(
element
,
0
,
sizeof
(
CERT_CHAIN_ELEMENT
));
element
->
cbSize
=
sizeof
(
CERT_CHAIN_ELEMENT
);
element
->
pCertContext
=
CertDuplicateCertificateContext
(
cert
);
/* Flags, if set, refer to the element this cert issued, so set
* the preceding element's error accordingly
*/
if
(
chain
->
cElement
>
1
)
{
if
(
dwFlags
&
CERT_STORE_REVOCATION_FLAG
&&
!
(
dwFlags
&
CERT_STORE_NO_CRL_FLAG
))
chain
->
rgpElement
[
chain
->
cElement
-
2
]
->
TrustStatus
.
dwErrorStatus
|=
CERT_TRUST_IS_REVOKED
;
if
(
dwFlags
&
CERT_STORE_SIGNATURE_FLAG
)
chain
->
rgpElement
[
chain
->
cElement
-
2
]
->
TrustStatus
.
dwErrorStatus
|=
CERT_TRUST_IS_NOT_SIGNATURE_VALID
;
}
/* FIXME: initialize the rest of element */
if
(
chain
->
cElement
%
engine
->
CycleDetectionModulus
)
CRYPT_CheckSimpleChainForCycles
(
chain
);
...
...
@@ -529,7 +515,7 @@ static BOOL CRYPT_BuildSimpleChain(PCertificateChainEngine engine,
if
(
issuer
)
{
ret
=
CRYPT_AddCertToSimpleChain
(
engine
,
chain
,
issuer
,
flags
);
ret
=
CRYPT_AddCertToSimpleChain
(
engine
,
chain
,
issuer
);
cert
=
issuer
;
}
else
...
...
@@ -555,7 +541,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
,
0
);
ret
=
CRYPT_AddCertToSimpleChain
(
engine
,
chain
,
cert
);
if
(
ret
)
{
ret
=
CRYPT_BuildSimpleChain
(
engine
,
world
,
chain
);
...
...
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