VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Common
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2023-06-02 09:39:14 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2023-06-02 09:39:14 +0200
commit5e4e2e0483436031edfd525215110f6229ac406d (patch)
treea8571df28c507c012b0e895e0614e463ed44a7b0 /src/Common
parent40b17cca0a399d7a27bb2cc55c3fd1f3f6220347 (diff)
downloadVeraCrypt-5e4e2e0483436031edfd525215110f6229ac406d.tar.gz
VeraCrypt-5e4e2e0483436031edfd525215110f6229ac406d.zip
Windows: Add dropdown menu to Mount button to allow mounting without cache
Diffstat (limited to 'src/Common')
-rw-r--r--src/Common/Common.h1
-rw-r--r--src/Common/Dlgcode.c2
-rw-r--r--src/Common/Language.xml1
3 files changed, 3 insertions, 1 deletions
diff --git a/src/Common/Common.h b/src/Common/Common.h
index 02b2929a..62ee3d65 100644
--- a/src/Common/Common.h
+++ b/src/Common/Common.h
@@ -93,6 +93,7 @@ typedef struct
int ProtectedHidVolPim;
wchar_t Label[33]; /* maximum label length is 32 for NTFS and 11 for FAT32 */
BOOL DisableMountManager;
+ BOOL SkipCachedPasswords;
} MountOptions;
#endif
diff --git a/src/Common/Dlgcode.c b/src/Common/Dlgcode.c
index 2c707f5d..d994aaf3 100644
--- a/src/Common/Dlgcode.c
+++ b/src/Common/Dlgcode.c
@@ -8887,7 +8887,7 @@ int MountVolume (HWND hwndDlg,
}
// If using cached passwords, check cache status first
- if (password == NULL && IsPasswordCacheEmpty ())
+ if (password == NULL && (mountOptions->SkipCachedPasswords || IsPasswordCacheEmpty ()))
return 0;
ZeroMemory (&mount, sizeof (mount));
diff --git a/src/Common/Language.xml b/src/Common/Language.xml
index a2615124..a2555147 100644
--- a/src/Common/Language.xml
+++ b/src/Common/Language.xml
@@ -1570,6 +1570,7 @@
<entry lang="en" key="IDC_USE_ALL_FREE_SPACE">Use all available free space</entry>
<entry lang="en" key="SYS_ENCRYPTION_UPGRADE_UNSUPPORTED_ALGORITHM">VeraCrypt cannot be upgraded because the system partition/drive was encrypted using an algorithm that is not supported anymore.\nPlease decrypt your system before upgrading VeraCrypt and then encrypt it again.</entry>
<entry lang="en" key="LINUX_EX2MSG_TERMINALNOTFOUND">Supported terminal application could not be found, you need either xterm, konsole or gnome-terminal (with dbus-x11).</entry>
+ <entry lang="en" key="IDM_MOUNT_NO_CACHE">Mount Without Cache</entry>
</localization>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="VeraCrypt">