feat(esp-tls): Update esp_tls for improved wolfssl support (IDFGH-16561) #17682
+19
−4
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This is the fifth in a series of pull requests to improve wolfSSL integration with the ESP-IDF as proposed in #16145
As there are multiple changes there, it was suggested that I break the update into smaller pieces.
This PR updates the requirements for wolfSSL in the
components/esp-tls/esp_tls.c
andcomponents/esp-tls/esp_tls.h
Related
See:
Testing
The fully-implemented update is on my wolfssl-dev branch. I've been testing with this esp_http_client_example.
See also the published wolfSSL Managed component that already includes the Certificate Bundle feature introduced in wolfSSL/wolfssl#7936
Checklist
Before submitting a Pull Request, please ensure the following:
Note
Add safety checks and debug logging, validate tls before connecting, and make esp_tls_server_session_delete return int under wolfSSL via conditional prototypes/impl.
esp_tls_conn_read
now validatesdata
;esp_tls_low_level_conn
validatestls
and returns-1
on NULL.create_ssl_handle
with targethostname:port
.esp_tls_server_session_delete
returnsint
whenCONFIG_ESP_TLS_USING_WOLFSSL
,void
otherwise; updated declarations/definitions accordingly.ESP_TLS_HAS_WOLFSSL
incomponents/esp-tls/esp_tls.h
for supported wolfSSL versions.Written by Cursor Bugbot for commit 31496c1. This will update automatically on new commits. Configure here.