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
a3f746b0
Commit
a3f746b0
authored
Jan 07, 2009
by
Juan Lang
Committed by
Alexandre Julliard
Jan 09, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cryptui: Show selected certificate when requested in the certificate manager dialog.
parent
c33dfc2d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
0 deletions
+34
-0
main.c
dlls/cryptui/main.c
+34
-0
No files found.
dlls/cryptui/main.c
View file @
a3f746b0
...
...
@@ -779,6 +779,27 @@ static void cert_mgr_clear_cert_selection(HWND hwnd)
refresh_store_certs
(
hwnd
);
}
static
void
show_selected_cert
(
HWND
hwnd
,
int
index
)
{
LVITEMW
item
;
HWND
lv
=
GetDlgItem
(
hwnd
,
IDC_MGR_CERTS
);
item
.
mask
=
LVIF_PARAM
;
item
.
iItem
=
index
;
item
.
iSubItem
=
0
;
if
(
SendMessageW
(
lv
,
LVM_GETITEMW
,
0
,
(
LPARAM
)
&
item
))
{
CRYPTUI_VIEWCERTIFICATE_STRUCTW
viewInfo
;
memset
(
&
viewInfo
,
0
,
sizeof
(
viewInfo
));
viewInfo
.
dwSize
=
sizeof
(
viewInfo
);
viewInfo
.
hwndParent
=
hwnd
;
viewInfo
.
pCertContext
=
(
PCCERT_CONTEXT
)
item
.
lParam
;
/* FIXME: this should be modal */
CryptUIDlgViewCertificateW
(
&
viewInfo
,
NULL
);
}
}
static
LRESULT
CALLBACK
cert_mgr_dlg_proc
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wp
,
LPARAM
lp
)
{
...
...
@@ -839,6 +860,9 @@ static LRESULT CALLBACK cert_mgr_dlg_proc(HWND hwnd, UINT msg, WPARAM wp,
}
break
;
}
case
NM_DBLCLK
:
show_selected_cert
(
hwnd
,
((
NMITEMACTIVATE
*
)
lp
)
->
iItem
);
break
;
}
break
;
}
...
...
@@ -877,6 +901,16 @@ static LRESULT CALLBACK cert_mgr_dlg_proc(HWND hwnd, UINT msg, WPARAM wp,
refresh_store_certs
(
hwnd
);
}
break
;
case
IDC_MGR_VIEW
:
{
HWND
lv
=
GetDlgItem
(
hwnd
,
IDC_MGR_CERTS
);
int
selection
=
SendMessageW
(
lv
,
LVM_GETNEXTITEM
,
-
1
,
LVNI_SELECTED
);
if
(
selection
>=
0
)
show_selected_cert
(
hwnd
,
selection
);
break
;
}
case
IDCANCEL
:
free_certs
(
GetDlgItem
(
hwnd
,
IDC_MGR_CERTS
));
close_stores
(
GetDlgItem
(
hwnd
,
IDC_MGR_STORES
));
...
...
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