Skip to content

REQUIREMENTS.md: require LibreSSL 3.7.0+ and wolfSSL 5.4.0+ - #2073

Closed
vszakats wants to merge 7 commits into
libssh2:masterfrom
vszakats:bump-libressl
Closed

vszakats wants to merge 7 commits into
libssh2:masterfrom
vszakats:bump-libressl

Conversation

@vszakats

@vszakats vszakats commented Jun 16, 2026 •

Copy link
Copy Markdown
Member

To enable support AES-GCM for both, and ed25519 for LibreSSL.

wolfSSL requires this version for AES-GCM due to bug:
wolfSSL/wolfssl#5205
(Before this, libssh2 tests crash with AES-GCM enabled)

Also:

  • openssl: add in-source version check for LibreSSL, OpenSSL and
    wolfSSL.
  • openssl: include openssl/opensslv.h to rely on other headers pulling
    it in.
  • cmake: add version check for wolfSSL.
  • mbedtls: do the in-source version check earlier. To match openssl.
  • sync up wording for #error messages

Follow-up to 16ef3a2 #2008


https://github.com/libssh2/libssh2/pull/2073/files?w=1

To support AES-GCM, and in case of LibreSSL ed25519.

wolfSSL requires this version due a bug.

Also:
- add in-source version check for LibreSSL, OpenSSL and wolfSSL.
- include `openssl/opensslv.h` to rely on other headers pulling it in.
- sync up wording for #error messages

Follow-up to 16ef3a2 libssh2#2008
@vszakats vszakats changed the title REQUIREMENTS.md: require LibreSSL 3.7.0 and wolfSSL 5.4.0 REQUIREMENTS.md: require LibreSSL 3.7.0+ and wolfSSL 5.4.0+ Jun 16, 2026
@vszakats
vszakats requested a review from Copilot June 16, 2026 23:09

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

Updates the project’s documented and enforced minimum TLS/crypto library versions to ensure required algorithm support (AES-GCM; plus ed25519 for LibreSSL) and to avoid known wolfSSL issues, by adding compile-time version checks and aligning messaging.

Changes:

  • Enforce minimum versions in-source for wolfSSL (5.4.0+), LibreSSL (3.7.0+), and OpenSSL-family (1.1.1+) and explicitly include <openssl/opensslv.h>.
  • Simplify ED25519 enablement logic based on the new minimum-version guarantees.
  • Update REQUIREMENTS/RELEASE-NOTES and normalize an mbedTLS version error message.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
src/openssl.h Adds explicit OpenSSL version header include and compile-time minimum-version checks; adjusts feature gating logic.
src/mbedtls.c Normalizes the mbedTLS minimum-version #error message wording.
RELEASE-NOTES Updates stated dropped-support minimum versions (LibreSSL/wolfSSL).
docs/REQUIREMENTS.md Updates documented minimum dependency versions for LibreSSL and wolfSSL.

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

Comment thread src/openssl.h Resolved
Comment thread src/openssl.h Resolved

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

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

Comment thread src/openssl.h Resolved

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

Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.

@vszakats vszakats closed this in e4834d1 Jun 17, 2026
@vszakats
vszakats deleted the bump-libressl branch June 17, 2026 10: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