aboutsummaryrefslogtreecommitdiffstats
path: root/openbsd-compat
diff options
context:
space:
mode:
authorGilles Chehade <gilles@poolp.org>2019-10-31 19:14:02 +0100
committerGitHub <noreply@github.com>2019-10-31 19:14:02 +0100
commitb3b1a01719bb7c23c31eced0f8e8d4f7e35364b1 (patch)
tree5e04cbdb83ab1f4d59d264e7bfe57e7aa4a67d0e /openbsd-compat
parentMerge pull request #960 from ngortheone/doc (diff)
downloadOpenSMTPD-b3b1a01719bb7c23c31eced0f8e8d4f7e35364b1.tar.xz
OpenSMTPD-b3b1a01719bb7c23c31eced0f8e8d4f7e35364b1.zip
Update arc4random.c
do not provide arc4random_stir() if we detect arc4random() OR libressl
Diffstat (limited to 'openbsd-compat')
-rw-r--r--openbsd-compat/arc4random.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/openbsd-compat/arc4random.c b/openbsd-compat/arc4random.c
index 1598ebeb..286f4a85 100644
--- a/openbsd-compat/arc4random.c
+++ b/openbsd-compat/arc4random.c
@@ -163,6 +163,7 @@ _rs_random_u32(uint32_t *val)
return;
}
+#if !defined(HAVE_ARC4RANDOM) && !defined(LIBRESSL_VERSION_NUMBER)
void
arc4random_stir(void)
{
@@ -170,6 +171,7 @@ arc4random_stir(void)
_rs_stir();
_ARC4_UNLOCK();
}
+#endif
void
arc4random_addrandom(u_char *dat, int datlen)