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
245e22fb
Commit
245e22fb
authored
Jan 23, 2009
by
Juan Lang
Committed by
Alexandre Julliard
Jan 26, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cryptui: Remember format and format options when leaving the format page of the export wizard.
parent
c417c9b9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
0 deletions
+31
-0
main.c
dlls/cryptui/main.c
+31
-0
No files found.
dlls/cryptui/main.c
View file @
245e22fb
...
...
@@ -5444,6 +5444,9 @@ struct ExportWizData
PCCRYPTUI_WIZ_EXPORT_INFO
pExportInfo
;
void
*
pvoid
;
DWORD
exportFormat
;
BOOL
includeChain
;
BOOL
strongEncryption
;
BOOL
deletePrivateKey
;
};
static
LRESULT
CALLBACK
export_welcome_dlg_proc
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wp
,
...
...
@@ -5518,6 +5521,31 @@ static LRESULT CALLBACK export_format_dlg_proc(HWND hwnd, UINT msg, WPARAM wp,
PSWIZB_BACK
|
PSWIZB_NEXT
);
ret
=
TRUE
;
break
;
case
PSN_WIZNEXT
:
{
data
=
(
struct
ExportWizData
*
)
GetWindowLongPtrW
(
hwnd
,
DWLP_USER
);
if
(
IsDlgButtonChecked
(
hwnd
,
IDC_EXPORT_FORMAT_DER
))
data
->
exportFormat
=
CRYPTUI_WIZ_EXPORT_FORMAT_DER
;
else
if
(
IsDlgButtonChecked
(
hwnd
,
IDC_EXPORT_FORMAT_BASE64
))
data
->
exportFormat
=
CRYPTUI_WIZ_EXPORT_FORMAT_BASE64
;
else
if
(
IsDlgButtonChecked
(
hwnd
,
IDC_EXPORT_FORMAT_CMS
))
{
data
->
exportFormat
=
CRYPTUI_WIZ_EXPORT_FORMAT_PKCS7
;
if
(
IsDlgButtonChecked
(
hwnd
,
IDC_EXPORT_CMS_INCLUDE_CHAIN
))
data
->
includeChain
=
TRUE
;
}
else
{
data
->
exportFormat
=
CRYPTUI_WIZ_EXPORT_FORMAT_PFX
;
if
(
IsDlgButtonChecked
(
hwnd
,
IDC_EXPORT_PFX_INCLUDE_CHAIN
))
data
->
includeChain
=
TRUE
;
if
(
IsDlgButtonChecked
(
hwnd
,
IDC_EXPORT_PFX_STRONG_ENCRYPTION
))
data
->
strongEncryption
=
TRUE
;
if
(
IsDlgButtonChecked
(
hwnd
,
IDC_EXPORT_PFX_DELETE_PRIVATE_KEY
))
data
->
deletePrivateKey
=
TRUE
;
}
break
;
}
}
break
;
}
...
...
@@ -5623,6 +5651,9 @@ static BOOL show_export_ui(DWORD dwFlags, HWND hwndParent,
data
.
pExportInfo
=
pExportInfo
;
data
.
pvoid
=
pvoid
;
data
.
exportFormat
=
0
;
data
.
includeChain
=
FALSE
;
data
.
strongEncryption
=
FALSE
;
data
.
deletePrivateKey
=
FALSE
;
memset
(
&
pages
,
0
,
sizeof
(
pages
));
...
...
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