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
Unknown Object (File)
Sun, Nov 9, 5:32 AM
Unknown Object (File)
Wed, Oct 29, 8:09 AM
Unknown Object (File)
Wed, Oct 29, 8:09 AM
Unknown Object (File)
Wed, Oct 29, 7:54 AM
Unknown Object (File)
Mon, Oct 27, 4:30 PM
Unknown Object (File)
Mon, Oct 27, 4:18 PM
Unknown Object (File)
Sat, Oct 25, 6:00 AM
Unknown Object (File)
Oct 15 2025, 12:44 AM
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.