Bug 2916

Summary: compilation fails with openssl built without ECC
Product: Portable OpenSSH Reporter: cotequeiroz <cote2004-github>
Component: MiscellaneousAssignee: Assigned to nobody <unassigned-bugs>
Status: CLOSED FIXED    
Severity: normal CC: djm
Priority: P5    
Version: -current   
Hardware: All   
OS: Linux   
Bug Depends on:    
Bug Blocks: 2915    
Attachments:
Description Flags
patch to fix compilation with openssl built without ECC none

Description cotequeiroz 2018-10-10 07:20:46 AEDT
Created attachment 3191 [details]
patch to fix compilation with openssl built without ECC

When compiling with openssl built without ECC support, compilation fails:

In file included from openssl-compat.c:32:0: openssl-compat.h:27:10: fatal error: openssl/ecdsa.h: No such file or directory #include <openssl/ecdsa.h>

The recently-introduced ECDSA code in openssl-compat.h, and libressl-api-compat.c need to be guarded by #ifdef OPENSSL_HAS_ECC.

I've attached a patch that takes care of it.
Comment 1 Damien Miller 2018-11-09 14:28:30 AEDT
fix applied - thanks!
Comment 2 Damien Miller 2021-03-04 09:52:21 AEDT
close bugs that were resolved in OpenSSH 8.5 release cycle