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)
Fri, Oct 18, 8:54 AM
Unknown Object (File)
Wed, Oct 16, 3:16 AM
Unknown Object (File)
Wed, Oct 16, 3:11 AM
Unknown Object (File)
Sep 27 2024, 6:46 PM
Unknown Object (File)
Sep 26 2024, 7:55 PM
Unknown Object (File)
Sep 22 2024, 7:57 AM
Unknown Object (File)
Sep 21 2024, 9:37 PM
Unknown Object (File)
Sep 17 2024, 9:25 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.