mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2026-09-26 01:44:53 +00:00
CLI: retry hidden-protection credentials after keyfile failures
Handle protection-keyfile failures before general password failures. Reset the hidden password, PIM, and keyfiles for correction while retaining outer credentials and avoiding backup-header retries.
This commit is contained in:
@@ -1566,6 +1566,13 @@ namespace VeraCrypt
|
||||
options.ProtectionPassword.reset();
|
||||
options.ProtectionPim = -1;
|
||||
}
|
||||
catch (ProtectionPasswordKeyfilesIncorrect &e)
|
||||
{
|
||||
ShowInfo (e);
|
||||
options.ProtectionPassword.reset();
|
||||
options.ProtectionPim = -1;
|
||||
options.ProtectionKeyfiles.reset();
|
||||
}
|
||||
catch (PasswordIncorrect &e)
|
||||
{
|
||||
if (++incorrectPasswordCount > 2 && !options.UseBackupHeaders)
|
||||
|
||||
Reference in New Issue
Block a user