aboutsummaryrefslogtreecommitdiff
path: root/crypto/compat (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Windows: Fix assertion pop-up up when using Debug compiled libressl.Christian Andersen2024-02-041-0/+2
| | | | | | | | | | | When running the signertest, or the test project in https://github.com/libressl/portable/issues/266 an assertion window pops up. This was fixed in afcd4be8a72a for a release compiled library. To prevent the issue in debug mode, it looks like it is necessary to also disable the assertion window popup. With this all tests pass when compiling and running them with a Debug, Release or RelWithDebInfo CMake build on windows (for me).
* Land #964Theo Buehler2023-12-121-1/+1
|\
| * windows: minor compat header fixesViktor Szakats2023-12-111-1/+1
| | | | | | | | | | | | - posix_win.c: use `snprintf` as-is with _MSC_VER >= 1900 - stdio.h: include socket header before windows.h - pthread.h: delete exec permission from source file
* | upgrade links in comments to HTTPSViktor Szakats2023-12-111-2/+2
|/
* delete unused `savsig` variableViktor Szakats2023-11-031-3/+0
| | | | | | Follow-up to dd1d96f643b01a5edbe7e0db8399f3c88f5f0c8b Fixes #925
* fix cross-compilation on Windows 11 Arm64Brent Cook2023-10-301-42/+0
| | | | | signal.h is less populated in this environment, remove stub signal handlers
* Land #886, add compat getopt implementationBrent Cook2023-07-071-0/+528
|\
| * add compat getopt implementation, remove patchesBrent Cook2023-07-071-0/+528
| | | | | | | | | | | | | | | | | | This adds a getopt implementation for compatibility where it is not available, removing a couple of regress patches. Note, this is a slightly modified copy from OpenBSD libc that doesn't expose getopt_long, which has dependency conflicts with Windows system headers and isn't needed anyway.
* | fix get/setsockopt reversed logicBrent Cook2023-07-061-2/+2
| |
* | remove unneeded extern since we're not trying to hack this into mingw-w64Brent Cook2023-07-061-12/+0
| |
* | change socket / file descriptor checks on windowsBrent Cook2023-07-061-24/+101
|/ | | | | | | | | | | based on discussion in https://github.com/libressl/portable/issues/266 and https://bugs.python.org/issue23524 adjust the compat layer for Windows to use _get_osfhandle in combination with _set_thread_local_invalid_parameter_handler if applicable to more reliably determine if a handle is a socket, file, or closed socket. This prevents assertions when calling tls_close on an already-closed socket.
* Adjust for ui_locl.h -> ui_local.h renameTheo Buehler2022-11-271-1/+1
|
* avoid exporting a sleep() symbol from libcryptoBrent Cook2020-04-141-6/+0
| | | | | | Since it seems only MSVC lacks sleep(), and it's only used by apps, lets special-case that and make it available as a static inline function instead.
* initial support for midipixØrjan Malde2019-10-201-0/+3
|
* Use posix_win.c functions on WIN32kinichiro2019-07-281-3/+6
| | | | | | - read() returns bytes count as 1 for crlf unless binary mode isn't specified with open(). Reported by @ulfworsoe in libressl-portable#542 - err could be WSANOTINITIALISED when WSAStartup() is not called
* condense android comments for clarityBrent Cook2019-05-231-13/+6
|
* Remove info about glibcIshimoto Shinobu2019-05-221-2/+0
|
* avoid glibcIshimoto Shinobu2019-05-211-3/+1
| | | cause problems on musl systems
* Fix getprogname_linux.c for Android API < 21Simone Basso2019-05-041-0/+25
| | | | | | | This diff fixes the build of LibreSSL for Android with API < 21 where the `getprogname` system call was not part of libc. A comment in the diff itself explains in detail the issue.
* add unimpl fallback for getprognameBrent Cook2019-02-031-0/+7
|
* update autoconf for latest compat functionsBrent Cook2019-01-314-0/+48
|
* Handle malloc returning nullJohn Norrbin2019-01-041-2/+4
| | | Locks are required for multi-threading. If memory can't be allocated, exit the program with memory error. If we let the program continue, it will deadlock in the next part of the code anyway so better end it before.
* enable getpagesize for all Windows buildsBrent Cook2019-01-011-2/+2
|
* use InterlockedExchangeAdd for addBrent Cook2019-01-011-8/+6
|
* make locks self-initialize, switch to critical sectionsBrent Cook2019-01-011-12/+13
|
* include headerBrent Cook2018-11-111-0/+2
|
* added crypto_lock portable bitsBrent Cook2018-11-111-0/+53
|
* declare struct timezone outside of the function declarationBrent Cook2017-08-131-0/+1
|
* re-add getpagesize fallback, needed for AndroidBrent Cook2017-06-111-2/+8
|
* add back copyright notice from OpenBSD malloc.c from which this came.Brent Cook2017-04-281-0/+19
|
* Add freezero supportkinichiro2017-04-221-0/+13
|
* remove sysconf fallback for nowBrent Cook2017-03-161-8/+2
|
* Add support for getpagesizekinichiro2017-03-151-0/+18
|
* Fix SYSerr and BIOerr in b_win.ckinichiro2017-02-011-2/+2
|
* Copy libc compat files rather than adding into the repositorykinichiro2017-01-281-212/+0
| | | | | - remove the CP_LIBC files from repo - move tests/memmem.c to tests/compat/
* MSVSC fixesBrent Cook2017-01-161-1/+1
|
* add open(2) shim to handle O_BINARY and O_CLOEXECBrent Cook2017-01-161-0/+23
|
* handle EBADF, which is returned when a file is passedBrent Cook2017-01-151-3/+6
|
* Revert back to GetStdHandle, since it works fine with pipes.Brent Cook2015-12-111-6/+6
| | | | | Also include the formerly-missing NULL check, since this can fail in two ways.
* include stdint.h uint*_tBrent Cook2015-12-111-0/+1
|
* Replace STDIN_FILENO with _filenoAnthony Novatsis2015-12-111-3/+3
| | | | | Replace STDIN_FILENO with _fileno as STDIN_FILENO results in compile errors with Visual Studio 2015 (using CMake).
* only set the console mode if stdin is a console (not a pipe)Brent Cook2015-12-061-9/+21
| | | | This allows piping commands and running from a cygwin console.
* wrap gets on Windows, replacing '\r\n' with '\n'Brent Cook2015-12-051-0/+14
|
* check bounds before casting (long long) to time_tBrent Cook2015-10-211-0/+6
|
* Windows compatibility fixesBrent Cook2015-10-181-0/+12
| | | | | | | | | | | VS2013 has trouble with relative include paths for apps/openssl, so move certhash_win/apps_win.c back to apps/openssl. gmtime_r on mingw64 fails with negative time_t, override gmtime_s fails all of the time unit tests, override SHUT_RD/WR are defined in newer mingw64 headers, check before overriding
* make internal functions staticBrent Cook2015-10-151-4/+4
|
* use timegm from muslBrent Cook2015-10-151-60/+191
|
* include timegm fallbackBrent Cook2015-10-151-0/+71
|
* fix spelling of OPENSSL_cleanseBrent Cook2015-09-131-1/+1
|
* add win32-specific explicit_bzero implementationBrent Cook2015-08-031-0/+13
|