Page MenuHomeFreeBSD

openssl: declare getrandom(2) before use
AbandonedPublic

Authored by brooks on Jul 26 2024, 4:31 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Mar 27, 11:37 PM
Unknown Object (File)
Mon, Mar 23, 7:44 PM
Unknown Object (File)
Mon, Mar 23, 12:03 AM
Unknown Object (File)
Sun, Mar 22, 9:07 PM
Unknown Object (File)
Sun, Mar 22, 3:40 AM
Unknown Object (File)
Sat, Mar 21, 7:37 PM
Unknown Object (File)
Sun, Mar 15, 4:14 AM
Unknown Object (File)
Mon, Mar 9, 4:29 PM
Subscribers

Details

Reviewers
kevans
imp
Summary

Remove partial support for entropy by sysctl and include sys/random.h.

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

Diff Detail

Repository
rG FreeBSD src repository
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 58864
Build 55751: arc lint + arc unit

Event Timeline

Without this GitHub CI fails with an error that getrandom is undeclared. I have no idea why that fails and other builds are fine.

I see the warning in my builds, but it keeps going...

This revision is now accepted and ready to land.Jul 26 2024, 5:34 PM
kevans added a subscriber: bcran.

jhb has a similar patch here https://reviews.freebsd.org/D45995 and I had a similar fix upstream https://github.com/openssl/openssl/pull/24903/files but I've failed to get @bcran (or anyone in upstream OpenSSL) to weigh in on an appropriate solution for their part, so I guess just do it and I'll reconcile the differences later.

After review, I think D45995 is more correct so abandoning this one.