VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Mount/Mount.c
AgeCommit message (Collapse)AuthorFilesLines
2023-09-24Windows: Add tooltip message and help button for new option to disable ↵Mounir IDRASSI1-0/+24
memory protection Also a dedicated page in the documentation was added for it.
2023-09-20Windows: Add setting in main UI and setup wizard to disable memory protectionMounir IDRASSI1-0/+24
This can be useful for users who need Accessibility software that may not work when memory protection is active in VeraCrypt
2023-09-18Windows Security: make memory protection enabled by default. Add process ↵Mounir IDRASSI1-1/+1
mitigation (ASLR, Dynamic code, extension points) Memory protection can be disabled using registry value "VeraCryptEnableMemoryProtection" under the key "HKLM\SYSTEM\CurrentControlSet\Services\veracrypt"
2023-09-11Windows: replace CoInitialize calls with CoInitializeExMounir IDRASSI1-1/+1
2023-09-03Windows: Replace legacy file/dir selection APIs with modern IFileDialog ↵Mounir IDRASSI1-4/+4
interface We remove usage of GetOpenFileNameW/GetSaveFileNameW/SHBrowseForFolderW which are deprecated by Microsoft
2023-09-03Windows: remove legacy code (XP, Vista). Simplify code since Windows 7 is ↵Mounir IDRASSI1-33/+27
now minimal OS version.
2023-09-03Windows: simpler and more robust safe dll loading combined with delay ↵Mounir IDRASSI1-1/+0
loading thanks to Windows 7 being minimum supported version. We also block execution on Windows versions older than Windows 7. A lot of code was removed thanks to this.
2023-08-05Windows: Fix false positive detection of new device insertion when clear ↵Mounir IDRASSI1-0/+124
keys option is enable When this option is enabled, we first build the list of currently inserted devices then we start listening to insertion events. When a device insertion occurs, we check if this device is on our list and if yes, we ignore its insertion. We also ignore devices whose Device ID starts with "SWD\" and "ROOT\" since these are not real devices.
2023-07-22Windows: Remove TrueCrypt support. Increment version to 1.26.4.Mounir IDRASSI1-205/+39
2023-07-01Windows: Don't make Mount button split button if it is for dismountingMounir IDRASSI1-44/+62
If the currently selected item in the drive list is a mounted volume that can be dismounted, the Mount button displays "Dismount" and so we should not add the popup menu of "mount without cache" to it.
2023-06-29EMV keyfile support: Overall code improvements and bug fixesMounir IDRASSI1-4/+4
2023-06-28Add EMV functionality (#1080)mmauv1-12/+15
* Add basic strcture needed for EMV implementation * Add demo EMV functionality with C code pasted in a very dirty and unsafe way. NOT FINAL * Refactor IccExtractor Structure * Fix Makefile * fix include file * move global variables from h to c * revert to memcpy * fix icc data recovery functions * Add EMV functionalities on windows * Make EMVToken structures like SecurityToken * Define constants instead of hard coded values * Token structures created with inheritance * refactor TokenKeyfile to use inherit. + polymor. * add Token.h + Token.cpp in modules in VS2010 * Add a comment at each use of SecurityToken class or objects * SecurityTokenKeyfilesDialog preparation * Implemennt GetAvailableTokens in Token class on windows * merge * up (patching for Windows) * foreach Token.cpp corrected * Display EMV keyfiles on first window in graphic interface * Add token to Windows UI * EMVToken selection on OKButton on Linux * Keyfile.cpp optimization * Move getKeyfileData in the token class * EMV::Token GetAvailableKeyfiles() base * Move getKeyfileData in the token class on unix * Remove test comments * Warnings resolved * RemoveeSecurityTokenLibraryNotInitialized exception if at least one emv token is detected * Adding new files * Remove old files and add the new version to the windows project * Change make_shared to shared_ptr constructor * IccExtractor integration working on linux * Throwing card not EMV execption * catch error when not EMV type in EMVToken::GetAvailableKeyfiles * Change types to compile on windows * list all keyfiles, security keyfiles and emv keyfiles in command line * Change type to be coherent and remove old todo comments * Remove todo comments * Change indentation and resolve a bug from previous commit * Use polymorphism for GetKeyfileData and add export option for EMVTokens on Linux * Linux : Allow to export EMV Tokens in command lines, Windows : Disable the delete button when EMV Keyfiles are selected * Remove SlotId from TokenInfo as it is already in Token * Correct errors on Linux * Disable delete option if one EMV Token is selected on Linux * Fix bug enabling delete button if nothing is selected * emv data used as reference then burnt * use of normal files in linux corrected * help updated * help updated for export functionnality * option EMV added to graphic interface but not yet working * Bug fix : Allow to use multiple EMV on windows * EMV Option added to UserPreferences * EMV Option working for Linux * EMV option added to Windows (not working yet) * [NOT TESTED] EMV option for Windows * Working EMV option on Windows * EMV Option for data extraction working for volume creation * EMV Option for data extraction working for Mount * EMV Option for data extraction working for mounting favorites volumes * EMV Option for extraction working for Changing volume password, Set Derivation Key Algorithm and Add or remove keyfile from volume * Windows : re-checking EMV Option when getting data * Removing error catches in the IccDataExtractor classe (It only throws error now). Changing GetPan signature to resemble the other functions signatures more * Changing EMV errors - Only throwing ICCExtractionException from outside of the ICC module. - Catching all TLVExceptions and PCSCExceptions to throw the right ICCExtractionException - Deleting APDU exceptions. * First version of the documentation * Adding function pointers for winscard library (but it crashes VeraCrypt) * Debugging function pointers * The import of the library on windows work as expected now * Reverting EMVToken.cpp changes used to test to library import * Searching for the System32 path instead of hard codding it * Fixing the bug were VeraCrypt crashes if there is no readers when "add Token files" is clicked * Winscard library not initialized in object constructor anymore to delay it after EMVOption check * Remove winscard lib from windows dependencies * Properly displaying errors * Adding a dot in Language.xml * Catching TLVException * Removing unused code * Remove unusefull comments * Trying to fix 0x1f error * Update IccDataExtractor.cpp * Delete History.xml * Fix get data without get pan * Cleanup code * changes for linux compilation but linking not working * error handling for linux * erasing emv data * Burn PAN * Burn PAN from memory * Uncomment selfcheck before merging master * burn corrected * EMV errors handling for Linux * EMV working for Linux CLI * Doc : Winscard Linux package and VeraCrypt versions --------- Co-authored-by: doriandu45 <d45.poubelle@gmail.com> Co-authored-by: red4game <redemgaiming@gmail.com> Co-authored-by: Brice.Namy <brice.namy@insa-rennes.fr> Co-authored-by: vocthor <pieceo108@gmail.com> Co-authored-by: vocthor <67202139+vocthor@users.noreply.github.com> Co-authored-by: Andrei COCAN <andrei.cocan@insa-rennes.fr> Co-authored-by: AndreiCocan <95496161+AndreiCocan@users.noreply.github.com> Co-authored-by: francoisLEROUX <francois3443@gmail.com>
2023-06-02Windows: Add dropdown menu to Mount button to allow mounting without cacheMounir IDRASSI1-5/+71
2022-03-26Windows: Add various checks to address Coverity reported issues.Mounir IDRASSI1-1/+9
2022-03-08Implement support of Blake2s-256 hash algorithm and remove deprecated ↵Mounir IDRASSI1-2/+2
algorithms RIPEMD-160 and GOST89.
2022-02-10Windows: Make Travel Disk contains 32-bit and arm64 binaries when VeraCrypt ↵Mounir IDRASSI1-89/+91
installed using MSI
2022-02-02Windows: Fix failure to create Traveler Disk when VeraCrypt is installed ↵Mounir IDRASSI1-59/+129
using MSI
2022-02-01Windows: Make MSI installer compatible with System Encryption by leveraging ↵Mounir IDRASSI1-16/+40
VeraCrypt service capabilities
2021-11-29Windows: Try to workaround Windows Updates issues by fixing of bootloader ↵Mounir IDRASSI1-27/+51
and SetupConfig.ini when session logged in/unlocked or system resumes
2021-07-14Windows: Copy ARM64 binaries when creating Traveler Disk and when VeraCrypt ↵Mounir IDRASSI1-0/+16
is installed
2021-07-13Windows: replace insecure wcscpy/wcscat/strcpy runtime functions with secure ↵Mounir IDRASSI1-6/+6
equivalents This fixed failure to build driver for ARM64 with latest VS 2019
2021-01-02Windows: Add support for ARM64 platform (e.g. Microsoft Surface Pro X). ↵Mounir IDRASSI1-0/+56
System encryption still not implemented on ARM64
2020-08-03Windows: Fix issue in UI for configuration autofix mechanism of bootloaderMounir IDRASSI1-29/+24
2020-08-02Windows: Fix UI for blocking TRIM in system encryption not working in MBR ↵Mounir IDRASSI1-5/+8
boot mode
2020-07-21Windows: Implement detection of Hibernate and Fast Startup and disable them ↵Mounir IDRASSI1-0/+37
if RAM encryption is activated.
2020-07-08Windows: Add UI options to control the behavior of automatic bootloader ↵Mounir IDRASSI1-2/+84
fixing when System Encryption used.
2020-07-06Windows: Support direct password drag-n-drop from external applications ↵Mounir IDRASSI1-0/+70
(e.g. KeePass) which is more secure than using clipboard.
2020-07-02Windows: Replace GetSystemInfo calls by more reliable function to get number ↵Mounir IDRASSI1-7/+7
of CPUs active on the PC.
2020-06-28Windows: Fix failure to detect suspension of machine that caused mounted ↵Mounir IDRASSI1-12/+47
volume not be dismount even if "Entering power saving mode" is checked in Preferences. This fix implements compatibility with Windows 10 Modern Standby and Windows 8.1 Connected Standby power model.
2020-06-28Windows: remove unused code targeting Windows 2000.Mounir IDRASSI1-14/+6
2020-06-19Windows: remove duplicated function to detect AES-NI support in CPUMounir IDRASSI1-1/+1
2020-03-10Windows: Fix keyfiles path passed as CLI argument and set as default not ↵Mounir IDRASSI1-3/+6
always cleared from RAM when VeraCrypt exits
2020-02-10Windows: Fix warnings reported by Coverity static code analyzerMounir IDRASSI1-0/+7
2020-01-21Windows: Support notifying WAITFOR.EXE Windows command when VeraCrypt.exe ↵Mounir IDRASSI1-0/+54
exits if /q was specified in CLI. This done using the new switch "/signalExit" who must have a string parameter that must be the same as the one that will be specified for WAITFOR.EXE command.
2020-01-21Windows: Fix failure of Screen Readers (Accessibility support) to reader UI ↵Mounir IDRASSI1-0/+14
by disabling newly introduced memory protection by default and adding a CLI switch (/protectMemory) to enable it when needed. This fixes issue https://github.com/veracrypt/VeraCrypt/issues/536
2019-12-13Windows: check "TrueCrypt Mode" in password dialog when mounting a file ↵Mounir IDRASSI1-1/+1
container with .tc extension
2019-12-08Windows: enhancements to the mechanism preserving file timestamps, ↵Mounir IDRASSI1-9/+15
especially for keyfiles.
2019-11-28Windows: Don't write extra 0x00 byte at the end of DcsProp file when ↵Mounir IDRASSI1-3/+4
modifying it through UI
2019-11-22Windows: Add new registry flags for SystemFavoritesService to control ↵Mounir IDRASSI1-2/+9
updating of EFI BIOS boot menu on shutdown. This will help better manage multi-boot scenarios where we should not mess up with boot order (e.g. grub2 case)
2019-11-12Windows: Allow system encrypted devices to be mounted from WindowsPE - even ↵csware1-4/+9
if changing the keyboard layout failed (#539) When my system broke and I had to use WindowsPE to rescue some files the password dialog always closed immediately. There was no chance to mount the system device using the GUI. It took me a while to realize that I could try using the CLI by passing the password as a parameter (which might not be so obvious for not advanced users). Signed-off-by: Sven Strickroth <email@cs-ware.de>
2019-10-27Windows: use strcmp to compare effective content of std::string since == ↵VeraCrypt_1.24-Hotfix1Mounir IDRASSI1-1/+1
operator may return false if one of the strins has an extra \0 at the end.
2019-10-27Windows: Only update boot configuration on disk if the user actually changed ↵Mounir IDRASSI1-25/+29
something in the UI
2019-10-27Windows: Update EFI NVRAM variable only if changed or doesn't exist and add ↵Mounir IDRASSI1-1/+4
configuration to force setting EFI BootNext to veraCrypt bootloader before each shutdown
2019-10-25Windows: for system encryption case, also perform automatic fix of boot ↵Mounir IDRASSI1-14/+10
configuration if MBR boot used and not only EFI.
2019-10-20Windows: Add checks that the System Favorites service is running. Warn user ↵Mounir IDRASSI1-1/+31
if he enabled option to clear RAM encryption keys and the service is stopped.
2019-09-29Windows: Use periodic update of connected devices only if there is a ↵Mounir IDRASSI1-8/+15
Favorite that uses VolumeID. Add command option to disable the period update of devices.
2019-09-26Windows: Fix sporadic keyboard issue in Secure Desktop for password dialog ↵Mounir IDRASSI1-1/+6
by not using the trick to put it reliably in foreground. The trick is based on a emulation of ALT+TAB but sometimes ALT key would remain pressed in case of Secure Desktop making it impossible to type the password (a workaround was to press CTRL key which reset the state of ALT key)
2019-09-24Windows: fix HourGlass cursor showing up in main UI after launching disk ↵Mounir IDRASSI1-4/+0
decryption wizard/
2019-03-08Windows: inform user that RAM encryption setting requires reboot to take effectMounir IDRASSI1-1/+23
2019-03-03Windows: Add command line switch (/m noattach) that is equivalent to UI ↵Mounir IDRASSI1-0/+4
option "Only create virtual device without mounting on selected drive letter"