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
711ca0f4
Commit
711ca0f4
authored
Jan 27, 2010
by
Juan Lang
Committed by
Alexandre Julliard
Jan 29, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wintrust: Fail creating a chain if a store couldn't be created.
parent
59dcf9c9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
28 deletions
+34
-28
softpub.c
dlls/wintrust/softpub.c
+34
-28
No files found.
dlls/wintrust/softpub.c
View file @
711ca0f4
...
...
@@ -771,46 +771,52 @@ static BOOL WINTRUST_CreateChainForSigner(CRYPT_PROVIDER_DATA *data,
for
(
i
=
0
;
i
<
data
->
chStores
;
i
++
)
CertAddStoreToCollection
(
store
,
data
->
pahStores
[
i
],
0
,
0
);
}
else
ret
=
FALSE
;
}
/* Expect the end certificate for each signer to be the only cert in the
* chain:
*/
if
(
data
->
pasSigners
[
signer
].
csCertChain
)
if
(
ret
)
{
/* Create a certificate chain for each signer */
ret
=
CertGetCertificateChain
(
createInfo
->
hChainEngine
,
data
->
pasSigners
[
signer
].
pasCertChain
[
0
].
pCert
,
&
data
->
pasSigners
[
signer
].
sftVerifyAsOf
,
store
,
chainPara
,
createInfo
->
dwFlags
,
createInfo
->
pvReserved
,
&
data
->
pasSigners
[
signer
].
pChainContext
);
if
(
ret
)
/* Expect the end certificate for each signer to be the only cert in
* the chain:
*/
if
(
data
->
pasSigners
[
signer
].
csCertChain
)
{
if
(
data
->
pasSigners
[
signer
].
pChainContext
->
cChain
!=
1
)
{
FIXME
(
"unimplemented for more than 1 simple chain
\n
"
);
ret
=
FALSE
;
}
else
/* Create a certificate chain for each signer */
ret
=
CertGetCertificateChain
(
createInfo
->
hChainEngine
,
data
->
pasSigners
[
signer
].
pasCertChain
[
0
].
pCert
,
&
data
->
pasSigners
[
signer
].
sftVerifyAsOf
,
store
,
chainPara
,
createInfo
->
dwFlags
,
createInfo
->
pvReserved
,
&
data
->
pasSigners
[
signer
].
pChainContext
);
if
(
ret
)
{
DWORD
err
;
if
(
!
(
err
=
WINTRUST_CopyChain
(
data
,
signer
)))
if
(
data
->
pasSigners
[
signer
].
pChainContext
->
cChain
!=
1
)
{
if
(
data
->
psPfns
->
pfnCertCheckPolicy
)
ret
=
data
->
psPfns
->
pfnCertCheckPolicy
(
data
,
signer
,
FALSE
,
0
);
else
TRACE
(
"no cert check policy, skipping policy check
\n
"
);
FIXME
(
"unimplemented for more than 1 simple chain
\n
"
);
ret
=
FALSE
;
}
else
{
SetLastError
(
err
);
ret
=
FALSE
;
DWORD
err
;
if
(
!
(
err
=
WINTRUST_CopyChain
(
data
,
signer
)))
{
if
(
data
->
psPfns
->
pfnCertCheckPolicy
)
ret
=
data
->
psPfns
->
pfnCertCheckPolicy
(
data
,
signer
,
FALSE
,
0
);
else
TRACE
(
"no cert check policy, skipping policy check
\n
"
);
}
else
{
SetLastError
(
err
);
ret
=
FALSE
;
}
}
}
}
CertCloseStore
(
store
,
0
);
}
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