Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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 |
| | |||||
* | move sleep shim to posix_win.c | Brent Cook | 2015-07-21 | 1 | -0/+7 |
| | |||||
* | add initial CMake and Visual Studio build support | Brent Cook | 2015-07-21 | 1 | -0/+24 |
| | | | | | | | | This moves the compatibility include files from include to include/compat so we can use the awful MS C compiler <../include/> trick to emulate the GNU #include_next extension. This also removes a few old compat files we do not need anymore. | ||||
* | win32 openssl CLI: preserve original echo state | Brent Cook | 2015-07-16 | 1 | -9/+9 |
| | | | | | | | Mirror the patch to ui_openssl.c, also fix the broken conditional that made it not actually turn off echo in the first place. ok guenther@ | ||||
* | add check for inet_pton, nudge minimum win32 compat to 0x0501 | Brent Cook | 2015-07-02 | 1 | -0/+212 |
| | |||||
* | add a missing header and fix typo in windows posix layer | Brent Cook | 2015-06-13 | 1 | -1/+2 |
| | |||||
* | refactor win32 shims into posix_win.c | Brent Cook | 2015-06-05 | 1 | -0/+167 |
| | | | | this also adds a rename shim that allows overwrites | ||||
* | remove issetuigid wrappers, now that all getenv calls are gone. | Brent Cook | 2015-04-14 | 5 | -213/+0 |
| | | | | | | | | | | | From deraadt@ upstream: Remove all getenv() calls, especially those wrapped by issetugid(). getenv()'s wrapped by issetugid() are safe, but issetugid() is ... difficult to impliment on many operating systems. By accident, a grand experiment was run over the last year, where issetugid() returned 1 (the safe value) on a few operating systems. Noone noticed & complained that certain environment variables were not working....... | ||||
* | Add experimental AIX support. | Brent Cook | 2015-03-31 | 2 | -1/+111 |
| | | | | | This includes a WIP failsafe issetugid for now, while research continues on the proper way to do this in a race-free fashion in AIX. | ||||
* | disable system issetugid on OS X since it is not fork-safe | Brent Cook | 2015-02-17 | 1 | -0/+16 |
| | | | | | Noticed while testing similar code for AIX. ok beck@ | ||||
* | remove getuid/getgid fallbacks from hp-ux issetugid emulation | Brent Cook | 2015-02-16 | 1 | -15/+6 |
| | | | | | Fail closed if we cannot obtain the process flags. Noticed while looking at a similar function for AIX. | ||||
* | add NetBSD shims for arc4random | Brent Cook | 2015-01-21 | 1 | -0/+3 |
| | | | | | | The current NetBSD release, 6.1.5, fails to reseed arc4random fork. Work around it by providing arc4random/getentropy shims. Revisit when NetBSD 7 is available. | ||||
* | Add support for HP-UX | kinichiro | 2015-01-06 | 2 | -0/+29 |
| | | | | | | | | | | tested on: HP-UX 11.31 ia64, gcc 4.7.1(HP AllianceOne version) gcc 4.2.3(http://hpux.connect.org.uk) HP C/aC++ HP-UX defaults to use LP32 and it treats long as 32 bit (= 4 bytes). This build forces LP64 for treating long as 64 bit. |