aboutsummaryrefslogtreecommitdiffstats
path: root/src/build-data/os/openbsd.txt
diff options
context:
space:
mode:
authorAlexander Bluhm <[email protected]>2017-03-30 17:12:15 +0200
committerAlexander Bluhm <[email protected]>2017-03-30 17:33:26 +0200
commitda2e1a873b732f9a0de2821c526e60de13cf4e9d (patch)
tree60c9527878d4f9e003a36de380f947942aa0fb49 /src/build-data/os/openbsd.txt
parentd218baa7722f6e8e216a9127cbd577e305d4a490 (diff)
Use arc4random(3) as system rng on OpenBSD.
OpenBSD provides the arc4random(3) function in libc for user land programs that need good random data. Use this to implement the Botan system random number generator. It has the advantage over /dev/urandom that it works without file descriptors and in chroot(2) environment. Internally libc is currently using a ChaCha20 cipher as PRNG and getentropy(2) to reseed itself automatically.
Diffstat (limited to 'src/build-data/os/openbsd.txt')
-rw-r--r--src/build-data/os/openbsd.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/build-data/os/openbsd.txt b/src/build-data/os/openbsd.txt
index 89d291ddc..632879381 100644
--- a/src/build-data/os/openbsd.txt
+++ b/src/build-data/os/openbsd.txt
@@ -5,6 +5,7 @@ soname_pattern_abi "libbotan-{version_major}.so.{abi_rev}"
soname_pattern_patch "libbotan-{version_major}.so.{abi_rev}.{version_minor}"
<target_features>
+arc4random
clock_gettime
gettimeofday
posix_mlock