Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102035851
D45995.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
D45995.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
Thu, Nov 7, 7:30 PM (21 h, 50 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14519295
Default Alt Text
D45995.diff (1 KB)
Attached To
Mode
D45995: openssl: Add <sys/random.h> include for getrandom()
Attached
Detach File
Event Timeline
Log In to Comment