Bug 3025 - Compilation issue with no support for OPENSSL_HAS_ECC
Summary: Compilation issue with no support for OPENSSL_HAS_ECC
Status: CLOSED WORKSFORME
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: Build system (show other bugs)
Version: 8.0p1
Hardware: All NetBSD
: P5 normal
Assignee: Assigned to nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-06-27 18:30 AEST by Santhosh Kumar
Modified: 2021-04-23 14:57 AEST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Santhosh Kumar 2019-06-27 18:30:38 AEST
When I tried to compile OpenSSH portable version 8.0 from source without
OPENSSL_HAS_ECC defined, caught undefined reference error to
kex_ecdh_keypair(), kex_ecdh_dec(), kex_ecdh_enc() functions in kexgen.c;
All those functions needed to be under predefined macro OPENSSL_HAS_ECC
because KEX_ECDH_SHA2 exists only under this macro.

Raised a pull-request for Portable version for code reference and changes needed.
https://github.com/openssh/openssh-portable/pull/128
Comment 1 Darren Tucker 2019-06-27 20:45:10 AEST
This was fixed by https://github.com/openssh/openssh-portable/commit/97370f6c2c3b825f8c577b7e6c00b1a98d30a6cf (after 8.0) which adds no-op implementations of those functions without adding the added maintenance of those ifdefs.
Comment 2 Damien Miller 2021-04-23 14:57:00 AEST
closing resolved bugs as of 8.6p1 release