ThePassionate opened a new pull request, #3388:
URL: https://github.com/apache/nuttx-apps/pull/3388
crypto/openssl_mbedtls_wrapper: Fix compat with Mbed TLS 3.6.2
## Summary
This updates the `openssl_mbedtls_wrapper` to fix compilation errors and
logic issues when building against Mbed TLS 3.6.2.
## Details
Mbed TLS 3.x introduced breaking changes, including hiding struct members
and refactoring state machine enums. This patch adjusts the wrapper to
accommodate these changes.
### Changes
1. **Allow Private Access**:
- Added `-DMBEDTLS_ALLOW_PRIVATE_ACCESS` to `Makefile`. The wrapper
relies on direct struct access which is now private in Mbed TLS 3.x.
2. **Update State Machine Mappings (`ssl_pm.c`)**:
- Removed the obsolete `MBEDTLS_SSL_SERVER_NEW_SESSION_TICKET` enum
usage in `ssl_pm_get_state()`.
3. **Fix Error Codes & Versioning**:
- Replaced removed `MBEDTLS_ERR_SSL_NO_USABLE_CIPHERSUITE` with
`MBEDTLS_ERR_SSL_HANDSHAKE_FAILURE`.
- Updated `ssl_pm_new` to use correct version macros compatible with
Mbed TLS 3.x.
## Testing
- Verified compilation validation with Mbed TLS 3.6.2.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]