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)
Oct 2 2024, 6:58 AM
Unknown Object (File)
Oct 1 2024, 10:37 AM
Unknown Object (File)
Sep 23 2024, 7:15 AM
Unknown Object (File)
Sep 23 2024, 6:18 AM
Unknown Object (File)
Sep 23 2024, 4:29 AM
Unknown Object (File)
Sep 16 2024, 7:36 PM
Unknown Object (File)
Sep 9 2024, 3:36 AM
Unknown Object (File)
Sep 8 2024, 4:51 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.