Bug 2979

Summary: OpenSSH 7.9p1 fails to build against OpenSSL 1.0.2
Product: Portable OpenSSH Reporter: James Brown <jbrown>
Component: MiscellaneousAssignee: Assigned to nobody <unassigned-bugs>
Status: CLOSED DUPLICATE    
Severity: normal CC: dtucker
Priority: P5    
Version: 7.9p1   
Hardware: All   
OS: Linux   
Attachments:
Description Flags
patch to fix version number guard none

Description James Brown 2019-03-13 05:23:32 AEDT
Created attachment 3251 [details]
patch to fix version number guard

In commit 4e23deefd7959ef83c73ed9cce574423438f6133 ("Avoid deprecated OPENSSL_config when using 1.1.x"), the guard around calling `OPENSSL_init_crypto` was mistakenly set to OpenSSL version 1.0.1 instead of version 1.1.0 (this function was only added in OpenSSL 1.1.0), so OpenSSH fails to build against OpenSSL 1.0.2 (which is greater than 1.0.1 but less than 1.1.0).

A patch is attached which fixes this.
Comment 1 James Brown 2019-03-13 05:39:49 AEDT
This may be a dup of #2921.
Comment 2 Darren Tucker 2019-03-13 10:46:17 AEDT
Indeed it is, this has already been fixed and will be in the next release.  We also changed configure to explicitly test for the function it wants instead of inferring it from the OpenSSL version number (https://github.com/openssh/openssh-portable/commit/262d81a259d4aa1507c709ec9d5caa21c7740722)

Thanks.

*** This bug has been marked as a duplicate of bug 2921 ***
Comment 3 Damien Miller 2021-03-04 09:53:21 AEDT
close bugs that were resolved in OpenSSH 8.5 release cycle