VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Format/Tcformat.c
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2015-02-22 21:27:23 +0100
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2015-02-22 21:29:42 +0100
commit06af5ce7fd924878c3826643c155e2dd788a8282 (patch)
tree0e1e2b35d091a53dc7709ee4a8d056ea86d95db2 /src/Format/Tcformat.c
parent7fb5af6ada48815c73b22a45b55fafc68a322f87 (diff)
downloadVeraCrypt-06af5ce7fd924878c3826643c155e2dd788a8282.tar.gz
VeraCrypt-06af5ce7fd924878c3826643c155e2dd788a8282.zip
Windows: check password length for outer volume during hidden volume creation to avoid potential plausible deniability issues.
Diffstat (limited to 'src/Format/Tcformat.c')
-rw-r--r--src/Format/Tcformat.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/Format/Tcformat.c b/src/Format/Tcformat.c
index 995222de..80fc6d00 100644
--- a/src/Format/Tcformat.c
+++ b/src/Format/Tcformat.c
@@ -6692,9 +6692,8 @@ BOOL CALLBACK MainDialogProc (HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPa
Error ("UNSUPPORTED_CHARS_IN_PWD", hwndDlg);
return 1;
}
- // Check password length (do not check if it's for an outer volume).
- else if (!bHiddenVolHost
- && !CheckPasswordLength (hwndDlg, GetDlgItem (hCurPage, IDC_PASSWORD)))
+ // Check password length (check also done for outer volume which is not the case in TrueCrypt).
+ else if (!CheckPasswordLength (hwndDlg, GetDlgItem (hCurPage, IDC_PASSWORD)))
{
return 1;
}