Skip to content

wolfssl: guard OPENSSL_VERSION_NUMBER off for wolfSSL - #2255

Closed
vszakats wants to merge 1 commit into
libssh2:masterfrom
vszakats:mlkemwolfver
Closed

vszakats wants to merge 1 commit into
libssh2:masterfrom
vszakats:mlkemwolfver

Conversation

@vszakats

@vszakats vszakats commented Jul 8, 2026 •

Copy link
Copy Markdown
Member

It may cause a confusing compiler warning in some cases, and also not
needed for wolfSSL builds.

Follow-up to 3ba252e #1644


The compiler warning may only happen when building with a wolfSSL not
suited for libssh2. I'm still investigating. Either way, this patch is valid.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adjusts the OpenSSL-backend feature detection in src/openssl.h to ensure the OPENSSL_VERSION_NUMBER-based ML-KEM capability check is not applied to wolfSSL builds, avoiding unnecessary logic and potential compiler warnings.

Changes:

  • Gate the ML-KEM (LIBSSH2_MLKEM) enablement check so it does not apply when building against wolfSSL.
  • Keep the ML-KEM enablement condition tied to OpenSSL ≥ 3.5.0 and not LibreSSL.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/openssl.h Resolved
@vszakats vszakats closed this in bb42cb2 Jul 8, 2026
@vszakats
vszakats deleted the mlkemwolfver branch July 8, 2026 19:19
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