VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2024-07-24Windows: Update WiX and SDK paths in build bat filesMounir IDRASSI2-9/+11
2024-07-13Linux: fix linker type confusion that was causing crash.Mounir IDRASSI3-32/+32
The class AdminPasswordRequestHandler was defined in several places in the same namespace and the linker was picking up one definition for constructor and the other one when calling virtual method. Now we use different named for different implementations.
2024-07-11Documentation: Update QR codes and logos (#1376)Marius Kjærstad1-2/+2
* Documentation: Update QR codes and logos * Add QR codes in 200x200 resolution
2024-07-10Linux: fix typoMounir IDRASSI1-1/+1
2024-07-10Linux: fix crash when displaying Admin password dialog. Fix failure of ↵Mounir IDRASSI1-27/+26
Github action by using builtin GITHUB_TOKEN
2024-07-06Linux: Add Github CI workflow for Linux (#1374)Mounir IDRASSI7-74/+239
* Linux/MacOSX: during build, fallback to /tmp if wxWidgets sources not found in parent directory * Linux: Add Github workflow to build .deb files and test generated binaries * Linux: fix wrong wxWidgets extract path in yaml * fix: fix wrong wxWidgets extract path in yaml * Linux: harmonize content of test volumes and update Github workflow for this * Fix corrupted test container * Linux: optimize Github workflow by caching wxBuildConsole and wxBuildGUI folders We also modify build script to detect the presence of wxBuildConsole and wxBuildGUI folders and reuse them * Remove files mistakenly added * Linux: Fix wrong test for Github workflow * Linux: use static build of wxWidgets for GUI in Github workflow * Linux: upload also .deb SHA256SUM file if it is generated in Github workflow * Linux: fix detection logic of parent folder in build scripts * Github workflow: add build_cmake_deb.sh as trigger to build-linux.yml * Github workflow: add wxWidgets source code to the cache of workflow
2024-07-05Linux/FreeBSD: Improve build scripts for Linux/FreeBSD to have correct name ↵Mounir IDRASSI1-3/+28
for generic GUI installer
2024-07-05Linux: Add linker flag for GCC version below 6.0 to improve ASLR securityMounir IDRASSI1-0/+6
Reported on https://sourceforge.net/p/veracrypt/discussion/technical/thread/90f967e642 reference: https://grsecurity.net/toolchain_necromancy_past_mistakes_haunting_aslr script to check: https://github.com/opensrcsec/paxtest/blob/master/contrib/check_align.sh
2024-07-01MacOS: Support CommandLineTools for building (#1371)Jertzukka2-11/+9
Full Xcode application which can take up-to 40GB of disk space is not necessary for building VeraCrypt, rather the CommandLineTools for XCode are sufficient which only take few gigabytes. Instead of hardcoding the SDK location, use xcrun --show-sdk-path to support also the CommandLineTools instance. The reason for switching the logic for the XCode version is because the xcodebuild will not report a correct XCode version for the CommandLineTools, thus it can't be relied for whether to use the -Wl,-ld_classic flags. Instead, we can just check the ld version in use in the active developer directory, and see whether we are using dyld (the new) or ld64 (the old).
2024-06-30Linux: Make the C++ code compatible with old compilers (g++ 4.4.7 on CentOS 6)Mounir IDRASSI13-130/+138
2024-06-29Line breaks between copyright holders (#1370)Marius Kjærstad1-1/+1
2024-06-26Linux/FreeBSD: Fix GNU Make syntax error in Main.makeMounir IDRASSI1-3/+3
2024-06-26Linux/FreeBSD: Update build scripts: use wxwidgets 3.2.5, drop explicit GTK3 ↵Mounir IDRASSI8-148/+26
config since it detected automatically We also update copyrights date
2024-06-26Linux/FreeBSD: use GTK3 flavor for default generic gui installer. create ↵Mounir IDRASSI1-0/+12
GTK2 specific gui installer.
2024-06-26Linux/FreeBSD: automatically detect presence of GTK3. Remove WITHGTK3 ↵Mounir IDRASSI2-34/+32
makefile argument.
2024-06-24Fix regression in core service deserialization (#1367)Jertzukka1-1/+0
Introducing data into the standard out in the core service will cause deserialization problems, as the pipes are used for interprocess communication.
2024-06-23MacOSX: Fix compiler warningMounir IDRASSI2-3/+3
Update friend declaration in FuseService.h and refactor GetCharWidth to ComputeCharWidth in WaitDialog.h to avoif hiding GetCharWidth inherited from wxWindow
2024-06-23Increment version to 1.26.12Mounir IDRASSI17-47/+47
2024-06-23MacOSX: set FUSE-T workaround max delay to 5 seconds. Make logic specific to ↵Mounir IDRASSI1-6/+12
FUSE-T volumes.
2024-06-23MacOSX: Disable libtiff support in wxWidget full buildMounir IDRASSI1-0/+5
2024-06-23MacOSX: Add notarization script and entitlements file used to create ↵Mounir IDRASSI2-0/+148
official VeraCrypt dmg
2024-06-23MacOSX: use same version define in Info.plist files. Indicate 12.0 as ↵Mounir IDRASSI2-3/+3
minimum supported macOS version
2024-06-23macOSX: Add "FUSE-T build" in About dialog when linking against FUSE-T ↵Mounir IDRASSI1-1/+5
instead of MacFUSE
2024-06-23Update copyright date in some filesMounir IDRASSI5-8/+8
2024-06-23Increment version to 1.26.11. Update Release Notes.Mounir IDRASSI17-49/+49
2024-06-22MacOSX: Add for using FUSE-T instead of MacFUSEMounir IDRASSI8-12/+1112
The build script build_veracrypt_macosx.h now accepts the argument -f to enable fuse-t support. It is also possible to set the environment variable VC_OSX_FUSET to 1 for FUSE-T support. A change was done in CoreUnix::GetMountedVolumes to add a waiting loop for control file to be accessible because when using FUSE-T there always a delay before control file can be serialized.
2024-06-21MacOSX: Fix compilation error in build configurations other than official ↵Mounir IDRASSI1-1/+1
release
2024-06-19Linux: Fix assembly files not built on LinuxMounir IDRASSI1-1/+1
This is a regression caused by macOS changes. And endif statement was misplaced.
2024-06-18fix: Correct missing 'endif' in Main.make for MacOSX sectionMounir IDRASSI1-1/+1
Replaced an incorrect 'end' statement with 'endif' in the MacOSX-specific section of the Main.make file. This resolves the make error caused by an unclosed conditional block.
2024-06-16MacOSX: Update macOS specifics part of the ReadmeMounir IDRASSI1-10/+27
2024-06-16MacOSX: Fix whitespaces by using tabs in MakefileMounir IDRASSI1-32/+32
2024-06-16MacOSX: Use wxWidgets 3.2.5. Detect SDK version dynamically. Remove unused ↵Mounir IDRASSI1-6/+6
"r" getopts option.
2024-06-16MacOSX: Fix skipping codesign and productsign for local development buildMounir IDRASSI1-1/+6
2024-06-16MacOSX: Add universal binary of yasm so that it can run on arm64 machinesMounir IDRASSI1-0/+0
2024-06-16MacOSX: Better build flags logic handling. Suppress Xcode 15 linked warning.Mounir IDRASSI1-60/+59
2024-06-16Improve and simplify macOS builds (#1276)Deniz Türkoglu4-13/+78
* Add missing macOS requirement for 'make package' We need packages for the last build step on macOS, update docs to reflect the requirement. * Add build instructions using homebrew On macOS, we can use a package manager to easily install dependencies. This simplifies onboarding and building Veracrypt. * Add flag to use homebrew packages When building, we can use prebuilt wxwidgets from homebrew to simplify and speed up local building. We also put the package behind a flag as it's optional during development. * Skip signing for local builds When building with homebrew, skip signing. This can be put behind a flag to enable, if needed. * Use system yasm on macOS if available The binary in the repo is not universal (x86_64) and therefore building fails on arm architecture if Rosetta is not installed. Use local yasm if available. * Build local arch only in development When building via homebrew and locally, build only the local arch which skips ASM for arm(Mx) for MacOS. This removes the need to have rosetta installed for building. * Fix compilation issue when COMPILE_ASM is undefined Use a conditional check for COMPILE_ASM not being false instead of true. This avoids passing the variable to other parts of the build script. * Set SDK 12 as the minimum requirement and target Align the requirement to SDK 12 in both the makefile and script, and update the comment to remove confusion. I chose to leave this on 12 to be on the side of err and support as many building platforms as possible, when we can support. The local script now also sets the target using the local sdk version. This should improve the local development experience. * Fix wrong architecture for macOS in x86 builds We now build only the current arch for local development builds in macOS. This change also fixes the x86 builds failing. * Add instructions brew backed macOS local builds Flags to build a local build using homebrew packages are not default and require parameter -b to build. We also don't build packages directly, which requires -p. * Fix wxwidgets not linking in local x86 macOS development builds * Clarify build location in the document
2024-06-12Avoid conflict with C++17 features std::byte by using uint8 type instead of byteMounir IDRASSI132-1036/+1033
2024-06-03Avoid assert by verifying installed languages exist (#1354)Jertzukka1-8/+10
wxDir::GetAllFiles will throw an assert when opening the preferences dialog if for some reason the user has not installed VeraCrypt properly and is missing the intended folder. This patch adds a check to ensure the folder first exists before querying its files.
2024-06-03FreeBSD: Support automatic detection and mounting of ext2/3/4, exFAT, NTFS ↵Jertzukka2-3/+54
filesystems (#1350)
2024-06-03FreeBSD: Fix privilege escalation prompts not showing up (#1349)Jertzukka1-1/+1
The behaviour of `wc -l` is different on FreeBSD, in which the stdout result is padded by spaces in the beginning, which causes that the result[0] is not actually the value we care about. This patch adds a translate removing all whitespace from the output.
2024-05-21Linux: enhancements to build_cmake_deb.sh script. Use wxWidgets 3.2.5Mounir IDRASSI1-50/+55
2024-05-21Linux: Update dependencies for debian packages on Ubuntu 24.04 and Debian 13Mounir IDRASSI1-2/+15
packages were renamed and we linked statically against wxWidgets in GUI mode because of a bug in wxWidegts that was solved in 3.2.5 (https://github.com/wxWidgets/wxWidgets/issues/24081)
2024-05-18Prepare for changes in wxWidgets 3.3 (#1343)Jertzukka5-7/+7
* Move from deprecated wxScopedPtr to std::unique_ptr wxScopedPtr was included previously through some header hierarchy which as of 3.3 is no longer the case causing it to break. But instead of including a header for a deprecated function explicitly, just move to std::unique_ptr as recommended by upstream. * Convert to explicit conversions from wxString As of https://github.com/wxWidgets/wxWidgets/pull/23449/commits/35c35c235e9c29b40002131602e050dca8d65b8c wxWidgets defaults to STL classes, which has a side-effect that some implicit conversions break. This patch converts those conversions to explicit in anticipation of wxWidgets 3.3 release.
2024-05-08Fix incorrect max hidden volume size for file containers on CLI (#1338)Jertzukka1-6/+12
Currently the maximum hidden volume size for file containers is limited by available free space on the device the file container resides on, which we do not care about. This commit changes so that only Normal volumes get their `maxVolumeSize` limited by `AvailableDiskSpace`. Also the --size=max parameter is restricted from hidden volume creation as there is no way to determine a good size as we do not mount the outer volume through the CLI process flow to determine available free space on the outer volume.
2024-05-08Windows: Enhance memory protection mechanism by preventing process owner ↵Mounir IDRASSI1-2/+31
from granting permissions to itself.
2024-04-10Fix: 7 typos (#1324)RoboSchmied3-7/+7
Signed-off-by: RoboSchmied <github@roboschmie.de>
2024-04-10update zlib + copyright (#1302)DLL12513-81/+1736
2024-04-10Correct exceptions to match the correct language strings (#1299)Jertzukka1-3/+3
Fixes the order of the language strings to match the correct exceptions.
2024-04-10Unix CLI: Don't initially re-ask PIM if it was already specified (#1288)Jertzukka1-1/+0
We don't need to reset PIM in PasswordException as it is immediately fell back to if PIM is specified in text mode, but password is not. This causes an exception that resets the PIM when it shouldn't.
2023-12-11Linux: Allows GUI to launch in a Wayland-only environment (#1264)Jertzukka1-1/+1
Currently we check whether the system has DISPLAY environment variable set, which is the case in a system that uses X11 natively or XWayland. This variable is not set in a system with only Wayland, so we need to also check whether WAYLAND_DISPLAY is set. Fixes: #184