VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Common/Volumes.c
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2013-06-22 18:18:39 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2014-11-08 23:18:34 +0100
commit46652e90467000e591dbccbc31d3748382a60630 (patch)
treefa3aeb82d80e8ec8d69494b8d802113879b4c0a6 /src/Common/Volumes.c
parent280623abdab5c845b37e228d531c9f94cff78556 (diff)
downloadVeraCrypt-46652e90467000e591dbccbc31d3748382a60630.tar.gz
VeraCrypt-46652e90467000e591dbccbc31d3748382a60630.zip
Change the required version in volume header to the one of VeraCrypt (now 1.0)
Diffstat (limited to 'src/Common/Volumes.c')
-rw-r--r--src/Common/Volumes.c19
1 files changed, 1 insertions, 18 deletions
diff --git a/src/Common/Volumes.c b/src/Common/Volumes.c
index 3b2c0ca7..3aadd970 100644
--- a/src/Common/Volumes.c
+++ b/src/Common/Volumes.c
@@ -798,24 +798,7 @@ int CreateVolumeHeaderInMemory (BOOL bBoot, char *header, int ea, int mode, Pass
cryptoInfo->HeaderVersion = VOLUME_HEADER_VERSION;
// Required program version to handle this volume
- switch (mode)
- {
- case LRW:
- // Deprecated/legacy
- mputWord (p, 0x0410);
- break;
- case OUTER_CBC:
- case INNER_CBC:
- // Deprecated/legacy
- mputWord (p, 0x0300);
- break;
- case CBC:
- // Deprecated/legacy
- mputWord (p, hiddenVolumeSize > 0 ? 0x0300 : 0x0100);
- break;
- default:
- mputWord (p, requiredProgramVersion != 0 ? requiredProgramVersion : TC_VOLUME_MIN_REQUIRED_PROGRAM_VERSION);
- }
+ mputWord (p, requiredProgramVersion != 0 ? requiredProgramVersion : TC_VOLUME_MIN_REQUIRED_PROGRAM_VERSION);
// CRC of the master key data
x = GetCrc32(keyInfo.master_keydata, MASTER_KEYDATA_SIZE);