Skip to content

Fix build since openssl 1.1.0 when ECDSA and/or RIPEMD are disabled - #666

Merged
willco007 merged 1 commit into
libssh2:masterfrom
piru:master
Apr 5, 2022
Merged

willco007 merged 1 commit into
libssh2:masterfrom
piru:master

Conversation

@piru

@piru piru commented Jan 19, 2022

Copy link
Copy Markdown
Contributor

In openssl 1.1.0 and later openssl decided to change some of the defines used to check if certain features are not compiled in the libraries.

The particular changes that caused the problem libssh2 are:

  • OPENSSL_NO_EC{DH,DSA} merged into OPENSSL_NO_EC
  • OPENSSL_NO_RIPEMD160, OPENSSL_NO_RIPEMD merged into OPENSSL_NO_RMD160

Needless to say, any code that depended on the old defines broke as a consequence. This is my proposed fix for libssh2.

@willco007
willco007 merged commit b95e758 into libssh2:master Apr 5, 2022
vszakats added a commit that referenced this pull request Oct 13, 2025
Use `HAVE_ECC` as an indicator for ECDSA when building with wolfSSL.

Before this patch the OpenSSL macros were used, in particular
`OPENSSL_NO_EC`, which made ECDSA support disabled with certain
wolfSSL build configurations, e.g. the Ubuntu 24.04 one.

ECDSA is necessary to run tests with OpenSSH v10, e.g. on Debian Trixie.

Follow-up to b95e758 #666
Ref: #1720
Closes #1723
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants