Brent Cook
bd8fe5868f
include stdint.h uint*_t
2015-12-11 09:21:43 -06:00
Anthony Novatsis
5727d3274e
Replace STDIN_FILENO with _fileno
...
Replace STDIN_FILENO with _fileno as STDIN_FILENO results in compile
errors with Visual Studio 2015 (using CMake).
2015-12-11 16:32:00 +11:00
Brent Cook
905e2a3b80
refresh nc(1) support
2015-12-06 23:32:18 -06:00
Brent Cook
afcc027da7
only set the console mode if stdin is a console (not a pipe)
...
This allows piping commands and running from a cygwin console.
2015-12-06 16:49:01 -06:00
Brent Cook
75ef5bb160
wrap gets on Windows, replacing '\r\n' with '\n'
2015-12-05 13:58:37 -06:00
Brent Cook
9574b6c8ec
do not link libcompatnoopt if it is unneeded/built
...
from andy-js on github, fix #158
2015-11-22 17:31:51 -06:00
Brent Cook
9be9055791
remove a_gen/utctm.c for cmake
2015-10-21 22:19:09 -05:00
Brent Cook
3f79a49dd2
check bounds before casting (long long) to time_t
2015-10-21 22:17:13 -05:00
Brent Cook
959241fe88
remove a_gen/utctm.c
2015-10-21 21:39:59 -05:00
Brent Cook
0197a58969
Windows compatibility fixes
...
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
2015-10-18 09:28:10 -05:00
Brent Cook
a45e38e962
disable some tests with 32-bit time_t systems
...
Also disable use of _mkgmtime, it does not produce correct results.
2015-10-17 22:57:59 -05:00
Brent Cook
dadeeb0a2e
check for timegm in cmake builds
2015-10-15 14:32:16 -05:00
Brent Cook
cac089b5d6
make internal functions static
2015-10-15 14:32:02 -05:00
Brent Cook
c02436645d
use timegm from musl
2015-10-15 14:26:24 -05:00
Brent Cook
4298ac9305
include timegm fallback
2015-10-15 09:16:38 -05:00
Jeremy Huddleston Sequoia
448645d479
Use bundled headers instead of installed headers when building
...
The build system incorrectly set include directives in AM_CFLAGS which
causes them to be placed after the configured CPPFLAGS. Thus, if
a user or packaging system sets CPPFLAGS to a location that has
libressl or openssl headers installed, they will be used instead
of the bundled versions. This corrects that issue by setting up
the variables correctly.
https://github.com/libressl-portable/portable/issues/150
Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
2015-10-14 16:33:39 -05:00
Brent Cook
047926e06f
updates for ASN.1 time handling
2015-10-06 06:21:17 -05:00
Brent Cook
4ce5342e86
remove SHA-0 from cmake builds
2015-09-17 05:39:55 -05:00
Brent Cook
f05cb999a6
final bit of SHA-0 removal
2015-09-17 05:30:24 -05:00
Brent Cook
9c55d0b851
remove SHA-0
2015-09-17 05:15:23 -05:00
Brent Cook
2cb6d19e10
remove ecdh/ech_ossl.c
2015-09-13 19:08:12 -05:00
Brent Cook
eeb286af5a
fix spelling of OPENSSL_cleanse
2015-09-13 09:31:41 -05:00
Brent Cook
4bb70680a0
ech_ossl.h is gone
2015-09-13 09:03:04 -05:00
Brent Cook
adfb2bf722
Do not build lib-objects targets if we are just building static libs.
...
This confuses some cmake targets.
2015-09-09 06:03:52 -05:00
Brent Cook
9903a26661
distribute strcasecmp.c
2015-09-07 01:28:29 -05:00
Brent Cook
ca56c332e3
disable shared CMake builds for OS X / Windows for now
2015-09-07 01:05:33 -05:00
Jeff Davey
5461dea7f1
Add install targets and shared libraries to CMake
2015-08-18 13:20:19 -06:00
Brent Cook
13d910c11e
disable explicit_bzero optimizations with CMake builds
2015-08-03 07:37:24 -05:00
Brent Cook
c66d80a438
add win32-specific explicit_bzero implementation
2015-08-03 06:56:59 -05:00
Brent Cook
6527c32039
initial Linux cmake suppport
...
tested on Ubuntu 14.04
2015-08-01 05:33:19 -05:00
Brent Cook
1828bcb9bf
don't build eng_rsax.c anymore
2015-07-21 20:00:42 -05:00
Brent Cook
9d5eb631e3
move sleep shim to posix_win.c
2015-07-21 12:52:29 -06:00
Brent Cook
63161e85dc
add initial build for arc4random/getentropy fallbacks
2015-07-21 12:52:14 -06:00
Brent Cook
5d8a1cf715
add initial CMake and Visual Studio build support
...
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.
2015-07-21 12:08:18 -05:00
Brent Cook
792a5acb67
eng_rsax is gone
2015-07-20 01:08:01 -05:00
Brent Cook
ddeb740426
win32 openssl CLI: preserve original echo state
...
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@
2015-07-16 10:27:57 -05:00
Brent Cook
db974c34e9
fixup how OPENSSLDIR is derived and expanded
...
As per
http://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Installation-Directory-Variables.html
we should not try to expand variables like sysconfdir in the
configure script, but rather derive the correct value in the Makefiles
instead. This fixes missing expansions as the preprocessor define.
2015-07-15 20:02:38 -05:00
Brent Cook
4cffda193b
build libcrypto with -DLIBRESSL_INTERNAL
...
Since libcrypto defines its own CPPFLAGS, we need to set this for
libcrypto specifically.
2015-07-15 19:17:27 -05:00
Brent Cook
545454277a
add check for inet_pton, nudge minimum win32 compat to 0x0501
2015-07-02 00:19:53 -05:00
Brent Cook
b9f1b83a79
update for mdc2 removal
2015-06-20 10:40:04 -05:00
Brent Cook
bc7b93470f
add a missing header and fix typo in windows posix layer
2015-06-13 21:43:55 -05:00
Brent Cook
b4a6a61513
refactor win32 shims into posix_win.c
...
this also adds a rename shim that allows overwrites
2015-06-05 04:50:18 -05:00
Brent Cook
8dedbb4b2b
add Makefile.am.arc4random
2015-05-23 19:27:57 -05:00
Brent Cook
769d58e494
further refactoring, working libtls-standalone
2015-05-23 19:27:57 -05:00
Brent Cook
3096ab0e45
remove issetuigid wrappers, now that all getenv calls are gone.
...
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.......
2015-04-14 07:55:23 -05:00
Brent Cook
fe3f7fc636
Add experimental AIX support.
...
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.
2015-03-31 09:25:21 -05:00
Brent Cook
ad2a38ab4a
rework CFLAGS/CPPFLAGS settings during configuration
...
Move define adjustments to CPPFLAGS.
Adjust user CFLAGS directly, do not override during configuration.
USER_CFLAGS is not necessary to build libcompat_noopt correctly.
2015-03-22 07:43:55 -05:00
Brent Cook
a859b93ff5
disable system issetugid on OS X since it is not fork-safe
...
Noticed while testing similar code for AIX.
ok beck@
2015-02-17 18:15:17 -06:00
Brent Cook
adc416e922
remove getuid/getgid fallbacks from hp-ux issetugid emulation
...
Fail closed if we cannot obtain the process flags. Noticed while looking
at a similar function for AIX.
2015-02-16 22:30:27 -06:00
Brent Cook
9de5b8a963
c_all* have merged into c_all.c
2015-02-08 19:40:03 -06:00