VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Main/UserPreferences.h
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2023-09-02 01:37:52 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2023-09-02 01:37:52 +0200
commit14fee0da1ab5a60f361bc3e1eb317cebab3c222b (patch)
treec8ec23407343fca3ca573f6671a1fde5f4c28b00 /src/Main/UserPreferences.h
parent8e2329bf9e92a1f4e6fadb742e258be94f05d382 (diff)
downloadVeraCrypt-14fee0da1ab5a60f361bc3e1eb317cebab3c222b.tar.gz
VeraCrypt-14fee0da1ab5a60f361bc3e1eb317cebab3c222b.zip
Linux/macOS: preserve unknown entries in configuration file
This helps to preserve unknown entries that may be used by future versions of VeraCrypt (forward compatibility) or entries used by old versions that were removed from current version (backward compatibility)
Diffstat (limited to 'src/Main/UserPreferences.h')
-rw-r--r--src/Main/UserPreferences.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Main/UserPreferences.h b/src/Main/UserPreferences.h
index 6d53fb5f..3f60b533 100644
--- a/src/Main/UserPreferences.h
+++ b/src/Main/UserPreferences.h
@@ -96,6 +96,10 @@ namespace VeraCrypt
bool WipeCacheOnAutoDismount;
bool WipeCacheOnClose;
+ // A map used to store unknown entries from the configuration file in order to preserve them when saving the configuration.
+ // This helps to preserve unknown entries that may be used by future versions of VeraCrypt or entries used by old versions that were removed from current version.
+ map <wxString, wxString> UnknownConfigMapEntries;
+
protected:
wxString GetDefaultKeyfilesFileName () const { return L"Default Keyfiles.xml"; }
#ifdef TC_PROTOTYPE