mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 11:08:02 -06:00
Add stdin-supplied password support
This commit is contained in:
@@ -889,11 +889,19 @@ namespace VeraCrypt
|
||||
{
|
||||
CommandLineInterface &cmdLine = *CmdLine;
|
||||
|
||||
switch (cmdLine.ArgCommand)
|
||||
{
|
||||
case CommandId::None:
|
||||
if (cmdLine.ArgCommand == CommandId::None)
|
||||
return false;
|
||||
|
||||
if (Preferences.UseStandardInput)
|
||||
{
|
||||
wstring pwdInput;
|
||||
wcin >> pwdInput;
|
||||
|
||||
cmdLine.ArgPassword = make_shared<VolumePassword> (pwdInput);
|
||||
}
|
||||
|
||||
switch (cmdLine.ArgCommand)
|
||||
{
|
||||
case CommandId::AutoMountDevices:
|
||||
case CommandId::AutoMountFavorites:
|
||||
case CommandId::AutoMountDevicesFavorites:
|
||||
|
||||
Reference in New Issue
Block a user