Repository navigation
Conversation
|
Regarding 4.0 support: It's a sad transition story; almost all things seem to be Another option is to stop relying on mbedTLS' built-in key parser, and use Though a precise assessment of which backends/versions support which Regardless I tend to like this option, because the missing parsing bits may be (Another option is to bump the minimum from 3.1 to 3.6.) |
There was a problem hiding this comment.
Pull request overview
Adjusts the mbedTLS backend feature flags and cipher mappings to reflect ciphers removed from newer mbedTLS major versions (3+ and 4+), aligning libssh2’s advertised/compiled cipher support with what mbedTLS can actually provide.
Changes:
- Hard-disables Blowfish and RC4 for the mbedTLS backend.
- Makes 3DES support conditional and wraps 3DES-specific cipher mapping and padding-mode handling with
LIBSSH2_3DES.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| src/mbedtls.h | Disables Blowfish/RC4; makes 3DES availability conditional; conditionally defines ssh2_cipher_3des. |
| src/mbedtls.c | Makes CBC padding-mode handling conditional for 3DES. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| #ifdef MBEDTLS_CIPHER_DES_EDE3_CBC | ||
| # define LIBSSH2_3DES 1 | ||
| #else | ||
| # define LIBSSH2_RC4 0 | ||
| # define LIBSSH2_3DES 0 | ||
| #endif |
`MBEDTLS_CIPHER_*` are not macros upstream. Follow-up to b684520 libssh2#2277 Follow-up to f1d60b1
RC4 and Blowfish not supported by mbedTLS 3+.
3DES not supported by mbedTLS 4+.
Follow-up to f63f68b #1727
https://github.com/libssh2/libssh2/pull/2277/files?w=1