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
49fdba47
Commit
49fdba47
authored
Sep 22, 2008
by
Juan Lang
Committed by
Alexandre Julliard
Sep 23, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wintrust: Search all additional stores when building a chain, not just the first one.
parent
59091374
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
softpub.c
dlls/wintrust/softpub.c
+15
-2
No files found.
dlls/wintrust/softpub.c
View file @
49fdba47
...
...
@@ -599,7 +599,20 @@ static BOOL WINTRUST_CreateChainForSigner(CRYPT_PROVIDER_DATA *data,
PCERT_CHAIN_PARA
chainPara
)
{
BOOL
ret
=
TRUE
;
HCERTSTORE
store
=
NULL
;
if
(
data
->
chStores
)
{
store
=
CertOpenStore
(
CERT_STORE_PROV_COLLECTION
,
0
,
0
,
CERT_STORE_CREATE_NEW_FLAG
,
NULL
);
if
(
store
)
{
DWORD
i
;
for
(
i
=
0
;
i
<
data
->
chStores
;
i
++
)
CertAddStoreToCollection
(
store
,
data
->
pahStores
[
i
],
0
,
0
);
}
}
/* Expect the end certificate for each signer to be the only cert in the
* chain:
*/
...
...
@@ -608,8 +621,7 @@ static BOOL WINTRUST_CreateChainForSigner(CRYPT_PROVIDER_DATA *data,
/* Create a certificate chain for each signer */
ret
=
CertGetCertificateChain
(
createInfo
->
hChainEngine
,
data
->
pasSigners
[
signer
].
pasCertChain
[
0
].
pCert
,
&
data
->
pasSigners
[
signer
].
sftVerifyAsOf
,
data
->
chStores
?
data
->
pahStores
[
0
]
:
NULL
,
&
data
->
pasSigners
[
signer
].
sftVerifyAsOf
,
store
,
chainPara
,
createInfo
->
dwFlags
,
createInfo
->
pvReserved
,
&
data
->
pasSigners
[
signer
].
pChainContext
);
if
(
ret
)
...
...
@@ -627,6 +639,7 @@ static BOOL WINTRUST_CreateChainForSigner(CRYPT_PROVIDER_DATA *data,
}
}
}
CertCloseStore
(
store
,
0
);
return
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