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
0463f99b
Commit
0463f99b
authored
Sep 12, 2007
by
Juan Lang
Committed by
Alexandre Julliard
Sep 13, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wintrust: Partially implement SoftpubAuthenticode.
parent
277ef05e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
50 additions
and
1 deletion
+50
-1
softpub.c
dlls/wintrust/softpub.c
+49
-0
wintrust.spec
dlls/wintrust/wintrust.spec
+1
-1
No files found.
dlls/wintrust/softpub.c
View file @
0463f99b
...
...
@@ -575,6 +575,55 @@ HRESULT WINAPI WintrustCertificateTrust(CRYPT_PROVIDER_DATA *data)
return
ret
?
S_OK
:
S_FALSE
;
}
HRESULT
WINAPI
SoftpubAuthenticode
(
CRYPT_PROVIDER_DATA
*
data
)
{
BOOL
ret
;
CERT_CHAIN_POLICY_STATUS
policyStatus
=
{
sizeof
(
policyStatus
),
0
};
if
(
data
->
pWintrustData
->
dwUIChoice
!=
WTD_UI_NONE
)
FIXME
(
"unimplemented for UI choice %d
\n
"
,
data
->
pWintrustData
->
dwUIChoice
);
if
(
!
data
->
csSigners
)
{
ret
=
FALSE
;
policyStatus
.
dwError
=
TRUST_E_NOSIGNATURE
;
}
else
{
DWORD
i
;
ret
=
TRUE
;
for
(
i
=
0
;
ret
&&
i
<
data
->
csSigners
;
i
++
)
{
CERT_CHAIN_POLICY_PARA
policyPara
=
{
sizeof
(
policyPara
),
0
};
if
(
data
->
dwRegPolicySettings
&
WTPF_TRUSTTEST
)
policyPara
.
dwFlags
|=
CERT_CHAIN_POLICY_TRUST_TESTROOT_FLAG
;
if
(
data
->
dwRegPolicySettings
&
WTPF_TESTCANBEVALID
)
policyPara
.
dwFlags
|=
CERT_CHAIN_POLICY_ALLOW_TESTROOT_FLAG
;
if
(
data
->
dwRegPolicySettings
&
WTPF_IGNOREEXPIRATION
)
policyPara
.
dwFlags
|=
CERT_CHAIN_POLICY_IGNORE_NOT_TIME_VALID_FLAG
|
CERT_CHAIN_POLICY_IGNORE_CTL_NOT_TIME_VALID_FLAG
|
CERT_CHAIN_POLICY_IGNORE_NOT_TIME_NESTED_FLAG
;
if
(
data
->
dwRegPolicySettings
&
WTPF_IGNOREREVOKATION
)
policyPara
.
dwFlags
|=
CERT_CHAIN_POLICY_IGNORE_END_REV_UNKNOWN_FLAG
|
CERT_CHAIN_POLICY_IGNORE_CTL_SIGNER_REV_UNKNOWN_FLAG
|
CERT_CHAIN_POLICY_IGNORE_CA_REV_UNKNOWN_FLAG
|
CERT_CHAIN_POLICY_IGNORE_ROOT_REV_UNKNOWN_FLAG
;
CertVerifyCertificateChainPolicy
(
CERT_CHAIN_POLICY_AUTHENTICODE
,
data
->
pasSigners
[
i
].
pChainContext
,
&
policyPara
,
&
policyStatus
);
if
(
policyStatus
.
dwError
!=
NO_ERROR
)
ret
=
FALSE
;
}
}
if
(
!
ret
)
data
->
padwTrustStepErrors
[
TRUSTERROR_STEP_FINAL_POLICYPROV
]
=
policyStatus
.
dwError
;
return
ret
?
S_OK
:
S_FALSE
;
}
HRESULT
WINAPI
SoftpubCleanup
(
CRYPT_PROVIDER_DATA
*
data
)
{
DWORD
i
,
j
;
...
...
dlls/wintrust/wintrust.spec
View file @
0463f99b
...
...
@@ -56,7 +56,7 @@
@ stub OfficeCleanupPolicy
@ stub OfficeInitializePolicy
@ stub OpenPersonalTrustDBDialog
@ st
ub SoftpubAuthenticode
@ st
dcall SoftpubAuthenticode(ptr)
@ stdcall SoftpubCheckCert(ptr long long long)
@ stdcall SoftpubCleanup(ptr)
@ stub SoftpubDefCertInit
...
...
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