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)
Thu, Oct 9, 12:17 PM
Unknown Object (File)
Fri, Oct 3, 12:16 AM
Unknown Object (File)
Wed, Oct 1, 6:57 AM
Unknown Object (File)
Tue, Sep 30, 8:14 AM
Unknown Object (File)
Sep 14 2025, 4:19 PM
Unknown Object (File)
Sep 13 2025, 12:28 PM
Unknown Object (File)
Sep 12 2025, 3:28 AM
Unknown Object (File)
Sep 8 2025, 11: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.