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)
Sun, Apr 19, 3:35 PM
Unknown Object (File)
Fri, Apr 17, 11:05 AM
Unknown Object (File)
Thu, Apr 16, 1:47 PM
Unknown Object (File)
Wed, Apr 15, 12:40 PM
Unknown Object (File)
Wed, Apr 15, 12:09 AM
Unknown Object (File)
Wed, Apr 15, 12:03 AM
Unknown Object (File)
Mon, Apr 13, 1:07 PM
Unknown Object (File)
Sun, Apr 12, 10:21 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.