mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:54:13 +00:00
cryptui: Only show password page if the private key is to be exported.
This commit is contained in:
parent
9c52df8364
commit
6209459b21
1 changed files with 6 additions and 0 deletions
|
@ -5702,6 +5702,8 @@ static LRESULT CALLBACK export_format_dlg_proc(HWND hwnd, UINT msg, WPARAM wp,
|
|||
break;
|
||||
case PSN_WIZNEXT:
|
||||
{
|
||||
BOOL skipPasswordPage = TRUE;
|
||||
|
||||
data = (struct ExportWizData *)GetWindowLongPtrW(hwnd, DWLP_USER);
|
||||
if (IsDlgButtonChecked(hwnd, IDC_EXPORT_FORMAT_DER))
|
||||
data->contextInfo.dwExportFormat =
|
||||
|
@ -5727,7 +5729,11 @@ static LRESULT CALLBACK export_format_dlg_proc(HWND hwnd, UINT msg, WPARAM wp,
|
|||
data->contextInfo.fStrongEncryption = TRUE;
|
||||
if (IsDlgButtonChecked(hwnd, IDC_EXPORT_PFX_DELETE_PRIVATE_KEY))
|
||||
data->contextInfo.fExportPrivateKeys = TRUE;
|
||||
skipPasswordPage = FALSE;
|
||||
}
|
||||
SetWindowLongPtrW(hwnd, DWLP_MSGRESULT,
|
||||
skipPasswordPage ? IDD_EXPORT_FILE : 0);
|
||||
ret = 1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue