Skip to content

mbedtls: add workaround + FIXME to build with 3.6.0 - #1349

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

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

Conversation

@vszakats

@vszakats vszakats commented Apr 3, 2024 •

Copy link
Copy Markdown
Member

This is just a stub to make _libssh2_mbedtls_ecdsa_new_private
compile.

mbedtls 3.6.0 silently deleted its public API mbedtls_pk_load_file,
which this function relies on.

Ref: #1341
Closes #1349

This is just a stub to make `_libssh2_mbedtls_ecdsa_new_private`
compile.

mbedtls 3.6.0 silently deleted its public API `mbedtls_pk_load_file`,
which this function relies on.

Closes libssh2#1349
@vszakats vszakats changed the title ci: bump to mbedtls 3.6.0 mbedtls: add workaround + FIXME to build with 3.6.0 Apr 3, 2024
@vszakats vszakats closed this in 2e4c5ec Apr 3, 2024
@vszakats
vszakats deleted the mbedtls360 branch April 3, 2024 13:29
vszakats added a commit to vszakats/libssh2 that referenced this pull request May 24, 2024
A compile-time failure is preferred over an unexpected one at
runtime.

Follow-up to 2e4c5ec libssh2#1349
Closes #xxxx
vszakats added a commit to vszakats/libssh2 that referenced this pull request May 24, 2024
A compile-time failure is preferred over an unexpected one at
runtime.

Follow-up to 2e4c5ec libssh2#1349
Closes #xxxx
vszakats added a commit to vszakats/libssh2 that referenced this pull request May 24, 2024
A compile-time failure is preferred over an unexpected one at
runtime.

The problem is silenced with a macro in CI and this macro will have
to be added to more platforms when mbedTLS v3.6.0 reaches them.

Follow-up to 2e4c5ec libssh2#1349
Closes libssh2#1393
vszakats added a commit that referenced this pull request May 24, 2024
A compile-time failure is preferred over an unexpected one at
runtime.

The problem is silenced with a macro in CI and this macro will have
to be added to more platforms when mbedTLS v3.6.0 reaches them.

Follow-up to 2e4c5ec #1349
Closes #1393
vszakats pushed a commit that referenced this pull request Jul 13, 2024
While it's moved to pk_internal, it won't removed in mbedTLS 3.6 LTS
so it's safe to redeclare it on our side to find it.

This is implementing emergency fix suggested from
2e4c5ec#commitcomment-141379351

Follow-up to e973493 #1393
Follow-up to 2e4c5ec #1349
Closes #1421
agreppin pushed a commit to agreppin/libssh2 that referenced this pull request Jul 14, 2024
This is just a stub to make `_libssh2_mbedtls_ecdsa_new_private`
compile.

mbedtls 3.6.0 silently deleted its public API `mbedtls_pk_load_file`,
which this function relies on.

Closes libssh2#1349
agreppin pushed a commit to agreppin/libssh2 that referenced this pull request Jul 14, 2024
A compile-time failure is preferred over an unexpected one at
runtime.

The problem is silenced with a macro in CI and this macro will have
to be added to more platforms when mbedTLS v3.6.0 reaches them.

Follow-up to 2e4c5ec libssh2#1349
Closes libssh2#1393
agreppin pushed a commit to agreppin/libssh2 that referenced this pull request Jul 14, 2024
While it's moved to pk_internal, it won't removed in mbedTLS 3.6 LTS
so it's safe to redeclare it on our side to find it.

This is implementing emergency fix suggested from
libssh2@2e4c5ec#commitcomment-141379351

Follow-up to e973493 libssh2#1393
Follow-up to 2e4c5ec libssh2#1349
Closes libssh2#1421
vszakats added a commit that referenced this pull request Apr 24, 2026
This mbedTLS API is no longer exported by mbedTLS 3.6.0+. Replace with
local implementation.

Limit size of loaded keys to 1 MiB.

Follow-up to 1628f6c #1421
Follow-up to e973493 #1393
Follow-up to 2e4c5ec #1349

Closes #1878
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant