VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Platform/Unix
AgeCommit message (Collapse)AuthorFilesLines
2024-06-12Avoid conflict with C++17 features std::byte by using uint8 type instead of byteMounir IDRASSI1-1/+1
2023-08-19Linux: try use IOCTL BLKGETSIZE64 to get size of device instead of lseekMounir IDRASSI1-0/+11
2022-02-18Linux: Fix code dump when built with -D_GLIBCXX_ASSERTIONS caused by an ↵Mounir IDRASSI1-1/+0
assert in libstdc++. The variable has enough capacity so pointer &buffer[0] is valid but since clear method was called, we are not supposed to access element at index 0. Related to Github issue #896
2021-07-14Make system devices work under FreeBSD (#777)MrLightningBolt2-2/+34
We query the kern.geom.conftxt sysctl for the GEOM configuration to find the partition offset. Technically speaking it would probably be better to link against libgeom but this is less overall intrusive. Also includes a small fix to find the parent device of an encrypted partition when it is a GPT partition rather than a BSD slice.
2021-07-14Add support for OpenBSD (#779)kokokodak3-1/+18
* OpenBSD: add basic support modified: Build/Include/Makefile.inc modified: Driver/Fuse/FuseService.cpp modified: Main/FatalErrorHandler.cpp modified: Makefile modified: Platform/Unix/File.cpp modified: Platform/Unix/FilesystemPath.cpp modified: Platform/Unix/SystemInfo.cpp * OpenBSD: some necessary files were missing new file: Core/Unix/OpenBSD/CoreOpenBSD.cpp new file: Core/Unix/OpenBSD/CoreOpenBSD.h new file: Core/Unix/OpenBSD/System.h
2020-06-11Switch from auto_ptr to unique_ptr (#638)Christopher Bergqvist1-1/+1
2019-11-12Fix off by one overflow with 31 args (#541)Hanno Böck1-1/+1
2019-06-06Some cleanup related to "Invalid characters..." on mount issue. (#453)Alexander Karzhenkov1-23/+3
* Revert previous commit * Fix "Invalid characters..." issue by not using "foreach" macro The "foreach" macro creates a copy of the container. This copy is destroyed immediately after the iteration is completed. C-strings pointers passed to the local array were invalidated with destroying of "std::string"s contained in the copy.
2018-04-04FreeBSD/MacOSX: fix for missing <sys/sysmacros.h> headerMounir IDRASSI1-0/+2
2018-04-04Platform/Unix: include <sys/sysmacros.h> for major/minor macros (#303)Gokturk Yuksek1-0/+1
Starting with glibc 2.26, macros "major" and "minor" are only available from <sys/sysmacros.h> [0]. The build fails with the following without including this header: Unix/FilesystemPath.cpp:84:49: error: ‘major’ was not declared in this scope Unix/FilesystemPath.cpp:84:113: error: ‘minor’ was not declared in this scope [0] https://sourceware.org/ml/libc-alpha/2017-02/msg00079.html
2017-12-09Linux: fix compilation error with older versions of gcc (e.g. 4.x)Mounir IDRASSI1-3/+3
2017-11-28Linux: autodetect host drive name using sysfs (closes #233)gv54701-0/+23
2017-06-23Update IDRIX copyright yearMounir IDRASSI17-17/+17
2016-05-10Remove trailing whitespaceDavid Foerster17-37/+37
2016-03-18Linux: Completely fix gcc-5 "Invalid characters encountered" issue on mount. ↵Mounir IDRASSI1-2/+22
It was caused by an issue of gcc-5 STL implementation that is causing char* pointers retrieved from std::string using c_str method to become invalid in the child of a child process (after two fork calls). The workaround is to first copy the std:string values in the child before calling the second fork.
2016-01-20Copyright: update dates to include 2016.Mounir IDRASSI17-17/+17
2015-08-06Update license information to reflect the use of a dual license Apache 2.0 ↵Mounir IDRASSI17-76/+144
and TrueCrypt 3.0.
2014-11-08Change namespace from TrueCrypt to VeraCrypt. Rename method from Resources ↵Mounir IDRASSI16-16/+16
Resources::GetTrueCryptIcon to Resources::GetVeraCryptIcon.
2014-11-08Replace TrueCrypt from Linux/MacOSX mount point namesMounir IDRASSI1-1/+1
2014-11-08Replace TrueCrypt references in added sources and resources by VeraCrypt ones.Mounir IDRASSI1-2/+2
2014-11-08Add TrueCrypt 7.1a MacOSX/Linux specific source files.Mounir IDRASSI17-0/+1322