aboutsummaryrefslogtreecommitdiff
path: root/crypto/compat/posix_win.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Windows: Fix assertion pop-up up when using Debug compiled libressl.Christian Andersen2024-03-031-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).
* windows: minor compat header fixesViktor Szakats2024-03-031-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
* 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.
* 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.
* 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
* update autoconf for latest compat functionsBrent Cook2019-01-311-0/+7
|
* declare struct timezone outside of the function declarationBrent Cook2017-08-131-0/+1
|
* 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
|
* include stdint.h uint*_tBrent Cook2015-12-111-0/+1
|
* wrap gets on Windows, replacing '\r\n' with '\n'Brent Cook2015-12-051-0/+14
|
* 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.
* 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