mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-30 18:57:19 +02:00
fix(mbedtls): dynamic buffer feature issue with mbedtls 3.5.0
Set max TLS version in the SSL context during setup phase. Dynamic buffer feature overrides the `mbedtls_ssl_setup` API and hence this change is required per upstream 3.5.0 codebase change.
This commit is contained in:
@ -283,6 +283,8 @@ static int ssl_handshake_init( mbedtls_ssl_context *ssl )
|
|||||||
int __wrap_mbedtls_ssl_setup(mbedtls_ssl_context *ssl, const mbedtls_ssl_config *conf)
|
int __wrap_mbedtls_ssl_setup(mbedtls_ssl_context *ssl, const mbedtls_ssl_config *conf)
|
||||||
{
|
{
|
||||||
ssl->conf = conf;
|
ssl->conf = conf;
|
||||||
|
ssl->tls_version = ssl->conf->max_tls_version;
|
||||||
|
|
||||||
CHECK_OK(ssl_handshake_init(ssl));
|
CHECK_OK(ssl_handshake_init(ssl));
|
||||||
|
|
||||||
mbedtls_free(ssl->MBEDTLS_PRIVATE(out_buf));
|
mbedtls_free(ssl->MBEDTLS_PRIVATE(out_buf));
|
||||||
|
Reference in New Issue
Block a user