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)
Wed, Sep 2, 3:44 PM
Unknown Object (File)
Mon, Aug 31, 3:36 PM
Unknown Object (File)
Sat, Aug 29, 5:21 PM
Unknown Object (File)
Thu, Aug 27, 7:46 PM
Unknown Object (File)
Sat, Aug 22, 2:18 PM
Unknown Object (File)
Sat, Aug 22, 9:30 AM
Unknown Object (File)
Fri, Aug 21, 1:23 PM
Unknown Object (File)
Thu, Aug 20, 1:13 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.