mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 02:58:02 -06:00
Windows Bootloader: Always hide password/PIM values with '*' after ENTER is hit, even if F5 was pressed to display password/PIM.
This commit is contained in:
@@ -169,8 +169,10 @@ static byte AskPassword (Password &password, int& pim)
|
||||
{
|
||||
case TC_BIOS_KEY_ENTER:
|
||||
password.Length = pos;
|
||||
if (hidePassword)
|
||||
{
|
||||
Print ("\r");
|
||||
if (!PreventNormalSystemBoot)
|
||||
Print ("Enter password: ");
|
||||
pos = 0;
|
||||
while (pos < MAX_PASSWORD)
|
||||
{
|
||||
pos++;
|
||||
@@ -179,7 +181,6 @@ static byte AskPassword (Password &password, int& pim)
|
||||
else
|
||||
PrintCharAtCursor ('*');
|
||||
}
|
||||
}
|
||||
|
||||
ClearBiosKeystrokeBuffer();
|
||||
PrintEndl();
|
||||
@@ -240,14 +241,13 @@ static byte AskPassword (Password &password, int& pim)
|
||||
switch (scanCode)
|
||||
{
|
||||
case TC_BIOS_KEY_ENTER:
|
||||
if (hidePassword)
|
||||
{
|
||||
Print ("\rPIM: ");
|
||||
pos =0;
|
||||
while (pos < MAX_PIM)
|
||||
{
|
||||
PrintChar ('*');
|
||||
pos++;
|
||||
}
|
||||
}
|
||||
|
||||
ClearBiosKeystrokeBuffer();
|
||||
PrintEndl();
|
||||
|
||||
Reference in New Issue
Block a user