Commit Graph

2420 Commits

Author SHA1 Message Date
Mounir IDRASSI
d68b9546bd
Windows: simpler and more robust safe dll loading combined with delay 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-09-03 00:58:34 +02:00
Mounir IDRASSI
7b48d16fbd
HTML Documentation: Update Russian translation by Dmitry Yerokhin 2023-09-03 00:50:37 +02:00
Mounir IDRASSI
87834fb330
Language XML files: update Russian XML file by Dmitry Yerokhin. 2023-09-03 00:48:41 +02:00
Mounir IDRASSI
14fee0da1a
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)
2023-09-02 01:37:52 +02:00
Mounir IDRASSI
8e2329bf9e
Language XML files: update Czech translation (contributed by Lagardere) 2023-08-30 11:33:12 +02:00
TigerxWood
d63a7ea0af
Update Language.ro.xml (#1188)
Corrected a typo.
2023-08-30 10:28:50 +02:00
TigerxWood
84a7e1f6ff
Update Language.ro.xml 1.26.5 (#1184)
* Update Language.ro.xml 1.26.5

* Update Language.ro.xml
2023-08-29 09:23:28 +02:00
Unit 193
d49c75370a
Allow cross compilation. (#1182) 2023-08-21 11:24:25 +02:00
Mounir IDRASSI
fd0d2e3353
Windows: Set minimum build target to Windows 7 2023-08-20 09:59:47 +02:00
Mounir IDRASSI
0dc4754c63
Windows: delay load bcrypt.dll to reduce startup dependency loading until setting safe dll loading 2023-08-20 09:57:38 +02:00
DLL125
4f92ba5484
Update zlib to latest (#1181)
* Update zlib to latest

* Update copyright

Updated copyright of zlib.
2023-08-20 09:21:54 +02:00
Mounir IDRASSI
89d340271c
Update Release Notes with latest Linux fix for hidden volume in CLI 2023-08-20 00:28:06 +02:00
Mounir IDRASSI
34ef189a92
Linux: try use IOCTL BLKGETSIZE64 to get size of device instead of lseek 2023-08-19 20:47:43 +02:00
Mounir IDRASSI
9d8afdad93
Linux: Fix wrong max size for hidden volume in CLI direct mode creation
There was a logical bug that made the code check the filesystem size of
the device path "/dev" instead of using the actual size of the device

Fix #1180
2023-08-19 20:44:32 +02:00
cjl3230
ed70b673d5
Update Language.zh-cn.xml (#1177)
d3ecffac3b/Translations/Language.zh-cn.xml (L1608C89-L1608C89)
Missing character n after backslash
2023-08-16 09:19:40 +02:00
Mounir IDRASSI
d3ecffac3b
Fix typo in Release Notes 2023-08-16 01:25:10 +02:00
Mr-Update
a22cc2f072
Update Language.de.xml (#1176) 2023-08-16 01:02:02 +02:00
Mounir IDRASSI
9bd6a46785
Windows: Update MBR bootloader files to 1.26.5 build 2023-08-15 10:17:04 +02:00
Mounir IDRASSI
e47f6e900c
Update Release Notes and set date of 1.26.5 to August 15th 2023-08-15 09:48:51 +02:00
nkh0472
462140f144
Update Language.zh-cn.xml (#1175) 2023-08-14 22:18:36 +02:00
Patriccollu
33c47c534c
Update Corsican translation on 2023-08 (#1174) 2023-08-14 22:16:47 +02:00
Mounir IDRASSI
d555ecf3c9
Translation XML: reintroduce new entry to zh-cn xml file 2023-08-14 09:50:46 +02:00
nkh0472
53235b5db4
Update Language.zh-cn.xml (#1134)
* Update Language.zh-cn.xml

* Update Language.zh-cn.xml

* Update Language.zh-cn.xml

* Update Language.zh-cn.xml

* Update Language.zh-cn.xml

unify the colon symbol ``:`` to Chinese style ``:``

* Update Language.zh-cn.xml

unify symbols ``.`` ``,`` ``;`` to Chinese style ``。`` ``,`` ``;``

* Update Language.zh-cn.xml

* Update Language.zh-cn.xml

fix `:` in the bug report template
2023-08-14 09:48:55 +02:00
Mounir IDRASSI
4e6268e5d5
Translation XML: remove new entry for zh-cn to merge GH pull request without conflict
This avoids using a merge strategy that would have polluted git history (no squash possible)
2023-08-14 09:48:06 +02:00
Matthaiks
2a0efe9c41
Update Polish translation (#1173) 2023-08-14 09:11:06 +02:00
Mounir IDRASSI
fcf0cb94f1
Increment version to 1.26.5. Update signed Windows drivers. 2023-08-14 01:45:37 +02:00
Mounir IDRASSI
ed53857b2f
Translations: Add new entry "PARTIAL_SYSENC_MOUNT_READONLY" 2023-08-14 01:11:27 +02:00
Mounir IDRASSI
f84d235cf1
Windows: Implement support for mounting partially encrypted system partitions
For now, we force ReadOnly mounting for such partitions.
2023-08-13 22:50:37 +02:00
Mounir IDRASSI
8c7962bda7
Windows: Better way to enable required privileges for FastCreate Options
If we can set required privilege, we ask the user using UAC to enable them.
2023-08-13 00:56:49 +02:00
Jertzukka
eb2f5f33c9
Linux: Flush stdout explicitly when reading stdin (#1172)
Rules of automatic flushing of stdout buffer is implementation-defined
behaviour. In glibc this is automatically flushed, but we can't rely
on it for other implementations such as musl.
2023-08-12 09:18:57 +02:00
Jertzukka
5c9e135c9e
Linux: Typo fix and consistency in help command (#1169) 2023-08-12 09:17:18 +02:00
Mounir IDRASSI
f48c21a54b
Documentation: Update Windows build guide to mention Windows Test Mode and steps to avoid signature check failures 2023-08-10 01:27:57 +02:00
Mounir IDRASSI
c15b84b32d
Windows: Fix failure creating Traveler Disk caused by outdated hardcoded value of MS certificate
We also rename the variables gpbSha256CodeSignCertFingerprint and gpbSha256MSCodeSignCertFingerprint to gpbSha512CodeSignCertFingerprint and gpbSha512MSCodeSignCertFingerprint respectively to reflect the fact that they are actually SHA512 hash values and not SHA256 ones.
2023-08-10 01:23:24 +02:00
Mounir IDRASSI
0e32e5f398
FAQ: Add entry for solving Operation no permitted issue on macOS 2023-08-09 00:59:00 +02:00
TigerxWood
64891d08a8
Update Language.ro.xml (#1168)
* Update Language.ro.xml

* Update Language.ro.xml

Final version
2023-08-09 00:48:48 +02:00
Deniz Türkoglu
8f3082c3ef
Call EnsureVisible() for OSX in OnActivate (#1167)
When using multiple monitors, the resolution can change in OSX,
during plug-in/off off the display(s). To avoid window becoming
non-usable, there is EnsureVisible, that is called in several
places.

However, if you minimize VeraCrypt on the bigger screen, and
restore it in the main screen of a MacBook, after unplugging, the
window will become unusable (unless you know that clicking 'About'
calls EnsureVisible :-)).

Call EnsureVisible OnActivate so MainFrame is always functional
across screens, even when minimized.
2023-08-07 22:53:19 +02:00
Mounir IDRASSI
fba1943d87
Linux/macOS: Add explicit include of <sys/types.h> to define ssize_t
Some systems (e.g. Alpine Linux) seems to require this.
2023-08-06 10:28:42 +02:00
Mounir IDRASSI
dab261c694
Linux: capture both stdout and stderr in popen call to avoid printing anything
If an error happens, error message will be read from popen pipe and so
libpcsclite.so will not be found. This is the same outcome as when
stdout is empty.
2023-08-06 01:06:19 +02:00
Mounir IDRASSI
16bb1de3a6
Security: ensure that XTS primary key is different from secondary key when creating volumes
This is unlikely to happen thanks to random generator properties but we much add this check to prevent an attack described in page 3 of https://csrc.nist.gov/csrc/media/Projects/crypto-publication-review-project/documents/initial-comments/sp800-38e-initial-public-comments-2021.pdf
2023-08-05 10:55:46 +02:00
Mounir IDRASSI
e8f83544ea
Windows: Fix false positive detection of new device insertion when clear 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-08-05 00:45:39 +02:00
kovalev0
5a6b445f0e
fix warnings and UB (#1164)
* Crypto: fix warning mismatched bound

../Crypto/cpu.c:67:32: warning: argument 2 of type 'uint32[4]'
{aka 'unsigned int[4]'} with mismatched bound [-Warray-parameter=]
   67 | int CpuId(uint32 input, uint32 output[4])
      |                         ~~~~~~~^~~~~~~~~
In file included from ../Crypto/cpu.c:3:
../Crypto/cpu.h:236:33: note: previously declared as 'uint32 *'
{aka 'unsigned int *'}
  236 | int CpuId(uint32 input, uint32 *output);

Signed-off-by: Vasiliy Kovalev <kovalev@altlinux.org>

* Core/Unix: fix warning ignoring return value

Unix/CoreUnix.cpp: In member function 'virtual std::shared_ptr<VeraCrypt:\
:VolumeInfo> VeraCrypt::CoreUnix::MountVolume(VeraCrypt::MountOptions&)':
Unix/CoreUnix.cpp:682:55: warning: ignoring return value of
'int chown(const char*, __uid_t, __gid_t)' declared with attribute
'warn_unused_result' [-Wunused-result]
  682 |     chown (mountPoint.c_str(), GetRealUserId(), GetRealGroupId());
      |     ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Vasiliy Kovalev <kovalev@altlinux.org>

* Main/Forms: fix warning cast to pointer from integer of different size

Forms/MainFrame.cpp: In member function 'void VeraCrypt::MainFrame:\
:UpdateVolumeList()':

Forms/MainFrame.cpp:1718:106: warning: cast to pointer from integer of
different size [-Wint-to-pointer-cast]
 1718 |       Gui->InsertToListCtrl (SlotListCtrl, ++prevItemIndex,
        fields, 0, (void *) volume->SlotNumber);
      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~

Forms/MainFrame.cpp:1753:114: warning: cast to pointer from integer of
different size [-Wint-to-pointer-cast]
 1753 |       Gui->InsertToListCtrl (SlotListCtrl, ++prevItemIndex,
        fields, 0, (void *) slotNumber);
      |            ^~~~~~~~~~~~~~~~~~~

Signed-off-by: Vasiliy Kovalev <kovalev@altlinux.org>

* Crypto: fix undefined behavior signed integer overflow

In function 'twofish_set_key':
cc1: warning: iteration 4 invokes undefined behavior
[-Waggressive-loop-optimizations]
../Crypto/Twofish.c:626:23: note: within this loop
  626 |         for (i = 0; i != 40; i += 2)
      |                     ~~^~~~~

Signed-off-by: Vasiliy Kovalev <kovalev@altlinux.org>

---------

Signed-off-by: Vasiliy Kovalev <kovalev@altlinux.org>
Co-authored-by: Vasiliy Kovalev <kovalev@altlinux.org>
2023-08-04 23:49:11 +02:00
Patriccollu
32e9703905
Update Corsican translation on 2023-07 (2nd) (#1162) 2023-07-31 23:14:18 +02:00
Jertzukka
9b29eadc41
Windows: Add installer language support for rest of the translations (#1160)
Currently there are a lot of translated strings that are never seen
anywhere as the installer doesn't offer all the available languages
as options in the installer wizard (sans Burmese).
2023-07-29 16:31:40 +02:00
Mounir IDRASSI
be5c28c481
Release Notes: Fix typo 2023-07-25 22:26:16 +02:00
Mounir IDRASSI
b7fc6897b9
Linux/macOS: Increment version to 1.26.4 in installation packages 2023-07-25 22:25:46 +02:00
Mounir IDRASSI
e80dd29c0d
Windows: remove unused variable 2023-07-24 09:20:43 +02:00
Mounir IDRASSI
d4fdba1d29
Update Release Notes and set date of 1.26.4 to July 24th 2023-07-24 09:13:34 +02:00
harryytm
ab844d8bad
Language Translations files: update Chinese (Hong Kong) translation (#843)
* Update Chinese (Hong Kong) translation

- replace Mainland China wordings with Hong Kong wordings
- correcting size unit to use KiB, MiB, GiB, TiB
- using Windows default Chinese Traditional fonts

* Update Language.zh-hk.xml

* Update Language.zh-hk.xml

- translated some untranslated lines
- minor wording refinements

* Update Language.zh-hk.xml

daily commit for translation progress

* Update Language.zh-hk.xml

* Update Language.zh-hk.xml

* Update Language.zh-hk.xml

* Update Language.zh-hk.xml

* Update Language.zh-hk.xml

* Update Language.zh-hk.xml

* translated some more untranslated strings

* Update Language.zh-hk.xml

* Language Translations files: update Chinese (Hong Kong) translation

# minor wording changes
# corrected lang attribute to en on some untranslated entries
+ translated some untranslated entries
+ translated some new entries

* Language Translations files: update Chinese (Hong Kong) translation

 - translated some new entries

* Language Translations files: update Chinese (Hong Kong) translation

- minor changes

* Language Translations files: update Chinese (Hong Kong) translation

- translated some new entries

* Language Translations files: update Chinese (Hong Kong) translation

- translated some new entries for Linux

* Language Translations files: update Chinese (Hong Kong) translation

- translated some new entries

* Update Language.zh-hk.xml

- add back and translated missing line 298
- minor wording changes
- major progress

* Update Language.zh-hk.xml

- refine wordings
- correct mismatch translations in lines 635-640
- minor progress

* Update Language.zh-hk.xml

- refine wordings
- correct line 470
- minor progress

* Update Language.zh-hk.xml

- correct line 164 and 273

* Update Language.zh-hk.xml
2023-07-24 09:11:50 +02:00
Mr-Update
bc9803f22e
Update Language.de.xml (#1158) 2023-07-24 09:10:33 +02:00
Matthaiks
9ffc544397
Update Polish translation (#1157) 2023-07-24 09:10:05 +02:00