]> git.ipfire.org Git - thirdparty/openssh-portable.git/commit
Rename our getentropy to prevent possible loops.
authorDarren Tucker <dtucker@dtucker.net>
Wed, 10 Aug 2022 07:25:24 +0000 (17:25 +1000)
committerDarren Tucker <dtucker@dtucker.net>
Wed, 10 Aug 2022 07:36:44 +0000 (17:36 +1000)
commit7e2f51940ba48a1c0fae1107801ea643fa83c971
treec68041342e100b4b3bde3a4a81f13854d425cf76
parent7a01f61be8d0aca0e975e7417f26371495fe7674
Rename our getentropy to prevent possible loops.

Since arc4random seeds from getentropy, and we use OpenSSL for that
if enabled, there's the possibility that if we build on a system that
does not have getentropy then run on a system that does have it, then
OpenSSL could end up calling our getentropy and getting stuck in a loop.
Pointed out by deraadt@, ok djm@
openbsd-compat/arc4random.c
openbsd-compat/bsd-getentropy.c
openbsd-compat/openbsd-compat.h