Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144396924
D46002.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D46002.diff
View Options
diff --git a/crypto/openssl/providers/implementations/rands/seeding/rand_unix.c b/crypto/openssl/providers/implementations/rands/seeding/rand_unix.c
--- 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 @@
# 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.
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Feb 9, 5:38 AM (10 h, 37 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28509290
Default Alt Text
D46002.diff (1 KB)
Attached To
Mode
D46002: openssl: Add <sys/random.h> include for getrandom()
Attached
Detach File
Event Timeline
Log In to Comment