[MacPorts] #64008: openssl3 @3.0.0_5+legacy Random number generation broken on macOS < 10.12 Also affects openssh

MacPorts noreply at macports.org
Fri Nov 19 17:15:53 UTC 2021


#64008: openssl3 @3.0.0_5+legacy  Random number generation broken on macOS < 10.12
Also affects openssh
-----------------------+------------------------------
 Reporter:  snowflake  |      Owner:  larryv
     Type:  defect     |     Status:  assigned
 Priority:  Normal     |  Milestone:
Component:  ports      |    Version:  2.7.99
 Keywords:             |       Port:  openssl3 openssh
-----------------------+------------------------------
 I was having problems adding RSA keys to the openssh ssh-agent. This is
 partly discussed in #63405 . ssh-agent was crashing every time I added an
 RSA key.

 After some debugging I found the problem may be in libcrypto.3.dylib from
 openssl.

 I searched the commits in openssl repo and found

 commit: 24cdb1bfecbd765e829b9932a5a60ff63a7dff4b

 https://github.com/openssl/openssl/commit/24cdb1bfecbd765e829b9932a5a60ff63a7dff4b

 {{{
 Author: lprimak <lenny at flowlogix.com>
 Date:   2021-09-13 02:21:30 +0100

     MacOS prior to 10.12 does not support random API correctly

     Fixes 16517
 }}}
 https://github.com/openssl/openssl/issues/16517

 and https://github.com/openssl/openssl/pull/16591

 I checked out the commit in my local git repo and
 copied the file include/crypto/rand.h mentioned in the commit to my port
 work directory and rebuilt and installed openssl3

 Adding an RSA key to ssh-agent now worked.

-- 
Ticket URL: <https://trac.macports.org/ticket/64008>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list