mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2026-10-06 00:56:35 -05: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:
1 file changed
+7
@@ -1566,6 +1566,13 @@ namespace VeraCrypt
|
|||||||
options.ProtectionPassword.reset();
|
options.ProtectionPassword.reset();
|
||||||
options.ProtectionPim = -1;
|
options.ProtectionPim = -1;
|
||||||
}
|
}
|
||||||
|
catch (ProtectionPasswordKeyfilesIncorrect &e)
|
||||||
|
{
|
||||||
|
ShowInfo (e);
|
||||||
|
options.ProtectionPassword.reset();
|
||||||
|
options.ProtectionPim = -1;
|
||||||
|
options.ProtectionKeyfiles.reset();
|
||||||
|
}
|
||||||
catch (PasswordIncorrect &e)
|
catch (PasswordIncorrect &e)
|
||||||
{
|
{
|
||||||
if (++incorrectPasswordCount > 2 && !options.UseBackupHeaders)
|
if (++incorrectPasswordCount > 2 && !options.UseBackupHeaders)
|
||||||
|
|||||||
Reference in new issue
Block a user