mirror of
https://github.com/espressif/esp-idf.git
synced 2025-09-12 17:31:07 +00:00
feat(mbedtls): disable unnecessary buffer allocation in dynamic buffer session reset
This commit is contained in:
@@ -367,7 +367,6 @@ if(CONFIG_MBEDTLS_DYNAMIC_BUFFER)
|
|||||||
mbedtls_ssl_handshake_server_step
|
mbedtls_ssl_handshake_server_step
|
||||||
mbedtls_ssl_read
|
mbedtls_ssl_read
|
||||||
mbedtls_ssl_write
|
mbedtls_ssl_write
|
||||||
mbedtls_ssl_session_reset
|
|
||||||
mbedtls_ssl_free
|
mbedtls_ssl_free
|
||||||
mbedtls_ssl_setup
|
mbedtls_ssl_setup
|
||||||
mbedtls_ssl_send_alert_message
|
mbedtls_ssl_send_alert_message
|
||||||
|
Submodule components/mbedtls/mbedtls updated: b5d87eaa67...05556725a2
@@ -418,21 +418,6 @@ void __wrap_mbedtls_ssl_free(mbedtls_ssl_context *ssl)
|
|||||||
__real_mbedtls_ssl_free(ssl);
|
__real_mbedtls_ssl_free(ssl);
|
||||||
}
|
}
|
||||||
|
|
||||||
int __wrap_mbedtls_ssl_session_reset(mbedtls_ssl_context *ssl)
|
|
||||||
{
|
|
||||||
CHECK_OK(esp_mbedtls_reset_add_tx_buffer(ssl));
|
|
||||||
|
|
||||||
CHECK_OK(esp_mbedtls_reset_add_rx_buffer(ssl));
|
|
||||||
|
|
||||||
CHECK_OK(__real_mbedtls_ssl_session_reset(ssl));
|
|
||||||
|
|
||||||
CHECK_OK(esp_mbedtls_reset_free_tx_buffer(ssl));
|
|
||||||
|
|
||||||
esp_mbedtls_reset_free_rx_buffer(ssl);
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
int __wrap_mbedtls_ssl_send_alert_message(mbedtls_ssl_context *ssl, unsigned char level, unsigned char message)
|
int __wrap_mbedtls_ssl_send_alert_message(mbedtls_ssl_context *ssl, unsigned char level, unsigned char message)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
@@ -243,7 +243,7 @@ static void https_get_task(void *pvParameters)
|
|||||||
|
|
||||||
static int request_count;
|
static int request_count;
|
||||||
ESP_LOGI(TAG, "Completed %d requests", ++request_count);
|
ESP_LOGI(TAG, "Completed %d requests", ++request_count);
|
||||||
printf("Minimum free heap size: %" PRIu32 " bytes\n", esp_get_minimum_free_heap_size());
|
ESP_LOGI(TAG, "Minimum free heap size: %" PRIu32 " bytes\n", esp_get_minimum_free_heap_size());
|
||||||
|
|
||||||
for (int countdown = 10; countdown >= 0; countdown--) {
|
for (int countdown = 10; countdown >= 0; countdown--) {
|
||||||
ESP_LOGI(TAG, "%d...", countdown);
|
ESP_LOGI(TAG, "%d...", countdown);
|
||||||
|
@@ -9,3 +9,4 @@ CONFIG_EXAMPLE_ETH_MDIO_GPIO=18
|
|||||||
CONFIG_EXAMPLE_ETH_PHY_RST_GPIO=5
|
CONFIG_EXAMPLE_ETH_PHY_RST_GPIO=5
|
||||||
CONFIG_EXAMPLE_ETH_PHY_ADDR=1
|
CONFIG_EXAMPLE_ETH_PHY_ADDR=1
|
||||||
CONFIG_EXAMPLE_CONNECT_IPV6=y
|
CONFIG_EXAMPLE_CONNECT_IPV6=y
|
||||||
|
CONFIG_MBEDTLS_DYNAMIC_BUFFER=y
|
||||||
|
Reference in New Issue
Block a user