From 06af5ce7fd924878c3826643c155e2dd788a8282 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Sun, 22 Feb 2015 21:27:23 +0100 Subject: Windows: check password length for outer volume during hidden volume creation to avoid potential plausible deniability issues. --- src/Format/Tcformat.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/Format') 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; } -- cgit v1.2.3