dhcpcd/compat
Tobias Heider cd34035851
compat: use OpenSSL RAND_priv_bytes() for entropy (#248)
* compat: use OpenSSL RAND_priv_bytes() for entropy

Use OpenSSL random number generator to seed arc4random() if available,
if it fails fall back to /dev/urandom.

* tests: link eloop-bench against LDADD lib

arc4random might depend on libcrypto so we need to link it.
2023-09-29 08:57:41 +01:00
..
crypt compat: Remove literal suffix from md5.h 2023-01-09 11:16:13 +00:00
crypt_openssl Support libcrypto for hmac and sha256 (#223) 2023-09-25 09:49:00 +01:00
_strtoi.h compat: Add a guard to _strtoi.h 2019-12-11 16:09:18 +00:00
arc4random_uniform.c compat sync (#226) 2023-07-19 13:29:48 +01:00
arc4random_uniform.h Place correct license in compat headers. 2017-03-21 17:04:52 +00:00
arc4random.c compat: use OpenSSL RAND_priv_bytes() for entropy (#248) 2023-09-29 08:57:41 +01:00
arc4random.h compat: update arc4random() to newer chacha20 based version from OpenBSD (#227) 2023-09-04 14:53:44 +01:00
bitops.h Move md5 and sha256 out to compat. 2017-03-19 20:21:18 +00:00
chacha_private.h compat: update arc4random() to newer chacha20 based version from OpenBSD (#227) 2023-09-04 14:53:44 +01:00
consttime_memequal.h Really add consttime_memequal 2019-04-19 21:47:37 +01:00
dprintf.c dprintf should append, not truncate. 2017-04-14 10:17:27 +01:00
dprintf.h dprintf should append, not truncate. 2017-04-14 10:17:27 +01:00
endian.h Move compat out of src. 2017-03-19 15:00:45 +00:00
pidfile.c compat sync (#226) 2023-07-19 13:29:48 +01:00
pidfile.h Place correct license in compat headers. 2017-03-21 17:04:52 +00:00
queue.h Move compat out of src. 2017-03-19 15:00:45 +00:00
rb.c compat sync (#226) 2023-07-19 13:29:48 +01:00
rbtree.h Solaris: Fix compile. 2019-08-30 10:34:44 +00:00
reallocarray.c Update copyrights and headers to better credit the sources. 2017-03-30 21:53:45 +01:00
reallocarray.h Update copyrights and headers to better credit the sources. 2017-03-30 21:53:45 +01:00
setproctitle.c compat: Use libbsd's setproctitle(3) 2020-10-09 20:21:52 +01:00
setproctitle.h Change copyright on setproctitle.h 2020-10-09 20:38:48 +01:00
strlcpy.c compat sync (#226) 2023-07-19 13:29:48 +01:00
strlcpy.h Add compat/strlcpy.c from OpenBSD libc to use instead of 2017-10-04 16:07:49 +01:00
strtoi.c Sync strtoi and strtou with latest upstream to allow -Wundef 2019-11-28 12:34:29 +00:00
strtoi.h Use new strtoi changes. 2017-03-22 15:27:45 +00:00
strtou.c Sync strtoi and strtou with latest upstream to allow -Wundef 2019-11-28 12:34:29 +00:00