VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/DcsInt
diff options
context:
space:
mode:
authorkavsrf <kavsrf@gmail.com>2017-01-04 01:19:02 +0300
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2017-06-05 17:36:52 +0200
commitd37d6d681061fdefc2a909b5975b40b604a27c62 (patch)
tree7d6f54a21d7aa32be5db1ba5be10ca87dc62cf7c /DcsInt
parentf2e878683655b885f8ab2d365a40993ef942dea7 (diff)
downloadVeraCrypt-DCS-d37d6d681061fdefc2a909b5975b40b604a27c62.tar.gz
VeraCrypt-DCS-d37d6d681061fdefc2a909b5975b40b604a27c62.zip
debug code cleanup
Diffstat (limited to 'DcsInt')
-rw-r--r--DcsInt/DcsInt.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/DcsInt/DcsInt.c b/DcsInt/DcsInt.c
index 672997f..aaeaafc 100644
--- a/DcsInt/DcsInt.c
+++ b/DcsInt/DcsInt.c
@@ -628,7 +628,7 @@ SecRegionTryDecrypt()
{
int vcres = 1;
EFI_STATUS res = EFI_SUCCESS;
-
+ int retry = gAuthRetry;
PlatformGetID(SecRegionHandle, &gPlatformKeyFile, &gPlatformKeyFileSize);
do {
@@ -650,8 +650,8 @@ SecRegionTryDecrypt()
} else {
ERR_PRINT(L"%a", gAuthErrorMsg);
}
- gAuthRetry--;
- } while (vcres != 0 && gAuthRetry > 0);
+ retry--;
+ } while (vcres != 0 && retry > 0);
if (vcres != 0) {
return EFI_CRC_ERROR;
}
@@ -935,6 +935,10 @@ VirtualNotifyEvent(
if (SecRegionData != NULL) {
MEM_BURN(SecRegionData, SecRegionSize);
}
+
+ if (gAutoPassword != NULL) {
+ MEM_BURN(gAutoPassword, MAX_PASSWORD);
+ }
}
//////////////////////////////////////////////////////////////////////////
@@ -987,7 +991,6 @@ UefiMain(
}
}
if (!devFound) return OnExit(gOnExitNotFound, OnExitAuthNotFound, EFI_NOT_FOUND);
- KeyWait(L"%2d \r", 12, 0, 0);
}
// Try to find by OS partition GUID