diff --git a/components/mbedtls/port/include/mbedtls/esp_config.h b/components/mbedtls/port/include/mbedtls/esp_config.h index fe0b0f344b6..c927d27a778 100644 --- a/components/mbedtls/port/include/mbedtls/esp_config.h +++ b/components/mbedtls/port/include/mbedtls/esp_config.h @@ -810,8 +810,10 @@ #else #undef MBEDTLS_FS_IO #undef MBEDTLS_PSA_ITS_FILE_C +#if !defined(ESP_PSA_ITS_AVAILABLE) #undef MBEDTLS_PSA_CRYPTO_STORAGE_C #endif +#endif #ifndef CONFIG_IDF_TARGET_LINUX