Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Windows: Fix assertion pop-up up when using Debug compiled libressl. | Christian Andersen | 2024-02-04 | 1 | -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 #964 | Theo Buehler | 2023-12-12 | 1 | -1/+1 |
|\ | |||||
| * | windows: minor compat header fixes | Viktor Szakats | 2023-12-11 | 1 | -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 HTTPS | Viktor Szakats | 2023-12-11 | 1 | -2/+2 |
|/ | |||||
* | delete unused `savsig` variable | Viktor Szakats | 2023-11-03 | 1 | -3/+0 |
| | | | | | | Follow-up to dd1d96f643b01a5edbe7e0db8399f3c88f5f0c8b Fixes #925 | ||||
* | fix cross-compilation on Windows 11 Arm64 | Brent Cook | 2023-10-30 | 1 | -42/+0 |
| | | | | | signal.h is less populated in this environment, remove stub signal handlers | ||||
* | Land #886, add compat getopt implementation | Brent Cook | 2023-07-07 | 1 | -0/+528 |
|\ | |||||
| * | add compat getopt implementation, remove patches | Brent Cook | 2023-07-07 | 1 | -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 logic | Brent Cook | 2023-07-06 | 1 | -2/+2 |
| | | |||||
* | | remove unneeded extern since we're not trying to hack this into mingw-w64 | Brent Cook | 2023-07-06 | 1 | -12/+0 |
| | | |||||
* | | change socket / file descriptor checks on windows | Brent Cook | 2023-07-06 | 1 | -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 rename | Theo Buehler | 2022-11-27 | 1 | -1/+1 |
| | |||||
* | avoid exporting a sleep() symbol from libcrypto | Brent Cook | 2020-04-14 | 1 | -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 Malde | 2019-10-20 | 1 | -0/+3 |
| | |||||
* | Use posix_win.c functions on WIN32 | kinichiro | 2019-07-28 | 1 | -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 clarity | Brent Cook | 2019-05-23 | 1 | -13/+6 |
| | |||||
* | Remove info about glibc | Ishimoto Shinobu | 2019-05-22 | 1 | -2/+0 |
| | |||||
* | avoid glibc | Ishimoto Shinobu | 2019-05-21 | 1 | -3/+1 |
| | | | cause problems on musl systems | ||||
* | Fix getprogname_linux.c for Android API < 21 | Simone Basso | 2019-05-04 | 1 | -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 getprogname | Brent Cook | 2019-02-03 | 1 | -0/+7 |
| | |||||
* | update autoconf for latest compat functions | Brent Cook | 2019-01-31 | 4 | -0/+48 |
| | |||||
* | Handle malloc returning null | John Norrbin | 2019-01-04 | 1 | -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 builds | Brent Cook | 2019-01-01 | 1 | -2/+2 |
| | |||||
* | use InterlockedExchangeAdd for add | Brent Cook | 2019-01-01 | 1 | -8/+6 |
| | |||||
* | make locks self-initialize, switch to critical sections | Brent Cook | 2019-01-01 | 1 | -12/+13 |
| | |||||
* | include header | Brent Cook | 2018-11-11 | 1 | -0/+2 |
| | |||||
* | added crypto_lock portable bits | Brent Cook | 2018-11-11 | 1 | -0/+53 |
| | |||||
* | declare struct timezone outside of the function declaration | Brent Cook | 2017-08-13 | 1 | -0/+1 |
| | |||||
* | re-add getpagesize fallback, needed for Android | Brent Cook | 2017-06-11 | 1 | -2/+8 |
| | |||||
* | add back copyright notice from OpenBSD malloc.c from which this came. | Brent Cook | 2017-04-28 | 1 | -0/+19 |
| | |||||
* | Add freezero support | kinichiro | 2017-04-22 | 1 | -0/+13 |
| | |||||
* | remove sysconf fallback for now | Brent Cook | 2017-03-16 | 1 | -8/+2 |
| | |||||
* | Add support for getpagesize | kinichiro | 2017-03-15 | 1 | -0/+18 |
| | |||||
* | Fix SYSerr and BIOerr in b_win.c | kinichiro | 2017-02-01 | 1 | -2/+2 |
| | |||||
* | Copy libc compat files rather than adding into the repository | kinichiro | 2017-01-28 | 1 | -212/+0 |
| | | | | | - remove the CP_LIBC files from repo - move tests/memmem.c to tests/compat/ | ||||
* | MSVSC fixes | Brent Cook | 2017-01-16 | 1 | -1/+1 |
| | |||||
* | add open(2) shim to handle O_BINARY and O_CLOEXEC | Brent Cook | 2017-01-16 | 1 | -0/+23 |
| | |||||
* | handle EBADF, which is returned when a file is passed | Brent Cook | 2017-01-15 | 1 | -3/+6 |
| | |||||
* | Revert back to GetStdHandle, since it works fine with pipes. | Brent Cook | 2015-12-11 | 1 | -6/+6 |
| | | | | | Also include the formerly-missing NULL check, since this can fail in two ways. | ||||
* | include stdint.h uint*_t | Brent Cook | 2015-12-11 | 1 | -0/+1 |
| | |||||
* | Replace STDIN_FILENO with _fileno | Anthony Novatsis | 2015-12-11 | 1 | -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 Cook | 2015-12-06 | 1 | -9/+21 |
| | | | | This allows piping commands and running from a cygwin console. | ||||
* | wrap gets on Windows, replacing '\r\n' with '\n' | Brent Cook | 2015-12-05 | 1 | -0/+14 |
| | |||||
* | check bounds before casting (long long) to time_t | Brent Cook | 2015-10-21 | 1 | -0/+6 |
| | |||||
* | Windows compatibility fixes | Brent Cook | 2015-10-18 | 1 | -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 static | Brent Cook | 2015-10-15 | 1 | -4/+4 |
| | |||||
* | use timegm from musl | Brent Cook | 2015-10-15 | 1 | -60/+191 |
| | |||||
* | include timegm fallback | Brent Cook | 2015-10-15 | 1 | -0/+71 |
| | |||||
* | fix spelling of OPENSSL_cleanse | Brent Cook | 2015-09-13 | 1 | -1/+1 |
| | |||||
* | add win32-specific explicit_bzero implementation | Brent Cook | 2015-08-03 | 1 | -0/+13 |
| |