mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2026-01-06 13:48:11 -06:00
Linux/MacOSX: explicitely clear saved password from memory at last step of volume creation wizard
This commit is contained in:
@@ -58,6 +58,7 @@ namespace VeraCrypt
|
|||||||
SelectedVolumeHostType (VolumeHostType::File),
|
SelectedVolumeHostType (VolumeHostType::File),
|
||||||
SelectedVolumeType (VolumeType::Normal),
|
SelectedVolumeType (VolumeType::Normal),
|
||||||
Pim (0),
|
Pim (0),
|
||||||
|
OuterPim (0),
|
||||||
SectorSize (0),
|
SectorSize (0),
|
||||||
VolumeSize (0)
|
VolumeSize (0)
|
||||||
{
|
{
|
||||||
@@ -1082,6 +1083,12 @@ namespace VeraCrypt
|
|||||||
Creator.reset();
|
Creator.reset();
|
||||||
SetCancelButtonText (L"");
|
SetCancelButtonText (L"");
|
||||||
|
|
||||||
|
// clear saved credentials
|
||||||
|
Password.reset();
|
||||||
|
OuterPassword.reset();
|
||||||
|
burn (&Pim, sizeof (Pim));
|
||||||
|
burn (&OuterPim, sizeof (OuterPim));
|
||||||
|
|
||||||
return Step::VolumeHostType;
|
return Step::VolumeHostType;
|
||||||
|
|
||||||
case Step::OuterVolumeContents:
|
case Step::OuterVolumeContents:
|
||||||
|
|||||||
Reference in New Issue
Block a user