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)
Dec 5 2024, 5:37 PM
Unknown Object (File)
Dec 5 2024, 12:24 AM
Unknown Object (File)
Nov 29 2024, 12:32 PM
Unknown Object (File)
Nov 27 2024, 7:46 AM
Unknown Object (File)
Nov 27 2024, 5:18 AM
Unknown Object (File)
Nov 13 2024, 8:45 AM
Unknown Object (File)
Nov 6 2024, 11:41 PM
Unknown Object (File)
Oct 18 2024, 8:54 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.