mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2026-09-27 02:14:19 +00:00
Unix: cache the password used for mounting
Reuse the prepared password to avoid rereading outer keyfiles after mounting. This prevents post-mount read failures and ensures the cache contains the credential that unlocked the volume.
This commit is contained in:
@@ -170,7 +170,7 @@ namespace VeraCrypt
|
||||
if (!useCachedPasswords && options.CachePassword
|
||||
&& ((options.Password && !options.Password->IsEmpty()) || (options.Keyfiles && !options.Keyfiles->empty())))
|
||||
{
|
||||
VolumePasswordCache::Store (*Keyfile::ApplyListToPassword (options.Keyfiles, options.Password, options.EMVSupportEnabled));
|
||||
VolumePasswordCache::Store (*newOptions.Password);
|
||||
}
|
||||
|
||||
VolumeEventArgs eventArgs (mountedVolume);
|
||||
|
||||
Reference in New Issue
Block a user