From 55d07e70dcb7f689b161c56b2d6b5eeefbf127a6 Mon Sep 17 00:00:00 2001 From: Brent Cook Date: Wed, 23 Jul 2014 19:18:45 -0500 Subject: [PATCH] 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@ --- tests/Makefile.am.tpl | 4 ++++ tests/pidwraptest.c | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/Makefile.am.tpl b/tests/Makefile.am.tpl index 0b9ae4c..06d48c1 100644 --- a/tests/Makefile.am.tpl +++ b/tests/Makefile.am.tpl @@ -6,3 +6,7 @@ AM_CPPFLAGS += -I $(top_srcdir)/crypto/asn1 TESTS = check_PROGRAMS = EXTRA_DIST = + +if !NO_ARC4RANDOM_BUF +TESTS += pidwraptest.sh +endif diff --git a/tests/pidwraptest.c b/tests/pidwraptest.c index 75f2cc2..7eb2a0c 100644 --- a/tests/pidwraptest.c +++ b/tests/pidwraptest.c @@ -1,6 +1,9 @@ /* - * Checks if LibreSSL's PRNG is fork-safe on Linux. + * Checks if LibreSSL's PRNG is fork-safe. * From https://www.agwa.name/blog/post/libressls_prng_is_unsafe_on_linux + * This code is in the public domain. + * + * Original source: https://gist.github.com/AGWA/eb84e55ca25a7da1deb0 */ #include