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
2c9ab243
Commit
2c9ab243
authored
Sep 30, 2022
by
Paul Gofman
Committed by
Alexandre Julliard
Oct 11, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wintrust: Support WSS_GET_SECONDARY_SIG_COUNT in Softpub provider.
parent
71f58158
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
3 deletions
+12
-3
softpub.c
dlls/wintrust/softpub.c
+5
-0
softpub.c
dlls/wintrust/tests/softpub.c
+3
-3
wintrust_main.c
dlls/wintrust/wintrust_main.c
+4
-0
No files found.
dlls/wintrust/softpub.c
View file @
2c9ab243
...
...
@@ -909,6 +909,11 @@ HRESULT WINAPI SoftpubLoadSignature(CRYPT_PROVIDER_DATA *data)
data
->
pSigState
->
hPrimarySig
=
CryptMsgDuplicate
(
data
->
hMsg
);
load_secondary_signatures
(
data
,
data
->
pSigState
->
hPrimarySig
);
}
if
(
data
->
pSigSettings
)
{
if
(
data
->
pSigSettings
->
dwFlags
&
WSS_GET_SECONDARY_SIG_COUNT
)
data
->
pSigSettings
->
cSecondarySigs
=
data
->
pSigState
->
cSecondarySigs
;
}
}
if
(
!
err
&&
data
->
hMsg
)
...
...
dlls/wintrust/tests/softpub.c
View file @
2c9ab243
...
...
@@ -1830,7 +1830,7 @@ static void test_multiple_signatures(void)
prov
=
(
CRYPT_PROVIDER_DATA
*
)
data
.
hWVTStateData
;
ok
(
prov
->
cbStruct
==
sizeof
(
*
prov
),
"Got size %lu.
\n
"
,
prov
->
cbStruct
);
ok
(
prov
->
csSigners
==
1
,
"Got %lu.
\n
"
,
prov
->
csSigners
);
todo_wine
ok
(
prov
->
pSigSettings
==
&
settings
,
"Got %p, expected %p.
\n
"
,
prov
->
pSigSettings
,
&
settings
);
ok
(
prov
->
pSigSettings
==
&
settings
,
"Got %p, expected %p.
\n
"
,
prov
->
pSigSettings
,
&
settings
);
ok
(
!!
prov
->
pSigState
,
"Got %p, expected %p.
\n
"
,
prov
->
pSigSettings
,
&
settings
);
if
(
prov
->
cbStruct
==
sizeof
(
*
prov
)
&&
prov
->
pSigState
)
{
...
...
@@ -1867,7 +1867,7 @@ static void test_multiple_signatures(void)
settings
.
dwVerifiedSigIndex
=
0xcccccccc
;
status
=
WinVerifyTrust
(
NULL
,
&
WVTPolicyGUID
,
&
data
);
todo_wine
ok
(
status
==
CERT_E_UNTRUSTEDROOT
||
status
==
CERT_E_CHAINING
,
"Failed, ret %#lx
\n
"
,
status
);
todo_wine
ok
(
settings
.
cSecondarySigs
==
2
,
"Got %lu.
\n
"
,
settings
.
cSecondarySigs
);
ok
(
settings
.
cSecondarySigs
==
2
,
"Got %lu.
\n
"
,
settings
.
cSecondarySigs
);
todo_wine
ok
(
settings
.
dwVerifiedSigIndex
==
2
,
"Got %lu.
\n
"
,
settings
.
dwVerifiedSigIndex
);
data
.
dwStateAction
=
WTD_STATEACTION_CLOSE
;
...
...
@@ -1881,7 +1881,7 @@ static void test_multiple_signatures(void)
settings
.
dwIndex
=
1
;
status
=
WinVerifyTrust
(
NULL
,
&
WVTPolicyGUID
,
&
data
);
todo_wine
ok
(
status
==
CERT_E_UNTRUSTEDROOT
||
status
==
CERT_E_CHAINING
,
"Failed, ret %#lx
\n
"
,
status
);
todo_wine
ok
(
settings
.
cSecondarySigs
==
2
,
"Got %lu.
\n
"
,
settings
.
cSecondarySigs
);
ok
(
settings
.
cSecondarySigs
==
2
,
"Got %lu.
\n
"
,
settings
.
cSecondarySigs
);
todo_wine
ok
(
settings
.
dwVerifiedSigIndex
==
1
,
"Got %lu.
\n
"
,
settings
.
dwVerifiedSigIndex
);
settings
.
dwIndex
=
0
;
...
...
dlls/wintrust/wintrust_main.c
View file @
2c9ab243
...
...
@@ -294,6 +294,10 @@ static LONG WINTRUST_DefaultVerify(HWND hwnd, GUID *actionID,
data
->
hWVTStateData
=
provData
;
provData
->
pWintrustData
=
data
;
if
(
WVT_ISINSTRUCT
(
WINTRUST_DATA
,
data
->
cbStruct
,
pSignatureSettings
))
provData
->
pSigSettings
=
data
->
pSignatureSettings
;
if
(
hwnd
==
INVALID_HANDLE_VALUE
)
provData
->
hWndParent
=
GetDesktopWindow
();
else
...
...
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