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
3c7e95ee
Commit
3c7e95ee
authored
Dec 18, 2008
by
Juan Lang
Committed by
Alexandre Julliard
Dec 19, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cryptui: Set purpose selection radio button based on enhanced key usage value.
parent
a45c2484
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
main.c
dlls/cryptui/main.c
+15
-2
No files found.
dlls/cryptui/main.c
View file @
3c7e95ee
...
...
@@ -1716,6 +1716,7 @@ static void show_cert_usages(HWND hwnd, struct detail_data *data)
PCCRYPT_OID_INFO
*
usages
;
RECT
rc
;
LVCOLUMNW
column
;
PurposeSelection
purposeSelection
;
GetWindowRect
(
lv
,
&
rc
);
column
.
mask
=
LVCF_WIDTH
;
...
...
@@ -1738,6 +1739,10 @@ static void show_cert_usages(HWND hwnd, struct detail_data *data)
HeapFree
(
GetProcessHeap
(),
0
,
usage
);
usage
=
NULL
;
}
else
if
(
usage
->
cUsageIdentifier
)
purposeSelection
=
PurposeEnableSelected
;
else
purposeSelection
=
PurposeDisableAll
;
}
else
if
(
CertGetEnhancedKeyUsage
(
cert
,
CERT_FIND_EXT_ONLY_ENHKEY_USAGE_FLAG
,
NULL
,
&
size
))
...
...
@@ -1749,9 +1754,16 @@ static void show_cert_usages(HWND hwnd, struct detail_data *data)
HeapFree
(
GetProcessHeap
(),
0
,
usage
);
usage
=
NULL
;
}
else
if
(
usage
->
cUsageIdentifier
)
purposeSelection
=
PurposeEnableAll
;
else
purposeSelection
=
PurposeDisableAll
;
}
else
{
purposeSelection
=
PurposeEnableAll
;
usage
=
NULL
;
}
if
(
usage
)
{
DWORD
i
;
...
...
@@ -1779,7 +1791,9 @@ static void show_cert_usages(HWND hwnd, struct detail_data *data)
WTHelperGetKnownUsages
(
2
,
&
usages
);
}
}
select_purposes
(
hwnd
,
PurposeEnableAll
);
select_purposes
(
hwnd
,
purposeSelection
);
SendMessageW
(
GetDlgItem
(
hwnd
,
IDC_ENABLE_ALL_PURPOSES
+
purposeSelection
),
BM_CLICK
,
0
,
0
);
}
static
void
set_general_cert_properties
(
HWND
hwnd
,
struct
detail_data
*
data
)
...
...
@@ -1800,7 +1814,6 @@ static void set_general_cert_properties(HWND hwnd, struct detail_data *data)
HeapFree
(
GetProcessHeap
(),
0
,
str
);
}
show_cert_usages
(
hwnd
,
data
);
SendMessageW
(
GetDlgItem
(
hwnd
,
IDC_ENABLE_ALL_PURPOSES
),
BM_CLICK
,
0
,
0
);
}
#define MAX_FRIENDLY_NAME 40
...
...
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