--- truecrypt/linux/cli/cli.h 2018/04/24 16:45:57 1.1 +++ truecrypt/linux/cli/cli.h 2018/04/24 16:46:50 1.1.1.2 @@ -1,8 +1,9 @@ -/* -Copyright (c) 2004-2006 TrueCrypt Foundation. All rights reserved. +/* + Copyright (c) TrueCrypt Foundation. All rights reserved. -Covered by TrueCrypt License 2.1 the full text of which is contained in the file -License.txt included in TrueCrypt binary and source code distribution archives. + Covered by the TrueCrypt License 2.2 the full text of which is contained + in the file License.txt included in TrueCrypt binary and source code + distribution packages. */ #define TC_REQUIRED_MOUSE_EVENTS 5000 @@ -22,7 +23,7 @@ License.txt included in TrueCrypt binary #define TC_MAX_PATH 260 #define TC_MAX_PATH_STR "259" -#define error(fmt, args...) fprintf (stderr, "truecrypt: " fmt, ## args) +#define error(fmt, args...) IsTerminal ? fprintf (stderr, fmt, ## args) : fprintf (stderr, "truecrypt: " fmt, ## args) typedef struct { @@ -36,6 +37,7 @@ typedef struct BOOL Hidden; unsigned long long ReadOnlyStart; unsigned long long ReadOnlyEnd; + unsigned long long UserId; unsigned long long ModTime; unsigned long long AcTime; int Flags; @@ -54,6 +56,7 @@ static BOOL UnloadKernelModule (BOOL qui static BOOL CheckKernelModuleVersion (BOOL wait, BOOL quiet); static void OpenMiceDevice (); static BOOL GetMountList (BOOL force); +static BOOL IsMountPointAvailable (char *mountPoint); static BOOL IsVolumeMounted (char *volumePath); static int GetFreeMapDevice (); static BOOL DeleteLoopDevice (int loopDeviceNo); @@ -84,5 +87,6 @@ static void DumpHelp (); static BOOL DumpMountList (int devNo); static BOOL DismountFileSystem (char *device); static BOOL DismountVolume (int devNo); +static BOOL EnumMountPoints (char *device, char *mountPoint); static BOOL ToDeviceNumber (char *text, int *deviceNumber); - +static BOOL ValidatePassword (Password *password);