mbedtls: test_app: keep release config enabled for ESP32

Before `test_apps` migration, we had an independent release config,
but we can safely enable it in the default configuration for ESP32
target itself. This helps to catch any potential issues that may
occur in relevant tests because of compiler optimization flags.
pull/9839/head
Mahavir Jain 2022-10-17 15:08:29 +05:30
rodzic b3a76f71d7
commit 6c8f6597f9
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 99324EF4A00734E0
2 zmienionych plików z 8 dodań i 0 usunięć

Wyświetl plik

@ -23,6 +23,7 @@
#include "mbedtls/net_sockets.h" #include "mbedtls/net_sockets.h"
#include "mbedtls/error.h" #include "mbedtls/error.h"
#include "mbedtls/debug.h" #include "mbedtls/debug.h"
#include "mbedtls/esp_debug.h"
#include "esp_crt_bundle.h" #include "esp_crt_bundle.h"
#include "esp_random.h" #include "esp_random.h"
@ -91,6 +92,9 @@ esp_err_t server_setup(mbedtls_endpoint_t *server)
{ {
int ret; int ret;
mbedtls_ssl_config_init( &server->conf ); mbedtls_ssl_config_init( &server->conf );
#if CONFIG_MBEDTLS_DEBUG
mbedtls_esp_enable_debug_log( &server->conf, CONFIG_MBEDTLS_DEBUG_LEVEL );
#endif
mbedtls_net_init( &server->listen_fd ); mbedtls_net_init( &server->listen_fd );
mbedtls_net_init( &server->client_fd ); mbedtls_net_init( &server->client_fd );
mbedtls_ssl_init( &server->ssl ); mbedtls_ssl_init( &server->ssl );
@ -213,6 +217,9 @@ esp_err_t client_setup(mbedtls_endpoint_t *client)
{ {
int ret; int ret;
mbedtls_ssl_config_init( &client->conf ); mbedtls_ssl_config_init( &client->conf );
#if CONFIG_MBEDTLS_DEBUG
mbedtls_esp_enable_debug_log( &client->conf, CONFIG_MBEDTLS_DEBUG_LEVEL );
#endif
mbedtls_net_init( &client->client_fd ); mbedtls_net_init( &client->client_fd );
mbedtls_ssl_init( &client->ssl ); mbedtls_ssl_init( &client->ssl );
mbedtls_x509_crt_init( &client->cert ); mbedtls_x509_crt_init( &client->cert );

Wyświetl plik

@ -1,3 +1,4 @@
CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ_240=y CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ_240=y
CONFIG_XTAL_FREQ_AUTO=y CONFIG_XTAL_FREQ_AUTO=y
CONFIG_SPI_FLASH_SHARE_SPI1_BUS=y CONFIG_SPI_FLASH_SHARE_SPI1_BUS=y
CONFIG_COMPILER_OPTIMIZATION_SIZE=y