Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] master from veracrypt:master #207

Open
wants to merge 63 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
71e4725
Update Language.ro.xml (#1434)
TigerxWood Nov 9, 2024
fcc0c82
Translations: Fix missing lang id in Romanian translation
idrassi Nov 9, 2024
04c747f
Add support for SHA-256 x86 instrinsic for enhance performance of PBK…
idrassi Nov 10, 2024
73684e5
Linux: Fix build error following SHA intrinsic support changes
idrassi Nov 10, 2024
262b745
Linux: Fix detection of SHA CPU support on virtualized environment by…
idrassi Nov 10, 2024
a1ade61
Linux: Fix build error caused by changes for dynamic CPU SHA support …
idrassi Nov 10, 2024
ec4b44c
Windows: Use BCryptGenRandom instead of deprecated CryptGenRandom to …
idrassi Nov 13, 2024
cb97351
Windows: Remove support for 32-bit driver code. Set build target as W…
idrassi Nov 13, 2024
c63b74b
Linux: Fix build error following latest code cleanup
idrassi Nov 13, 2024
75152f7
Use adequate const qualifiers for pbkdf2 functions arguments
idrassi Nov 13, 2024
951c8d2
Use portable alignment macro to be compatible with Linux/macOS
idrassi Nov 13, 2024
117d8dd
Windows: Fix MBR bootload compilation error following latest changes
idrassi Nov 14, 2024
43ad4f9
Windows: Fix various compiler warnings
idrassi Nov 14, 2024
fc4a544
Windows: Use VS builtin __fastfail intrinsic for fatal exception inst…
idrassi Nov 14, 2024
21e61c8
Windows: Fix warning in driver build by make get_pkcs5_iteration_coun…
idrassi Nov 15, 2024
de9e472
Windows: Fix build of MBR bootloader
idrassi Nov 15, 2024
214fbb5
Windows: Upgrade VS 2019 solution/projects to VS 2022. Remove Win32 c…
idrassi Nov 15, 2024
ad39040
Windows: Fix warning when building Setup and Portable. No file elevat…
idrassi Nov 15, 2024
6d1ad12
Windows: move main project files and solution from VS 2010 to VS 2022…
idrassi Nov 15, 2024
fff9e72
Windows: Fix delayload link warning about comdlg32.dll not used. Remo…
idrassi Nov 15, 2024
62e9569
Windows: remove VS 2019 solution and project files since we migrated …
idrassi Nov 15, 2024
3a5fe63
Windows: Fix VS 2022 projects references
idrassi Nov 15, 2024
a69cba9
Windows: Fix regression in self-test of hash algorithms that caused t…
idrassi Nov 15, 2024
489d3e3
Windows: Fix output directory configuration of COMREG project
idrassi Nov 15, 2024
c86577f
Windows: remove 32-bit logic from the code since we support only 64-b…
idrassi Nov 16, 2024
9c9870b
Windows: Avoid modifying BootArguments structure and use __unaligned …
idrassi Nov 16, 2024
a588b20
Windows: Fix driver crash caused by 32-bit leftover code in derive_ke…
idrassi Nov 16, 2024
b7f6270
Windows Driver: Add Unicode define to build and enhance tracing in de…
idrassi Nov 16, 2024
22c93dd
Linux/macOS: make binary symbols visible in crash report.
idrassi Nov 17, 2024
42fdbcf
Windows Driver: Fix deadlock in EncryptedIoQueue due to re-entrant IR…
idrassi Nov 17, 2024
93868ac
Windows Driver: Use system functions directly instead of dynamic load…
idrassi Nov 17, 2024
f9b9a9c
Increment version to 1.26.16. Update Release Notes. Update signed Win…
idrassi Nov 17, 2024
b85a2df
Windows driver: use correct WDM type. Increment version to 1.26.17
idrassi Nov 19, 2024
9490336
Windows: Update signed Windows drivers.
idrassi Nov 20, 2024
5a85c54
Windows Driver: Optimize spinlock usage in CompleteIrpWorkItemRoutine
idrassi Nov 22, 2024
453ff28
Windows Driver: Make max work items count configurable. Increase defa…
idrassi Nov 23, 2024
53bbee3
Windows Driver: Set version to 1.26.17.1. Update signed drivers.
idrassi Nov 24, 2024
e798d88
Translations: Update Slovenian translation (contributed by Prof. Sasa…
idrassi Nov 24, 2024
b6f3d8a
Translations: Fix issues in Slovenian translation. Complete translati…
idrassi Nov 24, 2024
8ad9e7d
Set 1.26.17 release date to November 24th
idrassi Nov 24, 2024
0c5fcf2
Windows Setup: Fix "Access Denied" issue during VeraCrypt update afte…
idrassi Nov 24, 2024
7e398c9
Windows: don't test sign driver by default in Release mode.
idrassi Nov 24, 2024
3b4b0f6
Translations: Update Slovenian translation (contributed by Prof. Sasa…
idrassi Nov 26, 2024
968b729
Update Release Notes.
idrassi Nov 26, 2024
c98fc90
Windows Setup: Fix the implementation of backup/restore of file permi…
idrassi Nov 27, 2024
3bb5184
Windows: Increment version to 1.26.17.2. Update signed drivers.
idrassi Nov 27, 2024
57cc247
Translations: Update Slovenian translation (contributed by Prof. Sasa…
idrassi Dec 22, 2024
f05ce4e
Updated Russian translation of Release Notes (by Dmitry Yerokhin)
idrassi Dec 22, 2024
b6e698b
Linux/macOS: check if volume doesn't exist before starting the mount …
idrassi Dec 23, 2024
341411e
Linux: Fix "Password too long" error message not expanded to include …
idrassi Dec 24, 2024
ca331b8
Linux/macOS: Simplify sudo session detection logic and extend it to m…
idrassi Dec 25, 2024
3f8ac7c
Add XML validation Github workflow (contributed by Jertzukka github.c…
idrassi Dec 25, 2024
650984c
Linux: Fix warning during build cause by deprecated 'u' modifier in "…
idrassi Dec 25, 2024
2830595
Windows Driver: make UpdateBuffer function more robust by adding secu…
idrassi Dec 25, 2024
81f0adc
Windows Driver: set Windows 10 version 1809 as minimum.
idrassi Dec 25, 2024
d9e1752
Windows: Update Windows version check on startup to require Win10 180…
idrassi Dec 25, 2024
f3af65b
Windows driver: Use IO_DISK_INCREMENT for event signaling in IRP comp…
idrassi Dec 25, 2024
4e85009
Windows: use modern API to gather system entropy for random generatio…
idrassi Dec 26, 2024
fcc6302
Windows: Update LZMA SDK to version 24.09
idrassi Jan 1, 2025
138e5e7
Windows: Update libzip to version 1.11.2
idrassi Jan 1, 2025
a8c9048
Windows: Add missing file entry to Zip project after libzip update
idrassi Jan 6, 2025
e8e0be2
Update donation HTML page to use new PayPal donation links
idrassi Jan 6, 2025
cc2f177
Linux Debian/Ubuntu: use a distro-specific version string to avoid AP…
idrassi Jan 11, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Windows: Update Windows version check on startup to require Win10 180…
…9 or later

- Add IsWin10BuildAtLeast() helper function to check Windows 10 build numbers
- Replace direct build number comparison with IsWin10BuildAtLeast() for ReflectDrivers check
- Update error message to be more specific about Windows version requirement
  • Loading branch information
idrassi committed Dec 25, 2024
commit d9e17522ee9a326100c9acb9fbafd443497cfdac
2 changes: 1 addition & 1 deletion src/Common/BootEncryption.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3202,7 +3202,7 @@ namespace VeraCrypt
void BootEncryption::UpdateSetupConfigFile (bool bForInstall)
{
// starting from Windows 10 1607 (Build 14393), ReflectDrivers in Setupconfig.ini is supported
if (IsOSVersionAtLeast (WIN_10, 0) && CurrentOSBuildNumber >= 14393)
if (IsWin10BuildAtLeast(WIN_10_1607_BUILD))
{
wchar_t szInstallPath [TC_MAX_PATH];
wchar_t szSetupconfigLocation [TC_MAX_PATH + 20];
Expand Down
20 changes: 17 additions & 3 deletions src/Common/Dlgcode.c
Original file line number Diff line number Diff line change
Expand Up @@ -1046,6 +1046,20 @@ BOOL IsOSVersionAtLeast (OSVersionEnum reqMinOS, int reqMinServicePack)
>= (major << 16 | minor << 8 | reqMinServicePack));
}

BOOL IsWin10BuildAtLeast(DWORD minBuild)
{
// Must first be recognized as Windows 10 or higher
if (nCurrentOS < WIN_10)
return FALSE;

// If we’re on Windows 10, check build number
if (nCurrentOS == WIN_10 && CurrentOSBuildNumber < minBuild)
return FALSE;

// If we are on a higher version of Windows, we are good to go
return TRUE;
}

#ifdef SETUP_DLL
static BOOL GetWindowVersionFromFile(DWORD* pdwMajor, DWORD* pdwMinor, DWORD* pdwBuildNumber)
{
Expand Down Expand Up @@ -3611,10 +3625,10 @@ void InitApp (HINSTANCE hInstance, wchar_t *lpszCommandLine)

InitOSVersionInfo();

if (!IsOSAtLeast (WIN_10))
if (!IsWin10BuildAtLeast(WIN_10_1809_BUILD))
{
// abort using a message that says that VeraCrypt can run only on Windows 10 and later
AbortProcessDirect(L"VeraCrypt requires at least Windows 10 to run.");
// abort using a message that says that VeraCrypt can run only on Windows 10 version 1809 or later
AbortProcessDirect(L"VeraCrypt requires at least Windows 10 version 1809 (October 2018 Update) to run.");
}

if (!Is64BitOs())
Expand Down
4 changes: 4 additions & 0 deletions src/Common/Dlgcode.h
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,9 @@ typedef NTSTATUS (WINAPI *NtQuerySystemInformationFn)(
#define ISO_BURNER_TOOL L"isoburn.exe"
#define PRINT_TOOL L"notepad.exe"

#define WIN_10_1607_BUILD 14393 // Windows 10 version 1607 corresponds to build 14393
#define WIN_10_1809_BUILD 17763 // Windows 10 version 1809 corresponds to build 17763

void InitGlobalLocks ();
void FinalizeGlobalLocks ();
void cleanup ( void );
Expand Down Expand Up @@ -500,6 +503,7 @@ void Debug (char *format, ...);
void DebugMsgBox (char *format, ...);
BOOL IsOSAtLeast (OSVersionEnum reqMinOS);
BOOL IsOSVersionAtLeast (OSVersionEnum reqMinOS, int reqMinServicePack);
BOOL IsWin10BuildAtLeast(DWORD minBuild);
BOOL IsSupportedOS ();
BOOL Is64BitOs ();
BOOL IsARM();
Expand Down