Commit Graph

16 Commits

Author SHA1 Message Date
Brent Cook
96bf8be098 update and mask unit tests when running on win32
Update pq_test to ignore changes in whitespace.
Update for new testssl params, specify absolute paths to test binaries.
Fork-based tests do not make sense on Windows.
Disable building biotest, since it is too specific to OpenBSD's behavior
to be useful on other platforms.
2014-12-03 17:02:29 -06:00
Brent Cook
2103690cbf improve readability of generated Makefile.am files 2014-11-23 08:33:56 -06:00
Brent Cook
0aeb93b9fc override native arc4random_buf on FreeBSD
The FreeBSD-native arc4random_buf implementation falls back to weak
sources of entropy if the sysctl fails. Remove these dangerous fallbacks
by overriding locally.

Unfortunately, pthread_atfork() is broken on FreeBSD (at least 9 and 10)
if a program does not link to -lthr. Callbacks registered with
pthread_atfork() simply fail silently. So, it is not always possible to
detect a PID wraparound. I wish we could do better.

This improves arc4random_buf's safety compared to the native FreeBSD
implementation. Tested on FreeBSD 9 and 10.

ok beck@ deraadt@
2014-11-03 01:19:36 -06:00
Brent Cook
a4cc953911 Improve and simplify function and header detection logic.
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
2014-10-30 19:15:11 -05:00
Brent Cook
72c1e56b38 enable -lcrypto -lssl with all test programs directly.
This removes the need to specify each one individually.

ok doug@
2014-10-30 10:55:30 -05:00
Brent Cook
eb26e56ba8 undef LIBRESSL_INTERNAL for the pidwrap test. 2014-10-22 13:06:36 -05:00
Brent Cook
e48e4f0e69 prefer - over /dev/stdin for cmp test 2014-07-28 07:26:42 -05:00
Brent Cook
1b62d5e416 remove bash-isms from test scripts 2014-07-28 07:26:27 -05:00
Brent Cook
55d07e70dc clarify license and origin for pidwraptest
The original author clarified the license, so we are fine to ship with
the PID wraparound test. Run it by default if libressl is using the
native arc4random supplied from the OS.

ok deraadt@
2014-07-23 20:10:17 -05:00
Brent Cook
33bc05ca9c better handle disabled tests and exclude files
ok beck@ guenther@
2014-07-21 20:27:14 -05:00
Brent Cook
23dc97f8c2 rename local tests to end in test.c
ok beck@ guenther@
2014-07-21 19:54:21 -05:00
Brent Cook
0bc4bdde5f move fork_rand.sh so it does not get run every time
the test takes many minutes to run on an OS with a slow fork() call

ok beck@
2014-07-15 17:22:39 -05:00
Brent Cook
d3746d3a6e indicate failure to the test harness
ok beck@
2014-07-15 17:20:09 -05:00
Brent Cook
477f1f0187 added fork_rand test to check for PID wraparound
ok beck@
2014-07-15 16:43:00 -05:00
Brent Cook
2ce79c599b fix out of tree builds for ssl test
ssl tests need to find the openssl binary relative to the build,
not the source, directory
2014-07-10 17:26:22 -05:00
Brent Cook
2b6dbc39ef initial top-level import of subdirectories 2014-07-10 06:22:54 -05:00