aboutsummaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2024-07-29 20:38:49 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2024-07-29 20:38:49 +0000
commit0244e0a177a68fc8ff7e8a58fa7a9553956232ec (patch)
treee1df5491c0ca3bc497b90f43909ba94f5284bdb6 /crypto
parentd573295659550cf4bfbf3aaaf97d050fe7416d77 (diff)
Diffstat (limited to 'crypto')
-rw-r--r--crypto/openssl/providers/implementations/rands/seeding/rand_unix.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/crypto/openssl/providers/implementations/rands/seeding/rand_unix.c b/crypto/openssl/providers/implementations/rands/seeding/rand_unix.c
index eadacedbe40c..f8e73a02daf4 100644
--- a/crypto/openssl/providers/implementations/rands/seeding/rand_unix.c
+++ b/crypto/openssl/providers/implementations/rands/seeding/rand_unix.c
@@ -28,7 +28,7 @@
# include <sys/utsname.h>
# endif
#endif
-#if (defined(__FreeBSD__) || defined(__NetBSD__)) && !defined(OPENSSL_SYS_UEFI)
+#if defined(__NetBSD__)
# include <sys/types.h>
# include <sys/sysctl.h>
# include <sys/param.h>
@@ -36,7 +36,8 @@
#if defined(__OpenBSD__)
# include <sys/param.h>
#endif
-#if defined(__DragonFly__)
+#if (defined(__DragonFly__) || defined(__FreeBSD__)) \
+ && !defined(OPENSSL_SYS_UEFI)
# include <sys/param.h>
# include <sys/random.h>
#endif
@@ -212,7 +213,7 @@ void ossl_rand_pool_keep_random_devices_open(int keep)
# error "librandom not (yet) supported"
# endif
-# if (defined(__FreeBSD__) || defined(__NetBSD__)) && defined(KERN_ARND)
+# if defined(__NetBSD__) && defined(KERN_ARND)
/*
* sysctl_random(): Use sysctl() to read a random number from the kernel
* Returns the number of bytes returned in buf on success, -1 on failure.