aboutsummaryrefslogtreecommitdiff
path: root/crypto/compat (follow)
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* move sleep shim to posix_win.cBrent Cook2015-07-211-0/+7
|
* add initial CMake and Visual Studio build supportBrent Cook2015-07-211-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 stateBrent Cook2015-07-161-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 0x0501Brent Cook2015-07-021-0/+212
|
* add a missing header and fix typo in windows posix layerBrent Cook2015-06-131-1/+2
|
* refactor win32 shims into posix_win.cBrent Cook2015-06-051-0/+167
| | | | this also adds a rename shim that allows overwrites
* remove issetuigid wrappers, now that all getenv calls are gone.Brent Cook2015-04-145-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 Cook2015-03-312-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-safeBrent Cook2015-02-171-0/+16
| | | | | Noticed while testing similar code for AIX. ok beck@
* remove getuid/getgid fallbacks from hp-ux issetugid emulationBrent Cook2015-02-161-15/+6
| | | | | Fail closed if we cannot obtain the process flags. Noticed while looking at a similar function for AIX.
* add NetBSD shims for arc4randomBrent Cook2015-01-211-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-UXkinichiro2015-01-062-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.