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
d1fcdea0
Commit
d1fcdea0
authored
Oct 08, 2007
by
Juan Lang
Committed by
Alexandre Julliard
Oct 09, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wintrust: Implement GenericChainCertificateTrust.
parent
cab0c5a5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
53 additions
and
1 deletion
+53
-1
softpub.c
dlls/wintrust/softpub.c
+52
-0
wintrust.spec
dlls/wintrust/wintrust.spec
+1
-1
No files found.
dlls/wintrust/softpub.c
View file @
d1fcdea0
...
...
@@ -660,6 +660,58 @@ HRESULT WINAPI WintrustCertificateTrust(CRYPT_PROVIDER_DATA *data)
return
ret
?
S_OK
:
S_FALSE
;
}
HRESULT
WINAPI
GenericChainCertificateTrust
(
CRYPT_PROVIDER_DATA
*
data
)
{
BOOL
ret
;
WTD_GENERIC_CHAIN_POLICY_DATA
*
policyData
=
(
WTD_GENERIC_CHAIN_POLICY_DATA
*
)
data
->
pWintrustData
->
pPolicyCallbackData
;
TRACE
(
"(%p)
\n
"
,
data
);
if
(
policyData
&&
policyData
->
u
.
cbSize
!=
sizeof
(
WTD_GENERIC_CHAIN_POLICY_CREATE_INFO
))
{
SetLastError
(
ERROR_INVALID_PARAMETER
);
ret
=
FALSE
;
goto
end
;
}
if
(
!
data
->
csSigners
)
{
ret
=
FALSE
;
SetLastError
(
TRUST_E_NOSIGNATURE
);
}
else
{
DWORD
i
;
WTD_GENERIC_CHAIN_POLICY_CREATE_INFO
createInfo
,
*
pCreateInfo
;
CERT_CHAIN_PARA
chainPara
,
*
pChainPara
;
if
(
policyData
)
{
pCreateInfo
=
policyData
->
pSignerChainInfo
;
pChainPara
=
pCreateInfo
->
pChainPara
;
}
else
{
WINTRUST_CreateChainPolicyCreateInfo
(
data
,
&
createInfo
,
&
chainPara
);
pChainPara
=
&
chainPara
;
pCreateInfo
=
&
createInfo
;
}
ret
=
TRUE
;
for
(
i
=
0
;
i
<
data
->
csSigners
;
i
++
)
ret
=
WINTRUST_CreateChainForSigner
(
data
,
i
,
pCreateInfo
,
pChainPara
);
}
end:
if
(
!
ret
)
data
->
padwTrustStepErrors
[
TRUSTERROR_STEP_FINAL_CERTPROV
]
=
GetLastError
();
TRACE
(
"returning %d (%08x)
\n
"
,
ret
?
S_OK
:
S_FALSE
,
data
->
padwTrustStepErrors
[
TRUSTERROR_STEP_FINAL_CERTPROV
]);
return
ret
?
S_OK
:
S_FALSE
;
}
HRESULT
WINAPI
SoftpubAuthenticode
(
CRYPT_PROVIDER_DATA
*
data
)
{
BOOL
ret
;
...
...
dlls/wintrust/wintrust.spec
View file @
d1fcdea0
...
...
@@ -46,7 +46,7 @@
@ stub DriverFinalPolicy
@ stub DriverInitializePolicy
@ stub FindCertsByIssuer
@ st
ub GenericChainCertificateTrust
@ st
dcall GenericChainCertificateTrust(ptr)
@ stub GenericChainFinalProv
@ stub HTTPSCertificateTrust
@ stub HTTPSFinalProv
...
...
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