mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2026-08-29 12:17:16 +00:00
Compare commits
25
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0dda93ca47 | ||
|
|
c2d4bf6207 | ||
|
|
a9404c2bff | ||
|
|
5218b6dfe8 | ||
|
|
41a22ca4e7 | ||
|
|
17823cb58c | ||
|
|
a81790329f | ||
|
|
4b6594325f | ||
|
|
e1de322ed3 | ||
|
|
b6dc9e9e15 | ||
|
|
b9e34c30e8 | ||
|
|
95c6072a57 | ||
|
|
859393caf1 | ||
|
|
437cbd9c8b | ||
|
|
f34d894f6e | ||
|
|
7875d3ec3f | ||
|
|
f701dc1c29 | ||
|
|
bacd720279 | ||
|
|
31fd16979f | ||
|
|
4d12001e10 | ||
|
|
084a8ee85c | ||
|
|
c386beb69c | ||
|
|
be4ca4bac6 | ||
|
|
0c95ed3691 | ||
|
|
a27f345832 |
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
@@ -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)
|
||||||
|
|
||||||
|
|||||||
@@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -32,7 +32,7 @@
|
|||||||
#include "Mount/MainCom.h"
|
#include "Mount/MainCom.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace TrueCrypt
|
namespace VeraCrypt
|
||||||
{
|
{
|
||||||
#if !defined (SETUP)
|
#if !defined (SETUP)
|
||||||
|
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
namespace TrueCrypt
|
namespace VeraCrypt
|
||||||
{
|
{
|
||||||
class File
|
class 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);
|
||||||
|
|||||||
@@ -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
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -30,7 +30,7 @@
|
|||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
namespace TrueCrypt
|
namespace VeraCrypt
|
||||||
{
|
{
|
||||||
SecurityTokenKeyfile::SecurityTokenKeyfile (const SecurityTokenKeyfilePath &path)
|
SecurityTokenKeyfile::SecurityTokenKeyfile (const SecurityTokenKeyfilePath &path)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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
@@ -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
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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
@@ -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;
|
||||||
|
|||||||
@@ -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
@@ -21,7 +21,7 @@
|
|||||||
#include "HostDevice.h"
|
#include "HostDevice.h"
|
||||||
#include "MountOptions.h"
|
#include "MountOptions.h"
|
||||||
|
|
||||||
namespace TrueCrypt
|
namespace VeraCrypt
|
||||||
{
|
{
|
||||||
class CoreBase
|
class CoreBase
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
#include "Platform/Platform.h"
|
#include "Platform/Platform.h"
|
||||||
|
|
||||||
namespace TrueCrypt
|
namespace VeraCrypt
|
||||||
{
|
{
|
||||||
struct ElevationFailed : public ExecutedProcessFailed
|
struct ElevationFailed : public ExecutedProcessFailed
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
#include "FatFormatter.h"
|
#include "FatFormatter.h"
|
||||||
#include "RandomNumberGenerator.h"
|
#include "RandomNumberGenerator.h"
|
||||||
|
|
||||||
namespace TrueCrypt
|
namespace VeraCrypt
|
||||||
{
|
{
|
||||||
struct fatparams
|
struct fatparams
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
#include "Platform/Platform.h"
|
#include "Platform/Platform.h"
|
||||||
|
|
||||||
namespace TrueCrypt
|
namespace VeraCrypt
|
||||||
{
|
{
|
||||||
class FatFormatter
|
class FatFormatter
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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 ()
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
@@ -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
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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 ()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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 ()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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 ()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
#include "Platform/Platform.h"
|
#include "Platform/Platform.h"
|
||||||
|
|
||||||
namespace TrueCrypt
|
namespace VeraCrypt
|
||||||
{
|
{
|
||||||
struct MountedFilesystem
|
struct MountedFilesystem
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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 ()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
@@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
#include "UserInterface.h"
|
#include "UserInterface.h"
|
||||||
#include "UserInterfaceType.h"
|
#include "UserInterfaceType.h"
|
||||||
|
|
||||||
namespace TrueCrypt
|
namespace VeraCrypt
|
||||||
{
|
{
|
||||||
class Application
|
class Application
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
#include "UserPreferences.h"
|
#include "UserPreferences.h"
|
||||||
#include "UserInterfaceType.h"
|
#include "UserInterfaceType.h"
|
||||||
|
|
||||||
namespace TrueCrypt
|
namespace VeraCrypt
|
||||||
{
|
{
|
||||||
struct CommandId
|
struct CommandId
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -31,7 +31,7 @@
|
|||||||
|
|
||||||
#include "FatalErrorHandler.h"
|
#include "FatalErrorHandler.h"
|
||||||
|
|
||||||
namespace TrueCrypt
|
namespace VeraCrypt
|
||||||
{
|
{
|
||||||
static terminate_handler DefaultTerminateHandler;
|
static terminate_handler DefaultTerminateHandler;
|
||||||
|
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
#include "System.h"
|
#include "System.h"
|
||||||
|
|
||||||
namespace TrueCrypt
|
namespace VeraCrypt
|
||||||
{
|
{
|
||||||
class FatalErrorHandler
|
class FatalErrorHandler
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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 ()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
#include "Forms.h"
|
#include "Forms.h"
|
||||||
|
|
||||||
namespace TrueCrypt
|
namespace VeraCrypt
|
||||||
{
|
{
|
||||||
class AboutDialog : public AboutDialogBase
|
class AboutDialog : public AboutDialogBase
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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
Reference in New Issue
Block a user