Created attachment 2372 [details] Detect arc4random_stir() availability Since http://marc.info/?l=openbsd-cvs&m=138238762705209&w=2 OpenSSH-portable fails to build on OpenBSD-current (post 5.4). This is a problem for the OpenBSD ports tree which includes copies of the openssh-portable source code. Since other OSes have not implemented yet the improvements made since 10 years to the arc4random API, calling the arc4random_addrandom() or arc4random_stir() functions is still necessary on those platforms. Maybe one day we'll finally get rid of those functions. The patch attached fixes build on OpenBSD-current and any other platform willing to remove these functions.
I noticed that too on my test system. Fixed in a similar way, it will be in 6.5p1. Thanks.
(In reply to Darren Tucker from comment #1) > I noticed that too on my test system. Fixed in a similar way, it > will be in 6.5p1. > > Thanks. Great. I should have added that (void(0)) was inspired by the definition for assert() when NDEBUG is defined, as per the C standards.
Set all RESOLVED bugs to CLOSED with release of OpenSSH 7.1