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
73a8f894
Commit
73a8f894
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: Add saved purposes to the purpose selection in the certificate manager dialog.
parent
dfc8b91c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
14 deletions
+33
-14
main.c
dlls/cryptui/main.c
+33
-14
No files found.
dlls/cryptui/main.c
View file @
73a8f894
...
@@ -96,20 +96,6 @@ static void add_cert_columns(HWND hwnd)
...
@@ -96,20 +96,6 @@ static void add_cert_columns(HWND hwnd)
SendMessageW
(
lv
,
LVM_INSERTCOLUMNW
,
3
,
(
LPARAM
)
&
column
);
SendMessageW
(
lv
,
LVM_INSERTCOLUMNW
,
3
,
(
LPARAM
)
&
column
);
}
}
static
void
initialize_purpose_selection
(
HWND
hwnd
)
{
HWND
cb
=
GetDlgItem
(
hwnd
,
IDC_MGR_PURPOSE_SELECTION
);
WCHAR
buf
[
MAX_STRING_LEN
];
LoadStringW
(
hInstance
,
IDS_PURPOSE_ALL
,
buf
,
sizeof
(
buf
)
/
sizeof
(
buf
[
0
]));
SendMessageW
(
cb
,
CB_INSERTSTRING
,
-
1
,
(
LPARAM
)
buf
);
LoadStringW
(
hInstance
,
IDS_PURPOSE_ADVANCED
,
buf
,
sizeof
(
buf
)
/
sizeof
(
buf
[
0
]));
SendMessageW
(
cb
,
CB_INSERTSTRING
,
-
1
,
(
LPARAM
)
buf
);
SendMessageW
(
cb
,
CB_SETCURSEL
,
0
,
0
);
}
static
void
add_cert_to_view
(
HWND
lv
,
PCCERT_CONTEXT
cert
,
DWORD
*
allocatedLen
,
static
void
add_cert_to_view
(
HWND
lv
,
PCCERT_CONTEXT
cert
,
DWORD
*
allocatedLen
,
LPWSTR
*
str
)
LPWSTR
*
str
)
{
{
...
@@ -223,6 +209,39 @@ static LPSTR get_cert_mgr_usages(void)
...
@@ -223,6 +209,39 @@ static LPSTR get_cert_mgr_usages(void)
return
str
;
return
str
;
}
}
static
void
initialize_purpose_selection
(
HWND
hwnd
)
{
HWND
cb
=
GetDlgItem
(
hwnd
,
IDC_MGR_PURPOSE_SELECTION
);
WCHAR
buf
[
MAX_STRING_LEN
];
LPSTR
usages
;
LoadStringW
(
hInstance
,
IDS_PURPOSE_ALL
,
buf
,
sizeof
(
buf
)
/
sizeof
(
buf
[
0
]));
SendMessageW
(
cb
,
CB_INSERTSTRING
,
-
1
,
(
LPARAM
)
buf
);
LoadStringW
(
hInstance
,
IDS_PURPOSE_ADVANCED
,
buf
,
sizeof
(
buf
)
/
sizeof
(
buf
[
0
]));
SendMessageW
(
cb
,
CB_INSERTSTRING
,
-
1
,
(
LPARAM
)
buf
);
SendMessageW
(
cb
,
CB_SETCURSEL
,
0
,
0
);
if
((
usages
=
get_cert_mgr_usages
()))
{
LPSTR
ptr
,
comma
;
for
(
ptr
=
usages
,
comma
=
strchr
(
ptr
,
','
);
ptr
&&
*
ptr
;
ptr
=
comma
?
comma
+
1
:
NULL
,
comma
=
ptr
?
strchr
(
ptr
,
','
)
:
NULL
)
{
PCCRYPT_OID_INFO
info
;
if
(
comma
)
*
comma
=
0
;
if
((
info
=
CryptFindOIDInfo
(
CRYPT_OID_INFO_OID_KEY
,
ptr
,
0
)))
SendMessageW
(
GetDlgItem
(
hwnd
,
IDC_MGR_PURPOSE_SELECTION
),
CB_INSERTSTRING
,
0
,
(
LPARAM
)
info
->
pwszName
);
}
HeapFree
(
GetProcessHeap
(),
0
,
usages
);
}
}
static
void
show_store_certs
(
HWND
hwnd
,
HCERTSTORE
store
)
static
void
show_store_certs
(
HWND
hwnd
,
HCERTSTORE
store
)
{
{
HWND
lv
=
GetDlgItem
(
hwnd
,
IDC_MGR_CERTS
);
HWND
lv
=
GetDlgItem
(
hwnd
,
IDC_MGR_CERTS
);
...
...
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