diff options
Diffstat (limited to 'src/Main/Forms/VolumePasswordPanel.cpp')
-rw-r--r-- | src/Main/Forms/VolumePasswordPanel.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/Main/Forms/VolumePasswordPanel.cpp b/src/Main/Forms/VolumePasswordPanel.cpp index 54bef90f..10e56f7a 100644 --- a/src/Main/Forms/VolumePasswordPanel.cpp +++ b/src/Main/Forms/VolumePasswordPanel.cpp @@ -189,6 +189,23 @@ namespace VeraCrypt return shared_ptr <Pkcs5Kdf> (); } } + + int VolumePasswordPanel::GetHeaderWipeCount () const + { + try + { + long wipeCount; + wxString wipeCountStrDesc = HeaderWipeCount->GetStringSelection(); + wxString wipeCountStr = wipeCountStrDesc.BeforeFirst(wxT("-")); + if (!wipeCountStr.ToLong(&wipeCount)) + wipeCount = PRAND_HEADER_WIPE_PASSES; + return (int) wipeCount; + } + catch (ParameterIncorrect&) + { + return PRAND_HEADER_WIPE_PASSES; + } + } void VolumePasswordPanel::OnAddKeyfileDirMenuItemSelected (wxCommandEvent& event) { |