mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2026-05-17 01:51:32 +00:00
Linux/MacOSX: Add switch to force the use of legacy maximum password length (64 UTF8 bytes)
The switch is --legacy-password-maxlength
This commit is contained in:
@@ -125,7 +125,7 @@ namespace VeraCrypt
|
||||
|
||||
if (verify && verPhase)
|
||||
{
|
||||
shared_ptr <VolumePassword> verPassword = ToUTF8Password (passwordBuf, length);
|
||||
shared_ptr <VolumePassword> verPassword = ToUTF8Password (passwordBuf, length, CmdLine->ArgUseLegacyPassword? VolumePassword::MaxLegacySize : VolumePassword::MaxSize);
|
||||
|
||||
if (*password != *verPassword)
|
||||
{
|
||||
@@ -136,7 +136,7 @@ namespace VeraCrypt
|
||||
}
|
||||
}
|
||||
|
||||
password = ToUTF8Password (passwordBuf, length);
|
||||
password = ToUTF8Password (passwordBuf, length, CmdLine->ArgUseLegacyPassword? VolumePassword::MaxLegacySize : VolumePassword::MaxSize);
|
||||
|
||||
if (!verPhase)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user