aboutsummaryrefslogtreecommitdiff
path: root/include (follow)
Commit message (Collapse)AuthorAgeFilesLines
* modify cmake to build nckinichiro2016-04-091-1/+1
| | | | | | | | | | | - modify structure of CMakeLists.txt under apps/ * move apps/CMakeLists.txt to apps/openssl/ since this is for openssl build * create new apps/nc/CMakeLists.txt for nc build * modify apps/CMakeLists.txt just add_subdirectory() - add checking and compile of arc4random_uniform() - add installing man files, openssl.1 and nc.1
* modify include/compat/netinet/ip.hkinichiro2016-03-131-0/+4
| | | | - add including <netinet/in_systm.h> for n_long on HP-UX
* add solaris include for getentropy(2)Brent Cook2016-01-181-0/+7
|
* replace err.h macros with inline functionsBrent Cook2016-01-031-8/+54
| | | | Passing NULL for the format is just easier with a function.
* include strings.h in string.h on AIX as wellBrent Cook2016-01-031-2/+3
|
* refresh nc(1) supportBrent Cook2015-12-061-0/+1
|
* wrap gets on Windows, replacing '\r\n' with '\n'Brent Cook2015-12-051-0/+2
|
* no special workaround needed for MSVC2015Brent Cook2015-12-021-4/+0
|
* Windows compatibility fixesBrent Cook2015-10-182-4/+13
| | | | | | | | | | | 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
* disable some tests with 32-bit time_t systemsBrent Cook2015-10-171-4/+0
| | | | Also disable use of _mkgmtime, it does not produce correct results.
* unconditionally disable pledge for nowBrent Cook2015-10-151-2/+0
| | | | suggested by deraadt@ since there is still more coming
* include timegm fallbackBrent Cook2015-10-152-6/+5
|
* add limits.h shim for defining PATH_MAX on HP-UXBrent Cook2015-10-142-0/+27
|
* check for pledge(2)Brent Cook2015-10-121-2/+2
|
* resolve tame to 0Brent Cook2015-10-071-1/+1
|
* add tame(2) checkBrent Cook2015-10-071-0/+4
|
* rename _mkgmtime as timegm on win32Brent Cook2015-10-071-0/+4
|
* add b64_ntop checking and fallback for nc(1)Brent Cook2015-10-013-4/+25
|
* add include/compat/readpassphrase.h to Makefile.amkinichiro2015-09-171-0/+1
| | | | fix for https://github.com/libressl-portable/portable/issues/138
* fixup windows and older linux buildsBrent Cook2015-09-132-0/+11
|
* allow nc to build on linux and os xBrent Cook2015-09-134-11/+92
|
* remove support for old MSVC versions, KNFBrent Cook2015-09-091-551/+405
|
* updates for MSVC 2015's degenerate headersBrent Cook2015-09-097-3/+38
| | | | | | Note that 'perror' moves from stdio.h to stdlib.h, and 'rename' moves from stdio.h to io.h. Also, standard C includes move from the compiler to the Windows SDK, which changes the base path for the include files.
* distribute include and man CMakefilesBrent Cook2015-09-071-0/+2
|
* Add install targets and shared libraries to CMakeJeff Davey2015-08-181-0/+5
|
* correct fallback err.h macro behaviorBrent Cook2015-07-221-4/+4
|
* move sleep shim to posix_win.cBrent Cook2015-07-211-5/+1
|
* tighten up compat include paths, fix glibc compatibilityBrent Cook2015-07-214-16/+10
|
* add initial CMake and Visual Studio build supportBrent Cook2015-07-2131-130/+1058
| | | | | | | | 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.
* implement compatibility shim for __warn_referencesBrent Cook2015-07-172-0/+32
| | | | This will allow us to warn about deprecated function references at link-time.
* add compatible version of arpa/nameser.h for WindowsBrent Cook2015-07-021-0/+23
|
* add check for inet_pton, nudge minimum win32 compat to 0x0501Brent Cook2015-07-022-0/+10
|
* refactor win32 shims into posix_win.cBrent Cook2015-06-052-150/+18
| | | | this also adds a rename shim that allows overwrites
* all file IO should be binary, auto-append the flagBrent Cook2015-06-051-0/+20
|
* remove issetuigid wrappers, now that all getenv calls are gone.Brent Cook2015-04-141-4/+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.......
* enable libtls by defaultBrent Cook2015-03-191-2/+0
| | | | | | | | The API/ABI for the LibreSSL 2.1.x series is now fixed, so we can safely enable libtls it by default. This is useful for new OpenNTPD and OpenSMTPD releases as well. ok deraadt@ beck@ sthen@
* add strsep fallback for libtlsBrent Cook2015-02-141-0/+4
|
* include 'struct iovec' for WindowsBrent Cook2015-01-312-0/+18
| | | | this is used for in-memory cert loading
* add support for building libtlsBrent Cook2014-12-061-0/+6
| | | | | | | | Use './configure --enable-libtls' to build the library and install the associated manpages. Note that the API and ABI of this library may change still, though feedback is welcome. ok deraadt@ jsing@ tedu@
* monkey patch more POSIX-like behavior out of winsock 2Brent Cook2014-12-033-8/+176
| | | | | | | | | | | | | | | | | | | | | | Windows sockets functions look on the outside like they behave similarly to POSIX functions, but there are many subtle and glaring differences, including errors reported via WSAGetLastError, read, write, and close do not work on sockets, setsockopt takes a (char *) rather than (void *), etc. This header implements wrappers that coerce more POSIX-like behavior from these functions, making portable code easier to develop. BENEFITS: One does not necessarily need to sprinkle #ifdefs around code to handle the Windows and non-Windows behavior when porting code. CAVEATS: There may be performance implications with the 'mother-may-I' approach to determining if a descriptor is a socket or a file. The errno mappings are not 100% what one might expect compared to POSIX since there were not always good 1:1 equivalents from the WSA errors.
* add minimal winsock->BSD networking header shimsBrent Cook2014-12-0320-2/+205
| | | | also add license header to existing shims
* add minimal poll(2) implementation for WindowsBrent Cook2014-12-031-0/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This provides sufficient functionality to run openssl(1) from a Windows console. This is based on the original select-based version from from songdongsheng@live.cn. Changes: * use nfds_t directly for iterating the fds. * add WSAGetLastError -> errno mappings * handle POLLHUP and the OOB data cases for revents * handle sparse arrays of fds correctly * KNF style updates * teach poll how to handle file handles as well as sockets This handles the socket/non-socket issue by alternating a loop between WaitForMultipleObjects for non-sockets and and select for sockets. One would think this would be terrible for performance, but as of this writing, poll consumes about 6% of the time doing a bulk transfer between a Linux box and 'openssl.exe s_server'. I tried to implement this all in terms of WaitForMultipleObjects with a select 'poll' at the end to get extra specific socket status. However, the cost of setting up an event handle for each socket, setting the WSAEventSelect attributes, and cleaning them up reliably was pretty high. Since the event handle associated with a socket is also global, creating a new one cancels the previous one or can be disabled externally. In addition, the 'FD_WRITE' status of a socket event handle does not behave in an expected fashion, being triggered by an edge on a write event rather than being level triggered. Another fun horror story is how stdin in windows might be a console, it might be a pipe, it might be something else. If these all worked in the same way, it would be great. But, since a console-stdin can also signal on a mouse or window event, it means we can easily get stuck in a blocking read (you can't make stdin non-blocking) if the non-character events are not filtered out. So, poll does that too. See here for various additional horror stories: http://www.postgresql.org/message-id/4351.1336927207@sss.pgh.pa.us
* Use _WIN32 instead of __WIN32.宋冬生2014-11-181-1/+1
| | | | ok bcook@
* Improve and simplify function and header detection logic.Brent Cook2014-10-304-14/+15
| | | | | | | | | Simplify autoconf checks by using AC_CHECK_FUNCS/HEADERS. Clarify some ambiguous dependencies around strnlen/strndup. Unconditionally enable pidwraptest for all arc4random implementations. Remove HAVE_VASPRINTF conditional, since asprintf requires vasprintf. ok @doug
* update string.h for include strings.h for HPUX environmentkinichiro2014-10-221-2/+2
|
* update stdio.h for including stdarg.hinoguchi2014-08-121-0/+1
| | | | | | | | | | | | | | it seems that including stdarg.h is needed for defining va_list environment is hpux 11.31(ia64) with gcc 4.7.1. without stdarg.h, I got compilation error like this. "error: 'va_list' undeclared (first use in this function)" I checked with gcc -E, then I noticed that __va_list is defined but va_list is not. "typedef __gnuc_va_list __va_list;" with including stdarg.h, va_list is defined. "typedef __gnuc_va_list va_list;"
* conditionally build strnlen if needed.Brent Cook2014-08-021-0/+2
| | | | | | it is only used by strndup prodded by Sortie@
* define MAP_ANON for systems with MAP_ANONYMOUSBrent Cook2014-07-301-3/+3
| | | | switch the sense of this check
* merge endian definitions between AIX/HP-UX/SolarisBrent Cook2014-07-301-7/+1
|
* update include/machine/endian.h for hpux portability.inoguchi2014-07-301-0/+3
| | | | ok bcook@