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
6e907fea
Commit
6e907fea
authored
Dec 17, 2008
by
Juan Lang
Committed by
Alexandre Julliard
Dec 18, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cryptui: Allow viewing another cert in the chain from the hierarchy page.
parent
275cb46f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
45 additions
and
0 deletions
+45
-0
main.c
dlls/cryptui/main.c
+45
-0
No files found.
dlls/cryptui/main.c
View file @
6e907fea
...
...
@@ -1954,12 +1954,57 @@ static LRESULT CALLBACK hierarchy_dlg_proc(HWND hwnd, UINT msg, WPARAM wp,
data
->
pCertViewInfo
->
idxSigner
,
data
->
pCertViewInfo
->
fCounterSigner
,
data
->
pCertViewInfo
->
idxCounterSigner
);
EnableWindow
(
GetDlgItem
(
hwnd
,
IDC_VIEWCERTIFICATE
),
selection
!=
0
);
set_certificate_status
(
GetDlgItem
(
hwnd
,
IDC_CERTIFICATESTATUSTEXT
),
&
provSigner
->
pasCertChain
[
selection
]);
break
;
}
break
;
}
case
WM_COMMAND
:
switch
(
wp
)
{
case
IDC_VIEWCERTIFICATE
:
{
TVITEMW
item
;
CRYPT_PROVIDER_SGNR
*
provSigner
;
CRYPTUI_VIEWCERTIFICATE_STRUCTW
viewInfo
;
BOOL
changed
=
FALSE
;
memset
(
&
item
,
0
,
sizeof
(
item
));
item
.
mask
=
TVIF_HANDLE
|
TVIF_PARAM
;
item
.
hItem
=
(
HTREEITEM
)
SendMessageW
(
tree
,
TVM_GETNEXTITEM
,
TVGN_CARET
,
(
LPARAM
)
NULL
);
SendMessageW
(
tree
,
TVM_GETITEMW
,
0
,
(
LPARAM
)
&
item
);
data
=
get_hierarchy_data_from_tree_item
(
tree
,
item
.
hItem
);
selection
=
lparam_to_index
(
data
,
item
.
lParam
);
provSigner
=
WTHelperGetProvSignerFromChain
(
(
CRYPT_PROVIDER_DATA
*
)
data
->
pCertViewInfo
->
u
.
pCryptProviderData
,
data
->
pCertViewInfo
->
idxSigner
,
data
->
pCertViewInfo
->
fCounterSigner
,
data
->
pCertViewInfo
->
idxCounterSigner
);
memset
(
&
viewInfo
,
0
,
sizeof
(
viewInfo
));
viewInfo
.
dwSize
=
sizeof
(
viewInfo
);
viewInfo
.
dwFlags
=
data
->
pCertViewInfo
->
dwFlags
;
viewInfo
.
szTitle
=
data
->
pCertViewInfo
->
szTitle
;
viewInfo
.
pCertContext
=
provSigner
->
pasCertChain
[
selection
].
pCert
;
viewInfo
.
cStores
=
data
->
pCertViewInfo
->
cStores
;
viewInfo
.
rghStores
=
data
->
pCertViewInfo
->
rghStores
;
viewInfo
.
cPropSheetPages
=
data
->
pCertViewInfo
->
cPropSheetPages
;
viewInfo
.
rgPropSheetPages
=
data
->
pCertViewInfo
->
rgPropSheetPages
;
viewInfo
.
nStartPage
=
data
->
pCertViewInfo
->
nStartPage
;
CryptUIDlgViewCertificateW
(
&
viewInfo
,
&
changed
);
if
(
changed
)
{
/* Delete the contents of the tree */
SendMessageW
(
tree
,
TVM_DELETEITEM
,
0
,
(
LPARAM
)
TVI_ROOT
);
/* Reinitialize the tree */
show_cert_hierarchy
(
hwnd
,
data
);
}
break
;
}
}
break
;
}
return
0
;
}
...
...
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