Skip to content

mbedtls: fix 3DES detection - #2286

Closed
vszakats wants to merge 2 commits into
libssh2:masterfrom
vszakats:mbedfixup
Closed

vszakats wants to merge 2 commits into
libssh2:masterfrom
vszakats:mbedfixup

Conversation

@vszakats

@vszakats vszakats commented Jul 13, 2026 •

Copy link
Copy Markdown
Member

`MBEDTLS_CIPHER_*` are not macros upstream.

Follow-up to b684520 libssh2#2277
Follow-up to f1d60b1

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

Adjusts the mbedTLS backend feature-detection in libssh2 so TripleDES support is determined correctly with newer mbedTLS headers (where MBEDTLS_CIPHER_* identifiers are not preprocessor macros), aligning cipher availability checks with upstream API realities.

Changes:

  • Switch LIBSSH2_3DES detection from #ifdef MBEDTLS_CIPHER_DES_EDE3_CBC to an mbedTLS version-based check (< 4.0.0).
  • Minor preprocessor formatting normalization in the ECDSA feature define block.

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

Comment thread src/mbedtls.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 1 out of 1 changed files in this pull request and generated no new comments.

@vszakats vszakats closed this in fe57c2d Jul 13, 2026
@vszakats
vszakats deleted the mbedfixup branch July 13, 2026 10:21
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