feat(esp-tls): Update headers for improved wolfssl support (IDFGH-16562) #17681
+20
−5
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 fourth 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/private_include/esp_tls_private.h
andcomponents/esp-tls/private_include/esp_tls_wolfssl.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
Adds wolfSSL-specific includes (incl. cert bundle), introduces optional wolfSSL config/sync fields, and updates wolfSSL API signatures (net init, server session delete).
wolfssl/openssl/x509.h
,wolfssl/wolfcrypt/port/Espressif/esp_crt_bundle.h
, andprivate_include/esp_tls_wolfssl.h
.wolfssl_ssl_config conf
andvoid (*sync)(esp_tls*)
tostruct esp_tls
when!WOLFSSL_NO_CONF_COMPATIBILITY
.esp_tls_wolfssl.h
):#ifdef CONFIG_ESP_TLS_USING_WOLFSSL
and include wolfSSL headers (incl.x509.h
).esp_wolfssl_net_init
from inline no-op to a declared function.esp_wolfssl_server_session_delete
signature fromvoid
toint
.Written by Cursor Bugbot for commit 7b6dcda. This will update automatically on new commits. Configure here.