Skip to content

subsys: net: lib: websocket: remove usage of legacy Mbed TLS crypto#102037

Merged
henrikbrixandersen merged 3 commits intozephyrproject-rtos:mainfrom
valeriosetti:websocket-remove-legacy-mbedtls
Jan 13, 2026
Merged

subsys: net: lib: websocket: remove usage of legacy Mbed TLS crypto#102037
henrikbrixandersen merged 3 commits intozephyrproject-rtos:mainfrom
valeriosetti:websocket-remove-legacy-mbedtls

Conversation

@valeriosetti
Copy link
Copy Markdown
Contributor

Remove optional use of legacy Mbed TLS crypto in favor of the already existing PSA Crypto API alternative. This is required in order to jump to the next version of Mbed TLS (i.e. 4.0) where all this legacy crypto support is no more available.

Remove optional use of legacy Mbed TLS crypto in favor of the already
existing PSA Crypto API alternative. This is required in order to jump
to the next version of Mbed TLS (i.e. 4.0) where all this legacy crypto
support is no more available.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
rlubos
rlubos previously approved these changes Jan 9, 2026
Use PSA Crypto API for SHA-1 computation instead of legacy Mbed TLS crypto.
The latter is going to be removed soon.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
@zephyrbot zephyrbot added the area: HTTP HTTP client/server support label Jan 9, 2026
@zephyrbot zephyrbot requested a review from matt-rodgers January 9, 2026 16:27
Include "websocket/websocket_internal.h" only when CONFIG_WEBSOCKET_CLIENT
is also enabled.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
@sonarqubecloud
Copy link
Copy Markdown

@@ -17,6 +17,7 @@
#include <zephyr/sys/base64.h>
#include <mbedtls/sha1.h>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

this is probably no longer needed or?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Ouch, right :(
I guess I'll solve that in another PR

@henrikbrixandersen henrikbrixandersen merged commit c5dd4c7 into zephyrproject-rtos:main Jan 13, 2026
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: HTTP HTTP client/server support area: Networking

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants