diff options
Diffstat (limited to 'src/Main/CommandLineInterface.h')
-rw-r--r-- | src/Main/CommandLineInterface.h | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/src/Main/CommandLineInterface.h b/src/Main/CommandLineInterface.h index cc4c317e..4003dc05 100644 --- a/src/Main/CommandLineInterface.h +++ b/src/Main/CommandLineInterface.h @@ -39,10 +39,12 @@ namespace VeraCrypt DismountVolumes, DisplayVersion, DisplayVolumeProperties, - ExportSecurityTokenKeyfile, + ExportTokenKeyfile, Help, - ImportSecurityTokenKeyfiles, - ListSecurityTokenKeyfiles, + ImportTokenKeyfiles, + ListTokenKeyfiles, + ListSecurityTokenKeyfiles, + ListEMVTokenKeyfiles, ListVolumes, MountVolume, RestoreHeaders, @@ -81,8 +83,12 @@ namespace VeraCrypt shared_ptr <VolumePath> ArgVolumePath; VolumeInfoList ArgVolumes; VolumeType::Enum ArgVolumeType; - bool ArgTrueCryptMode; shared_ptr<SecureBuffer> ArgTokenPin; + bool ArgDisableFileSizeCheck; + bool ArgUseLegacyPassword; +#if defined(TC_LINUX ) || defined (TC_FREEBSD) + bool ArgUseDummySudoPassword; +#endif bool StartBackgroundTask; UserPreferences Preferences; @@ -97,10 +103,10 @@ namespace VeraCrypt CommandLineInterface &operator= (const CommandLineInterface &); }; - shared_ptr<VolumePassword> ToUTF8Password (const wchar_t* str, size_t charCount = (size_t) -1); - shared_ptr<SecureBuffer> ToUTF8Buffer (const wchar_t* str, size_t charCount = (size_t) -1); + shared_ptr<VolumePassword> ToUTF8Password (const wchar_t* str, size_t charCount, size_t maxUtf8Len); + shared_ptr<SecureBuffer> ToUTF8Buffer (const wchar_t* str, size_t charCount, size_t maxUtf8Len); - extern auto_ptr <CommandLineInterface> CmdLine; + extern unique_ptr <CommandLineInterface> CmdLine; } #endif // TC_HEADER_Main_CommandInterface |