diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2019-01-19 00:39:36 +0100 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2019-01-21 00:45:23 +0100 |
commit | 27b3fee02d5242e743f87dd15db61d89073e8caa (patch) | |
tree | 7639ed35f9457cf6c1e08576bcdb3863ef9789ac /src/Common/Volumes.c | |
parent | 20463477755e5858441935ee18a6820c030df343 (diff) | |
download | VeraCrypt-27b3fee02d5242e743f87dd15db61d89073e8caa.tar.gz VeraCrypt-27b3fee02d5242e743f87dd15db61d89073e8caa.zip |
Windows: remove unused fields from CRYPTO_INFO structure
Diffstat (limited to 'src/Common/Volumes.c')
-rw-r--r-- | src/Common/Volumes.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/Common/Volumes.c b/src/Common/Volumes.c index e49ce250..bcd5c40c 100644 --- a/src/Common/Volumes.c +++ b/src/Common/Volumes.c @@ -465,13 +465,13 @@ KeyReady: ; // Header version cryptoInfo->HeaderVersion = headerVersion; - +#if 0 // Volume creation time (legacy) cryptoInfo->volume_creation_time = GetHeaderField64 (header, TC_HEADER_OFFSET_VOLUME_CREATION_TIME).Value; // Header creation time (legacy) cryptoInfo->header_creation_time = GetHeaderField64 (header, TC_HEADER_OFFSET_MODIFICATION_TIME).Value; - +#endif // Hidden volume size (if any) cryptoInfo->hiddenVolumeSize = GetHeaderField64 (header, TC_HEADER_OFFSET_HIDDEN_VOLUME_SIZE).Value; @@ -529,7 +529,6 @@ KeyReady: ; memcpy (cryptoInfo->master_keydata, keyInfo.master_keydata, MASTER_KEYDATA_SIZE); // PKCS #5 - memcpy (cryptoInfo->salt, keyInfo.salt, PKCS5_SALT_SIZE); cryptoInfo->pkcs5 = pkcs5_prf; cryptoInfo->noIterations = keyInfo.noIterations; cryptoInfo->bTrueCryptMode = truecryptMode; |