mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-01 03:34:32 +02:00
fix(wpa_supplicant): Disable fastpbkdf2 when s/w and h/w SHA1 is disabled
This commit is contained in:
@@ -264,9 +264,12 @@ target_compile_definitions(${COMPONENT_LIB} PRIVATE
|
||||
CONFIG_IEEE80211W
|
||||
CONFIG_SHA256
|
||||
CONFIG_NO_RADIUS
|
||||
CONFIG_FAST_PBKDF2
|
||||
)
|
||||
|
||||
if(CONFIG_MBEDTLS_SHA1_C OR CONFIG_MBEDTLS_HARDWARE_SHA)
|
||||
target_compile_definitions(${COMPONENT_LIB} PRIVATE CONFIG_FAST_PBKDF2)
|
||||
endif()
|
||||
|
||||
if(CONFIG_ESP_WIFI_ENABLE_WPA3_SAE)
|
||||
target_compile_definitions(${COMPONENT_LIB} PRIVATE CONFIG_WPA3_SAE)
|
||||
endif()
|
||||
|
Reference in New Issue
Block a user