Page MenuHomeFreeBSD

openssl: Add <sys/random.h> include for getrandom()
AbandonedPublic

Authored by jhb on Jul 17 2024, 7:14 PM.
Tags
None
Referenced Files
F139059031: D46002.diff
Sun, Dec 7, 5:14 AM
Unknown Object (File)
Sat, Nov 29, 10:11 PM
Unknown Object (File)
Sun, Nov 9, 5:32 AM
Unknown Object (File)
Oct 29 2025, 8:09 AM
Unknown Object (File)
Oct 29 2025, 8:09 AM
Unknown Object (File)
Oct 29 2025, 7:54 AM
Unknown Object (File)
Oct 27 2025, 4:30 PM
Unknown Object (File)
Oct 27 2025, 4:18 PM
Subscribers
None

Details

Reviewers
imp
emaste
rlibby
Summary

GCC 14 (but not earlier versions) warns about a missing prototype
for getrandom(). Include <sys/random.h> explicitly to bring in the
prototype rather than depending on a nested include. While here,
stop defining sysctl_random() since it is no longer used.

Fixes: 838b6caababb openssl: use getrandom(2) instead of probing for getentropy(2)

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 58684
Build 55572: arc lint + arc unit

Event Timeline

jhb requested review of this revision.Jul 17 2024, 7:14 PM
jhb created this revision.