Compare commits

...
Author SHA1 Message Date
Mounir IDRASSI 0dda93ca47 Avoid changing metadata (ownership, permission,etc) of /usr when unpacking VeraCrypt tar package 2014-11-08 23:20:24 +01:00
Mounir IDRASSI c2d4bf6207 Set the Execute bit for VeraCrypt uninstall script before copying it to the tar package 2014-11-08 23:20:22 +01:00
Mounir IDRASSI a9404c2bff Remove VeraCrypt version number from Readme.txt. 2014-11-08 23:20:19 +01:00
Mounir IDRASSI 5218b6dfe8 Add VeraCrypt specific Linux packaging code in Makefiles and add various helper scripts. The original TrueCrypt sources didn't contain anything about this. 2014-11-08 23:20:17 +01:00
Mounir IDRASSI 41a22ca4e7 Change namespace from TrueCrypt to VeraCrypt. Rename method from Resources Resources::GetTrueCryptIcon to Resources::GetVeraCryptIcon. 2014-11-08 23:20:14 +01:00
Mounir IDRASSI 17823cb58c Update wxFormBuild file to latest version (3.5 beta) and generate new Forms.cpp/Forms.h files. 2014-11-08 23:20:11 +01:00
Mounir IDRASSI a81790329f Point to the SourceForge website instead of idrix.fr for the application link. Remove OS parameter is URL constructed under Linux/MacOSX 2014-11-08 23:20:08 +01:00
Mounir IDRASSI 4b6594325f Update wxWidgets compilation flags in order to be compatible with wxWidgets 3.0 and remove unneeded dependencies to ensure maximum compatibility. 2014-11-08 23:20:06 +01:00
Mounir IDRASSI e1de322ed3 Replace 'TRUE' by 'VERA' in some GUI constants and comments 2014-11-08 23:20:03 +01:00
Mounir IDRASSI b6dc9e9e15 Change legacy version check in newly added Linux/MacOSX sources from 0x600 (TrueCrypt) to 0x10b 2014-11-08 23:20:01 +01:00
Mounir IDRASSI b9e34c30e8 Require to upgrade rescue disk if upgrading from version 1.0a of VeraCrypt instead of version 6.0a (left over from TrueCrypt). Does anyone still uses VeraCrypt 1.0a??? 2014-11-08 23:19:58 +01:00
Mounir IDRASSI 95c6072a57 Modify language files from TrueCrypt to make them compatible with VeraCrypt. Set supported version to 1.0d. 2014-11-08 23:19:55 +01:00
Mounir IDRASSI 859393caf1 Add original TrueCrypt 7.1a translation language files 2014-11-08 23:19:51 +01:00
Mounir IDRASSI 437cbd9c8b Remove some legacy code inherited from True and that doesn't apply to VeraCrypt 2014-11-08 23:19:47 +01:00
Mounir IDRASSI f34d894f6e Detect correctly VeraCrypt rescue disk by looking for the little-endian encoding of "Vera" instead of "True". 2014-11-08 23:19:44 +01:00
Mounir IDRASSI 7875d3ec3f Set volume header to 'VERA' instead of 'TRUE' in newly added Linux/MacOSX code 2014-11-08 23:19:42 +01:00
Mounir IDRASSI f701dc1c29 Correct typos introduced inadvertently 2014-11-08 23:19:39 +01:00
Mounir IDRASSI bacd720279 Correct values of RIPEMD160 iterations count to be identical to Windows ones (defined in function get_pkcs5_iteration_count) 2014-11-08 23:19:36 +01:00
Mounir IDRASSI 31fd16979f Change TrueCrypt to VeraCrypt in some comments 2014-11-08 23:19:34 +01:00
Mounir IDRASSI 4d12001e10 Adapt Makefiles for VeraCrypt. Use PKCS#11 headers from source tree is not specified elsewhere. 2014-11-08 23:19:32 +01:00
Mounir IDRASSI 084a8ee85c wxWidgets 3.0 compatibility modifications 2014-11-08 23:19:29 +01:00
Mounir IDRASSI c386beb69c Adapt newly added Linux/MacOSX code to the modification of key derivation introduced by VeraCrypt 2014-11-08 23:19:27 +01:00
Mounir IDRASSI be4ca4bac6 Replace TrueCrypt from Linux/MacOSX mount point names 2014-11-08 23:19:24 +01:00
Mounir IDRASSI 0c95ed3691 Add PKCS#11 2.20 headers to the source tree 2014-11-08 23:19:22 +01:00
Mounir IDRASSI a27f345832 Set the publisher to IDRIX in the uninstaller registry key. 2014-11-08 23:19:20 +01:00
295 changed files with 66840 additions and 4540 deletions
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -13,7 +13,7 @@
#include "BootDefs.h" #include "BootDefs.h"
// The user will be advised to upgrade the rescue disk if upgrading from the following or any previous version // The user will be advised to upgrade the rescue disk if upgrading from the following or any previous version
#define TC_RESCUE_DISK_UPGRADE_NOTICE_MAX_VERSION 0x060a #define TC_RESCUE_DISK_UPGRADE_NOTICE_MAX_VERSION 0x010a
#define TC_BOOT_LOADER_AREA_SIZE (TC_BOOT_LOADER_AREA_SECTOR_COUNT * TC_SECTOR_SIZE_BIOS) #define TC_BOOT_LOADER_AREA_SIZE (TC_BOOT_LOADER_AREA_SECTOR_COUNT * TC_SECTOR_SIZE_BIOS)
+1 -1
View File
@@ -1081,7 +1081,7 @@ void main ()
// Check whether the user is not using the Rescue Disk to create a hidden system // Check whether the user is not using the Rescue Disk to create a hidden system
if (ReadWriteMBR (false, BootDrive, true) == BiosResultSuccess if (ReadWriteMBR (false, BootDrive, true) == BiosResultSuccess
&& *(uint32 *) (SectorBuffer + 6) == 0x65757254 && *(uint32 *) (SectorBuffer + 6) == 0x61726556
&& *(uint32 *) (SectorBuffer + 10) == 0x70797243 && *(uint32 *) (SectorBuffer + 10) == 0x70797243
&& (SectorBuffer[TC_BOOT_SECTOR_CONFIG_OFFSET] & TC_BOOT_CFG_MASK_HIDDEN_OS_CREATION_PHASE) != TC_HIDDEN_OS_CREATION_PHASE_NONE) && (SectorBuffer[TC_BOOT_SECTOR_CONFIG_OFFSET] & TC_BOOT_CFG_MASK_HIDDEN_OS_CREATION_PHASE) != TC_HIDDEN_OS_CREATION_PHASE_NONE)
{ {
+1 -1
View File
@@ -15,7 +15,7 @@
#include "Dlgcode.h" #include "Dlgcode.h"
#include "Registry.h" #include "Registry.h"
using namespace TrueCrypt; using namespace VeraCrypt;
HRESULT CreateElevatedComObject (HWND hwnd, REFGUID guid, REFIID iid, void **ppv) HRESULT CreateElevatedComObject (HWND hwnd, REFGUID guid, REFIID iid, void **ppv)
{ {
+1 -1
View File
@@ -32,7 +32,7 @@
#include "Mount/MainCom.h" #include "Mount/MainCom.h"
#endif #endif
namespace TrueCrypt namespace VeraCrypt
{ {
#if !defined (SETUP) #if !defined (SETUP)
+1 -1
View File
@@ -17,7 +17,7 @@
using namespace std; using namespace std;
namespace TrueCrypt namespace VeraCrypt
{ {
class File class File
{ {
+4 -4
View File
@@ -61,7 +61,7 @@
#include "Setup/Setup.h" #include "Setup/Setup.h"
#endif #endif
using namespace TrueCrypt; using namespace VeraCrypt;
LONG DriverVersion; LONG DriverVersion;
@@ -3984,7 +3984,7 @@ static BOOL CALLBACK LocalizeDialogEnum( HWND hwnd, LPARAM font)
void LocalizeDialog (HWND hwnd, char *stringId) void LocalizeDialog (HWND hwnd, char *stringId)
{ {
LastDialogId = stringId; LastDialogId = stringId;
SetWindowLongPtr (hwnd, GWLP_USERDATA, (LONG_PTR) 'TRUE'); SetWindowLongPtr (hwnd, GWLP_USERDATA, (LONG_PTR) 'VERA');
SendMessage (hwnd, WM_SETFONT, (WPARAM) hUserFont, 0); SendMessage (hwnd, WM_SETFONT, (WPARAM) hUserFont, 0);
if (stringId == NULL) if (stringId == NULL)
@@ -8370,7 +8370,7 @@ void HandleDriveNotReadyError ()
BOOL CALLBACK CloseTCWindowsEnum (HWND hwnd, LPARAM lParam) BOOL CALLBACK CloseTCWindowsEnum (HWND hwnd, LPARAM lParam)
{ {
if (GetWindowLongPtr (hwnd, GWLP_USERDATA) == (LONG_PTR) 'TRUE') if (GetWindowLongPtr (hwnd, GWLP_USERDATA) == (LONG_PTR) 'VERA')
{ {
char name[1024] = { 0 }; char name[1024] = { 0 };
GetWindowText (hwnd, name, sizeof (name) - 1); GetWindowText (hwnd, name, sizeof (name) - 1);
@@ -8395,7 +8395,7 @@ BOOL CALLBACK FindTCWindowEnum (HWND hwnd, LPARAM lParam)
if (*(HWND *)lParam == hwnd) if (*(HWND *)lParam == hwnd)
return TRUE; return TRUE;
if (GetWindowLongPtr (hwnd, GWLP_USERDATA) == (LONG_PTR) 'TRUE') if (GetWindowLongPtr (hwnd, GWLP_USERDATA) == (LONG_PTR) 'VERA')
{ {
char name[32] = { 0 }; char name[32] = { 0 };
GetWindowText (hwnd, name, sizeof (name) - 1); GetWindowText (hwnd, name, sizeof (name) - 1);
+1 -1
View File
@@ -12,7 +12,7 @@
#include "Platform/PlatformBase.h" #include "Platform/PlatformBase.h"
#include "Dlgcode.h" #include "Dlgcode.h"
namespace TrueCrypt namespace VeraCrypt
{ {
struct Exception struct Exception
{ {
+1 -1
View File
@@ -23,7 +23,7 @@
#include "Platform/Finally.h" #include "Platform/Finally.h"
#include "Platform/ForEach.h" #include "Platform/ForEach.h"
using namespace TrueCrypt; using namespace VeraCrypt;
#define stat _stat #define stat _stat
#define S_IFDIR _S_IFDIR #define S_IFDIR _S_IFDIR
+1 -1
View File
@@ -30,7 +30,7 @@
using namespace std; using namespace std;
namespace TrueCrypt namespace VeraCrypt
{ {
SecurityTokenKeyfile::SecurityTokenKeyfile (const SecurityTokenKeyfilePath &path) SecurityTokenKeyfile::SecurityTokenKeyfile (const SecurityTokenKeyfilePath &path)
{ {
+1 -1
View File
@@ -49,7 +49,7 @@
#define TC_SECURITY_TOKEN_KEYFILE_URL_SLOT L"slot" #define TC_SECURITY_TOKEN_KEYFILE_URL_SLOT L"slot"
#define TC_SECURITY_TOKEN_KEYFILE_URL_FILE L"file" #define TC_SECURITY_TOKEN_KEYFILE_URL_FILE L"file"
namespace TrueCrypt namespace VeraCrypt
{ {
struct SecurityTokenInfo struct SecurityTokenInfo
{ {
+2 -2
View File
@@ -252,8 +252,8 @@ void EraseMemory (void *memory, int size);
#define MAX_URL_LENGTH 2084 /* Internet Explorer limit. Includes the terminating null character. */ #define MAX_URL_LENGTH 2084 /* Internet Explorer limit. Includes the terminating null character. */
#define TC_HOMEPAGE "http://www.idrix.fr/" #define TC_HOMEPAGE "http://www.idrix.fr/"
#define TC_APPLINK "http://www.idrix.fr/" #define TC_APPLINK "http://sourceforge.net/projects/veracrypt/"
#define TC_APPLINK_SECURE "https://www.idrix.fr/" #define TC_APPLINK_SECURE "https://sourceforge.net/projects/veracrypt/"
enum enum
{ {
+5 -5
View File
@@ -64,7 +64,7 @@
// Unencrypted: // Unencrypted:
// 0 64 Salt // 0 64 Salt
// Encrypted: // Encrypted:
// 64 4 ASCII string 'TRUE' // 64 4 ASCII string 'VERA'
// 68 2 Header version // 68 2 Header version
// 70 2 Required program version // 70 2 Required program version
// 72 4 CRC-32 checksum of the (decrypted) bytes 256-511 // 72 4 CRC-32 checksum of the (decrypted) bytes 256-511
@@ -86,7 +86,7 @@
// Unencrypted: // Unencrypted:
// 0 64 Salt // 0 64 Salt
// Encrypted: // Encrypted:
// 64 4 ASCII string 'TRUE' // 64 4 ASCII string 'VERA'
// 68 2 Header version // 68 2 Header version
// 70 2 Required program version // 70 2 Required program version
// 72 4 CRC-32 checksum of the (decrypted) bytes 256-511 // 72 4 CRC-32 checksum of the (decrypted) bytes 256-511
@@ -107,7 +107,7 @@
// Unencrypted: // Unencrypted:
// 0 64 Salt // 0 64 Salt
// Encrypted: // Encrypted:
// 64 4 ASCII string 'TRUE' // 64 4 ASCII string 'VERA'
// 68 2 Header version // 68 2 Header version
// 70 2 Required program version // 70 2 Required program version
// 72 4 CRC-32 checksum of the (decrypted) bytes 256-511 // 72 4 CRC-32 checksum of the (decrypted) bytes 256-511
@@ -401,7 +401,7 @@ KeyReady: ;
DecryptBuffer (header + HEADER_ENCRYPTED_DATA_OFFSET, HEADER_ENCRYPTED_DATA_SIZE, cryptoInfo); DecryptBuffer (header + HEADER_ENCRYPTED_DATA_OFFSET, HEADER_ENCRYPTED_DATA_SIZE, cryptoInfo);
// Magic 'TRUE' // Magic 'VERA'
if (GetHeaderField32 (header, TC_HEADER_OFFSET_MAGIC) != 0x56455241) if (GetHeaderField32 (header, TC_HEADER_OFFSET_MAGIC) != 0x56455241)
continue; continue;
@@ -614,7 +614,7 @@ int ReadVolumeHeader (BOOL bBoot, char *header, Password *password, PCRYPTO_INFO
// Try to decrypt header // Try to decrypt header
DecryptBuffer (header + HEADER_ENCRYPTED_DATA_OFFSET, HEADER_ENCRYPTED_DATA_SIZE, cryptoInfo); DecryptBuffer (header + HEADER_ENCRYPTED_DATA_OFFSET, HEADER_ENCRYPTED_DATA_SIZE, cryptoInfo);
// Check magic 'TRUE' and CRC-32 of header fields and master keydata // Check magic 'VERA' and CRC-32 of header fields and master keydata
if (GetHeaderField32 (header, TC_HEADER_OFFSET_MAGIC) != 0x56455241 if (GetHeaderField32 (header, TC_HEADER_OFFSET_MAGIC) != 0x56455241
|| (GetHeaderField16 (header, TC_HEADER_OFFSET_VERSION) >= 4 && GetHeaderField32 (header, TC_HEADER_OFFSET_HEADER_CRC) != GetCrc32 (header + TC_HEADER_OFFSET_MAGIC, TC_HEADER_OFFSET_HEADER_CRC - TC_HEADER_OFFSET_MAGIC)) || (GetHeaderField16 (header, TC_HEADER_OFFSET_VERSION) >= 4 && GetHeaderField32 (header, TC_HEADER_OFFSET_HEADER_CRC) != GetCrc32 (header + TC_HEADER_OFFSET_MAGIC, TC_HEADER_OFFSET_HEADER_CRC - TC_HEADER_OFFSET_MAGIC))
|| GetHeaderField32 (header, TC_HEADER_OFFSET_KEY_AREA_CRC) != GetCrc32 (header + HEADER_MASTER_KEYDATA_OFFSET, MASTER_KEYDATA_SIZE)) || GetHeaderField32 (header, TC_HEADER_OFFSET_KEY_AREA_CRC) != GetCrc32 (header + HEADER_MASTER_KEYDATA_OFFSET, MASTER_KEYDATA_SIZE))
+1 -1
View File
@@ -11,7 +11,7 @@
#include "CoreBase.h" #include "CoreBase.h"
namespace TrueCrypt namespace VeraCrypt
{ {
extern auto_ptr <CoreBase> Core; extern auto_ptr <CoreBase> Core;
extern auto_ptr <CoreBase> CoreDirect; extern auto_ptr <CoreBase> CoreDirect;
+1 -1
View File
@@ -12,7 +12,7 @@
#include "RandomNumberGenerator.h" #include "RandomNumberGenerator.h"
#include "Volume/Volume.h" #include "Volume/Volume.h"
namespace TrueCrypt namespace VeraCrypt
{ {
CoreBase::CoreBase () CoreBase::CoreBase ()
: DeviceChangeInProgress (false) : DeviceChangeInProgress (false)
+1 -1
View File
@@ -21,7 +21,7 @@
#include "HostDevice.h" #include "HostDevice.h"
#include "MountOptions.h" #include "MountOptions.h"
namespace TrueCrypt namespace VeraCrypt
{ {
class CoreBase class CoreBase
{ {
+1 -1
View File
@@ -9,7 +9,7 @@
#include "CoreException.h" #include "CoreException.h"
#include "Platform/SerializerFactory.h" #include "Platform/SerializerFactory.h"
namespace TrueCrypt namespace VeraCrypt
{ {
void ElevationFailed::Deserialize (shared_ptr <Stream> stream) void ElevationFailed::Deserialize (shared_ptr <Stream> stream)
{ {
+1 -1
View File
@@ -11,7 +11,7 @@
#include "Platform/Platform.h" #include "Platform/Platform.h"
namespace TrueCrypt namespace VeraCrypt
{ {
struct ElevationFailed : public ExecutedProcessFailed struct ElevationFailed : public ExecutedProcessFailed
{ {
+1 -1
View File
@@ -15,7 +15,7 @@
#include "FatFormatter.h" #include "FatFormatter.h"
#include "RandomNumberGenerator.h" #include "RandomNumberGenerator.h"
namespace TrueCrypt namespace VeraCrypt
{ {
struct fatparams struct fatparams
{ {
+1 -1
View File
@@ -11,7 +11,7 @@
#include "Platform/Platform.h" #include "Platform/Platform.h"
namespace TrueCrypt namespace VeraCrypt
{ {
class FatFormatter class FatFormatter
{ {
+1 -1
View File
@@ -9,7 +9,7 @@
#include "HostDevice.h" #include "HostDevice.h"
#include "Platform/SerializerFactory.h" #include "Platform/SerializerFactory.h"
namespace TrueCrypt namespace VeraCrypt
{ {
void HostDevice::Deserialize (shared_ptr <Stream> stream) void HostDevice::Deserialize (shared_ptr <Stream> stream)
{ {
+1 -1
View File
@@ -12,7 +12,7 @@
#include "Platform/Platform.h" #include "Platform/Platform.h"
#include "Platform/Serializable.h" #include "Platform/Serializable.h"
namespace TrueCrypt namespace VeraCrypt
{ {
struct HostDevice; struct HostDevice;
typedef list < shared_ptr <HostDevice> > HostDeviceList; typedef list < shared_ptr <HostDevice> > HostDeviceList;
+1 -1
View File
@@ -10,7 +10,7 @@
#include "Platform/MemoryStream.h" #include "Platform/MemoryStream.h"
#include "Platform/SerializerFactory.h" #include "Platform/SerializerFactory.h"
namespace TrueCrypt namespace VeraCrypt
{ {
void MountOptions::CopyFrom (const MountOptions &other) void MountOptions::CopyFrom (const MountOptions &other)
{ {
+1 -1
View File
@@ -15,7 +15,7 @@
#include "Volume/VolumeSlot.h" #include "Volume/VolumeSlot.h"
#include "Volume/VolumePassword.h" #include "Volume/VolumePassword.h"
namespace TrueCrypt namespace VeraCrypt
{ {
struct MountOptions : public Serializable struct MountOptions : public Serializable
{ {
+1 -1
View File
@@ -15,7 +15,7 @@
#include "RandomNumberGenerator.h" #include "RandomNumberGenerator.h"
#include "Volume/Crc32.h" #include "Volume/Crc32.h"
namespace TrueCrypt namespace VeraCrypt
{ {
void RandomNumberGenerator::AddSystemDataToPool (bool fast) void RandomNumberGenerator::AddSystemDataToPool (bool fast)
{ {
+1 -1
View File
@@ -13,7 +13,7 @@
#include "Volume/Hash.h" #include "Volume/Hash.h"
#include "Common/Random.h" #include "Common/Random.h"
namespace TrueCrypt namespace VeraCrypt
{ {
class RandomNumberGenerator class RandomNumberGenerator
{ {
+1 -1
View File
@@ -20,7 +20,7 @@
#include "CoreServiceRequest.h" #include "CoreServiceRequest.h"
#include "CoreServiceResponse.h" #include "CoreServiceResponse.h"
namespace TrueCrypt namespace VeraCrypt
{ {
template <class T> template <class T>
auto_ptr <T> CoreService::GetResponse () auto_ptr <T> CoreService::GetResponse ()
+1 -1
View File
@@ -14,7 +14,7 @@
#include "Platform/Unix/Pipe.h" #include "Platform/Unix/Pipe.h"
#include "Core/Core.h" #include "Core/Core.h"
namespace TrueCrypt namespace VeraCrypt
{ {
// This service facilitates process forking and elevation of user privileges // This service facilitates process forking and elevation of user privileges
class CoreService class CoreService
+1 -1
View File
@@ -12,7 +12,7 @@
#include "CoreService.h" #include "CoreService.h"
#include "Volume/VolumePasswordCache.h" #include "Volume/VolumePasswordCache.h"
namespace TrueCrypt namespace VeraCrypt
{ {
template <class T> template <class T>
class CoreServiceProxy : public T class CoreServiceProxy : public T
+1 -1
View File
@@ -10,7 +10,7 @@
#include "CoreServiceRequest.h" #include "CoreServiceRequest.h"
#include "Platform/SerializerFactory.h" #include "Platform/SerializerFactory.h"
namespace TrueCrypt namespace VeraCrypt
{ {
void CoreServiceRequest::Deserialize (shared_ptr <Stream> stream) void CoreServiceRequest::Deserialize (shared_ptr <Stream> stream)
{ {
+1 -1
View File
@@ -12,7 +12,7 @@
#include "Platform/Serializable.h" #include "Platform/Serializable.h"
#include "Core/Core.h" #include "Core/Core.h"
namespace TrueCrypt namespace VeraCrypt
{ {
struct CoreServiceRequest : public Serializable struct CoreServiceRequest : public Serializable
{ {
+1 -1
View File
@@ -9,7 +9,7 @@
#include "CoreServiceResponse.h" #include "CoreServiceResponse.h"
#include "Platform/SerializerFactory.h" #include "Platform/SerializerFactory.h"
namespace TrueCrypt namespace VeraCrypt
{ {
// CheckFilesystemResponse // CheckFilesystemResponse
void CheckFilesystemResponse::Deserialize (shared_ptr <Stream> stream) void CheckFilesystemResponse::Deserialize (shared_ptr <Stream> stream)
+1 -1
View File
@@ -12,7 +12,7 @@
#include "Platform/Serializable.h" #include "Platform/Serializable.h"
#include "Core/Core.h" #include "Core/Core.h"
namespace TrueCrypt namespace VeraCrypt
{ {
struct CoreServiceResponse : public Serializable struct CoreServiceResponse : public Serializable
{ {
+3 -3
View File
@@ -18,7 +18,7 @@
#include "Driver/Fuse/FuseService.h" #include "Driver/Fuse/FuseService.h"
#include "Volume/VolumePasswordCache.h" #include "Volume/VolumePasswordCache.h"
namespace TrueCrypt namespace VeraCrypt
{ {
CoreUnix::CoreUnix () CoreUnix::CoreUnix ()
{ {
@@ -205,7 +205,7 @@ namespace TrueCrypt
string CoreUnix::GetDefaultMountPointPrefix () const string CoreUnix::GetDefaultMountPointPrefix () const
{ {
const char *envPrefix = getenv ("TRUECRYPT_MOUNT_PREFIX"); const char *envPrefix = getenv ("VERACRYPT_MOUNT_PREFIX");
if (envPrefix && !string (envPrefix).empty()) if (envPrefix && !string (envPrefix).empty())
return envPrefix; return envPrefix;
@@ -215,7 +215,7 @@ namespace TrueCrypt
if (FilesystemPath ("/mnt").IsDirectory()) if (FilesystemPath ("/mnt").IsDirectory())
return "/mnt/veracrypt"; return "/mnt/veracrypt";
return GetTempDirectory() + "/truecrypt_mnt"; return GetTempDirectory() + "/veracrypt_mnt";
} }
uint32 CoreUnix::GetDeviceSectorSize (const DevicePath &devicePath) const uint32 CoreUnix::GetDeviceSectorSize (const DevicePath &devicePath) const
+2 -2
View File
@@ -14,7 +14,7 @@
#include "Core/CoreBase.h" #include "Core/CoreBase.h"
#include "Core/Unix/MountedFilesystem.h" #include "Core/Unix/MountedFilesystem.h"
namespace TrueCrypt namespace VeraCrypt
{ {
class CoreUnix : public CoreBase class CoreUnix : public CoreBase
{ {
@@ -51,7 +51,7 @@ namespace TrueCrypt
virtual void DismountNativeVolume (shared_ptr <VolumeInfo> mountedVolume) const { throw NotApplicable (SRC_POS); } virtual void DismountNativeVolume (shared_ptr <VolumeInfo> mountedVolume) const { throw NotApplicable (SRC_POS); }
virtual bool FilesystemSupportsUnixPermissions (const DevicePath &devicePath) const; virtual bool FilesystemSupportsUnixPermissions (const DevicePath &devicePath) const;
virtual string GetDefaultMountPointPrefix () const; virtual string GetDefaultMountPointPrefix () const;
virtual string GetFuseMountDirPrefix () const { return ".truecrypt_aux_mnt"; } virtual string GetFuseMountDirPrefix () const { return ".veracrypt_aux_mnt"; }
virtual MountedFilesystemList GetMountedFilesystems (const DevicePath &devicePath = DevicePath(), const DirectoryPath &mountPoint = DirectoryPath()) const = 0; virtual MountedFilesystemList GetMountedFilesystems (const DevicePath &devicePath = DevicePath(), const DirectoryPath &mountPoint = DirectoryPath()) const = 0;
virtual uid_t GetRealUserId () const; virtual uid_t GetRealUserId () const;
virtual gid_t GetRealGroupId () const; virtual gid_t GetRealGroupId () const;
+1 -1
View File
@@ -16,7 +16,7 @@
#include "CoreFreeBSD.h" #include "CoreFreeBSD.h"
#include "Core/Unix/CoreServiceProxy.h" #include "Core/Unix/CoreServiceProxy.h"
namespace TrueCrypt namespace VeraCrypt
{ {
CoreFreeBSD::CoreFreeBSD () CoreFreeBSD::CoreFreeBSD ()
{ {
+1 -1
View File
@@ -12,7 +12,7 @@
#include "System.h" #include "System.h"
#include "Core/Unix/CoreUnix.h" #include "Core/Unix/CoreUnix.h"
namespace TrueCrypt namespace VeraCrypt
{ {
class CoreFreeBSD : public CoreUnix class CoreFreeBSD : public CoreUnix
{ {
+1 -1
View File
@@ -22,7 +22,7 @@
#include "Driver/Fuse/FuseService.h" #include "Driver/Fuse/FuseService.h"
#include "Core/Unix/CoreServiceProxy.h" #include "Core/Unix/CoreServiceProxy.h"
namespace TrueCrypt namespace VeraCrypt
{ {
CoreLinux::CoreLinux () CoreLinux::CoreLinux ()
{ {
+1 -1
View File
@@ -12,7 +12,7 @@
#include "System.h" #include "System.h"
#include "Core/Unix/CoreUnix.h" #include "Core/Unix/CoreUnix.h"
namespace TrueCrypt namespace VeraCrypt
{ {
class CoreLinux : public CoreUnix class CoreLinux : public CoreUnix
{ {
+1 -1
View File
@@ -19,7 +19,7 @@
#include "Driver/Fuse/FuseService.h" #include "Driver/Fuse/FuseService.h"
#include "Core/Unix/CoreServiceProxy.h" #include "Core/Unix/CoreServiceProxy.h"
namespace TrueCrypt namespace VeraCrypt
{ {
CoreMacOSX::CoreMacOSX () CoreMacOSX::CoreMacOSX ()
{ {
+1 -1
View File
@@ -12,7 +12,7 @@
#include "System.h" #include "System.h"
#include "Core/Unix/FreeBSD/CoreFreeBSD.h" #include "Core/Unix/FreeBSD/CoreFreeBSD.h"
namespace TrueCrypt namespace VeraCrypt
{ {
class CoreMacOSX : public CoreFreeBSD class CoreMacOSX : public CoreFreeBSD
{ {
+1 -1
View File
@@ -11,7 +11,7 @@
#include "Platform/Platform.h" #include "Platform/Platform.h"
namespace TrueCrypt namespace VeraCrypt
{ {
struct MountedFilesystem struct MountedFilesystem
{ {
+1 -1
View File
@@ -15,7 +15,7 @@
#include "CoreSolaris.h" #include "CoreSolaris.h"
#include "Core/Unix/CoreServiceProxy.h" #include "Core/Unix/CoreServiceProxy.h"
namespace TrueCrypt namespace VeraCrypt
{ {
CoreSolaris::CoreSolaris () CoreSolaris::CoreSolaris ()
{ {
+1 -1
View File
@@ -12,7 +12,7 @@
#include "System.h" #include "System.h"
#include "Core/Unix/CoreUnix.h" #include "Core/Unix/CoreUnix.h"
namespace TrueCrypt namespace VeraCrypt
{ {
class CoreSolaris : public CoreUnix class CoreSolaris : public CoreUnix
{ {
+1 -1
View File
@@ -19,7 +19,7 @@
#include "VolumeCreator.h" #include "VolumeCreator.h"
#include "FatFormatter.h" #include "FatFormatter.h"
namespace TrueCrypt namespace VeraCrypt
{ {
VolumeCreator::VolumeCreator () VolumeCreator::VolumeCreator ()
: SizeDone (0) : SizeDone (0)
+1 -1
View File
@@ -13,7 +13,7 @@
#include "Volume/Volume.h" #include "Volume/Volume.h"
#include "RandomNumberGenerator.h" #include "RandomNumberGenerator.h"
namespace TrueCrypt namespace VeraCrypt
{ {
struct VolumeCreationOptions struct VolumeCreationOptions
+1 -10
View File
@@ -103,16 +103,7 @@ NTSTATUS LoadBootArguments ()
BootArgsValid = TRUE; BootArgsValid = TRUE;
memset (bootArguments, 0, sizeof (*bootArguments)); memset (bootArguments, 0, sizeof (*bootArguments));
if (BootArgs.BootLoaderVersion < 0x600) BootDriveSignatureValid = TRUE;
{
BootArgs.HiddenSystemPartitionStart = 0;
BootArgs.DecoySystemPartitionStart = 0;
}
if (BootArgs.BootLoaderVersion < 0x630)
BootArgs.Flags = 0;
BootDriveSignatureValid = (BootArgs.BootLoaderVersion >= 0x710);
Dump ("BootLoaderVersion = %x\n", (int) BootArgs.BootLoaderVersion); Dump ("BootLoaderVersion = %x\n", (int) BootArgs.BootLoaderVersion);
Dump ("HeaderSaltCrc32 = %x\n", (int) BootArgs.HeaderSaltCrc32); Dump ("HeaderSaltCrc32 = %x\n", (int) BootArgs.HeaderSaltCrc32);
+1 -1
View File
@@ -30,7 +30,7 @@
#include "Volume/EncryptionThreadPool.h" #include "Volume/EncryptionThreadPool.h"
#include "Core/Core.h" #include "Core/Core.h"
namespace TrueCrypt namespace VeraCrypt
{ {
static int fuse_service_access (const char *path, int mask) static int fuse_service_access (const char *path, int mask)
{ {
+1 -1
View File
@@ -15,7 +15,7 @@
#include "Volume/VolumeInfo.h" #include "Volume/VolumeInfo.h"
#include "Volume/Volume.h" #include "Volume/Volume.h"
namespace TrueCrypt namespace VeraCrypt
{ {
class FuseService class FuseService
+4 -4
View File
@@ -906,7 +906,7 @@ NTSTATUS ProcessMainDeviceControlIrp (PDEVICE_OBJECT DeviceObject, PEXTENSION Ex
} }
else else
{ {
// Determine if the first sector contains a portion of the TrueCrypt Boot Loader // Determine if the first sector contains a portion of the VeraCrypt Boot Loader
offset.QuadPart = 0; offset.QuadPart = 0;
@@ -926,7 +926,7 @@ NTSTATUS ProcessMainDeviceControlIrp (PDEVICE_OBJECT DeviceObject, PEXTENSION Ex
if (opentest->bDetectTCBootLoader && IoStatus.Information >= TC_SECTOR_SIZE_BIOS) if (opentest->bDetectTCBootLoader && IoStatus.Information >= TC_SECTOR_SIZE_BIOS)
{ {
// Search for the string "TrueCrypt" // Search for the string "VeraCrypt"
for (i = 0; i < TC_SECTOR_SIZE_BIOS - strlen (TC_APP_NAME); ++i) for (i = 0; i < TC_SECTOR_SIZE_BIOS - strlen (TC_APP_NAME); ++i)
{ {
if (memcmp (readBuffer + i, TC_APP_NAME, strlen (TC_APP_NAME)) == 0) if (memcmp (readBuffer + i, TC_APP_NAME, strlen (TC_APP_NAME)) == 0)
@@ -995,7 +995,7 @@ NTSTATUS ProcessMainDeviceControlIrp (PDEVICE_OBJECT DeviceObject, PEXTENSION Ex
if (NT_SUCCESS (ntStatus)) if (NT_SUCCESS (ntStatus))
{ {
// Determine if the first sector contains a portion of the TrueCrypt Boot Loader // Determine if the first sector contains a portion of the VeraCrypt Boot Loader
offset.QuadPart = 0; // MBR offset.QuadPart = 0; // MBR
ntStatus = ZwReadFile (NtFileHandle, ntStatus = ZwReadFile (NtFileHandle,
@@ -1033,7 +1033,7 @@ NTSTATUS ProcessMainDeviceControlIrp (PDEVICE_OBJECT DeviceObject, PEXTENSION Ex
request->UserConfiguration = 0; request->UserConfiguration = 0;
request->CustomUserMessage[0] = 0; request->CustomUserMessage[0] = 0;
// Search for the string "TrueCrypt" // Search for the string "VeraCrypt"
for (i = 0; i < sizeof (readBuffer) - strlen (TC_APP_NAME); ++i) for (i = 0; i < sizeof (readBuffer) - strlen (TC_APP_NAME); ++i)
{ {
if (memcmp (readBuffer + i, TC_APP_NAME, strlen (TC_APP_NAME)) == 0) if (memcmp (readBuffer + i, TC_APP_NAME, strlen (TC_APP_NAME)) == 0)
+1 -1
View File
@@ -20,7 +20,7 @@
#include "FormatCom_h.h" #include "FormatCom_h.h"
#include "FormatCom_i.c" #include "FormatCom_i.c"
using namespace TrueCrypt; using namespace VeraCrypt;
static volatile LONG ObjectCount = 0; static volatile LONG ObjectCount = 0;
+1 -1
View File
@@ -35,7 +35,7 @@ IMPORTANT: Due to this issue, functions in this file must not directly interact
#include "InPlace.h" #include "InPlace.h"
using namespace std; using namespace std;
using namespace TrueCrypt; using namespace VeraCrypt;
#define TC_MAX_NONSYS_INPLACE_ENC_WORK_CHUNK_SIZE (2048 * BYTES_PER_KB) #define TC_MAX_NONSYS_INPLACE_ENC_WORK_CHUNK_SIZE (2048 * BYTES_PER_KB)
#define TC_INITIAL_NTFS_CONCEAL_PORTION_SIZE (2 * TC_MAX_VOLUME_SECTOR_SIZE) #define TC_INITIAL_NTFS_CONCEAL_PORTION_SIZE (2 * TC_MAX_VOLUME_SECTOR_SIZE)
+2 -2
View File
@@ -48,7 +48,7 @@
#include "Wipe.h" #include "Wipe.h"
#include "Xml.h" #include "Xml.h"
using namespace TrueCrypt; using namespace VeraCrypt;
enum wizard_pages enum wizard_pages
{ {
@@ -375,7 +375,7 @@ static void localcleanup (void)
static BOOL CALLBACK BroadcastSysEncCfgUpdateCallb (HWND hwnd, LPARAM lParam) static BOOL CALLBACK BroadcastSysEncCfgUpdateCallb (HWND hwnd, LPARAM lParam)
{ {
if (GetWindowLongPtr (hwnd, GWLP_USERDATA) == (LONG_PTR) 'TRUE') if (GetWindowLongPtr (hwnd, GWLP_USERDATA) == (LONG_PTR) 'VERA')
{ {
char name[1024] = { 0 }; char name[1024] = { 0 };
GetWindowText (hwnd, name, sizeof (name) - 1); GetWindowText (hwnd, name, sizeof (name) - 1);
+4 -4
View File
@@ -16,7 +16,7 @@
#endif #endif
#include "TextUserInterface.h" #include "TextUserInterface.h"
namespace TrueCrypt namespace VeraCrypt
{ {
wxApp* Application::CreateConsoleApp () wxApp* Application::CreateConsoleApp ()
{ {
@@ -36,7 +36,7 @@ namespace TrueCrypt
FilePath Application::GetConfigFilePath (const wxString &configFileName, bool createConfigDir) FilePath Application::GetConfigFilePath (const wxString &configFileName, bool createConfigDir)
{ {
wxStandardPaths stdPaths; wxStandardPaths& stdPaths = wxStandardPaths::Get();
DirectoryPath configDir; DirectoryPath configDir;
if (!Core->IsInPortableMode()) if (!Core->IsInPortableMode())
@@ -61,12 +61,12 @@ namespace TrueCrypt
DirectoryPath Application::GetExecutableDirectory () DirectoryPath Application::GetExecutableDirectory ()
{ {
return wstring (wxFileName (wxStandardPaths().GetExecutablePath()).GetPath()); return wstring (wxFileName (wxStandardPaths::Get().GetExecutablePath()).GetPath());
} }
FilePath Application::GetExecutablePath () FilePath Application::GetExecutablePath ()
{ {
return wstring (wxStandardPaths().GetExecutablePath()); return wstring (wxStandardPaths::Get().GetExecutablePath());
} }
void Application::Initialize (UserInterfaceType::Enum type) void Application::Initialize (UserInterfaceType::Enum type)
+1 -1
View File
@@ -13,7 +13,7 @@
#include "UserInterface.h" #include "UserInterface.h"
#include "UserInterfaceType.h" #include "UserInterfaceType.h"
namespace TrueCrypt namespace VeraCrypt
{ {
class Application class Application
{ {
+7 -7
View File
@@ -15,7 +15,7 @@
#include "LanguageStrings.h" #include "LanguageStrings.h"
#include "UserInterfaceException.h" #include "UserInterfaceException.h"
namespace TrueCrypt namespace VeraCrypt
{ {
CommandLineInterface::CommandLineInterface (wxCmdLineParser &parser, UserInterfaceType::Enum interfaceType) : CommandLineInterface::CommandLineInterface (wxCmdLineParser &parser, UserInterfaceType::Enum interfaceType) :
ArgCommand (CommandId::None), ArgCommand (CommandId::None),
@@ -380,7 +380,7 @@ namespace TrueCrypt
ArgQuick = parser.Found (L"quick"); ArgQuick = parser.Found (L"quick");
if (parser.Found (L"random-source", &str)) if (parser.Found (L"random-source", &str))
ArgRandomSourcePath = FilesystemPath (str); ArgRandomSourcePath = FilesystemPath (str.wc_str());
if (parser.Found (L"restore-headers")) if (parser.Found (L"restore-headers"))
{ {
@@ -471,7 +471,7 @@ namespace TrueCrypt
if (param1IsFile) if (param1IsFile)
{ {
ArgFilePath.reset (new FilePath (parser.GetParam (0))); ArgFilePath.reset (new FilePath (parser.GetParam (0).wc_str()));
} }
} }
@@ -524,7 +524,7 @@ namespace TrueCrypt
arr.Add (L""); arr.Add (L"");
continue; continue;
} }
arr.Last() += token.empty() ? L',' : token; arr.Last() += token.empty() ? L"," : token.wc_str();
} }
else else
arr.Add (token); arr.Add (token);
@@ -562,12 +562,12 @@ namespace TrueCrypt
{ {
filteredVolumes.push_back (volume); filteredVolumes.push_back (volume);
} }
else if (wxString (volume->Path) == pathFilter.GetFullPath()) else if (wxString (wstring(volume->Path)) == pathFilter.GetFullPath())
{ {
filteredVolumes.push_back (volume); filteredVolumes.push_back (volume);
} }
else if (wxString (volume->MountPoint) == pathFilter.GetFullPath() else if (wxString (wstring(volume->MountPoint)) == pathFilter.GetFullPath()
|| (wxString (volume->MountPoint) + wxFileName::GetPathSeparator()) == pathFilter.GetFullPath()) || (wxString (wstring(volume->MountPoint)) + wxFileName::GetPathSeparator()) == pathFilter.GetFullPath())
{ {
filteredVolumes.push_back (volume); filteredVolumes.push_back (volume);
} }
+1 -1
View File
@@ -17,7 +17,7 @@
#include "UserPreferences.h" #include "UserPreferences.h"
#include "UserInterfaceType.h" #include "UserInterfaceType.h"
namespace TrueCrypt namespace VeraCrypt
{ {
struct CommandId struct CommandId
{ {
+1 -1
View File
@@ -31,7 +31,7 @@
#include "FatalErrorHandler.h" #include "FatalErrorHandler.h"
namespace TrueCrypt namespace VeraCrypt
{ {
static terminate_handler DefaultTerminateHandler; static terminate_handler DefaultTerminateHandler;
+1 -1
View File
@@ -11,7 +11,7 @@
#include "System.h" #include "System.h"
namespace TrueCrypt namespace VeraCrypt
{ {
class FatalErrorHandler class FatalErrorHandler
{ {
+1 -1
View File
@@ -11,7 +11,7 @@
#include "FavoriteVolume.h" #include "FavoriteVolume.h"
#include "Xml.h" #include "Xml.h"
namespace TrueCrypt namespace VeraCrypt
{ {
FavoriteVolumeList FavoriteVolume::LoadList () FavoriteVolumeList FavoriteVolume::LoadList ()
{ {
+1 -1
View File
@@ -12,7 +12,7 @@
#include "System.h" #include "System.h"
#include "Main.h" #include "Main.h"
namespace TrueCrypt namespace VeraCrypt
{ {
struct FavoriteVolume; struct FavoriteVolume;
typedef list < shared_ptr <FavoriteVolume> > FavoriteVolumeList; typedef list < shared_ptr <FavoriteVolume> > FavoriteVolumeList;
+1 -1
View File
@@ -13,7 +13,7 @@
#include "Main/Resources.h" #include "Main/Resources.h"
#include "AboutDialog.h" #include "AboutDialog.h"
namespace TrueCrypt namespace VeraCrypt
{ {
AboutDialog::AboutDialog (wxWindow* parent) : AboutDialogBase (parent) AboutDialog::AboutDialog (wxWindow* parent) : AboutDialogBase (parent)
{ {
+1 -1
View File
@@ -11,7 +11,7 @@
#include "Forms.h" #include "Forms.h"
namespace TrueCrypt namespace VeraCrypt
{ {
class AboutDialog : public AboutDialogBase class AboutDialog : public AboutDialogBase
{ {
+1 -1
View File
@@ -11,7 +11,7 @@
#include "Main/GraphicUserInterface.h" #include "Main/GraphicUserInterface.h"
#include "BenchmarkDialog.h" #include "BenchmarkDialog.h"
namespace TrueCrypt namespace VeraCrypt
{ {
BenchmarkDialog::BenchmarkDialog (wxWindow *parent) BenchmarkDialog::BenchmarkDialog (wxWindow *parent)
: BenchmarkDialogBase (parent) : BenchmarkDialogBase (parent)

Some files were not shown because too many files have changed in this diff Show More