Anton Maklakov
6200d2328d
Merge branch 'bugfix/printf-placeholder-for-time_t' into 'master'
...
components: correct printf() placeholder for time_t
See merge request espressif/esp-idf!17439
2022-03-17 16:08:08 +08:00
Kapil Gupta
2bdaa49cb0
Merge branch 'bugfix/pvs_warning_fixes' into 'master'
...
wpa_supplicant: fix issues reported in static analysis
Closes IDF-2733
See merge request espressif/esp-idf!17499
2022-03-17 12:47:05 +08:00
Kapil Gupta
6da52cf0d8
wpa_supplicant: static analysis fixes
2022-03-16 10:50:49 +05:30
Kapil Gupta
a1b842b1c6
wpa_supplicant: Add changes to fix broken dpp crypto
2022-03-14 18:26:35 +05:30
Anton Maklakov
e27f1331e4
components: correct printf() placeholder for time_t
...
Using C99 %jd, https://en.cppreference.com/w/c/chrono/time_t
2022-03-14 14:05:47 +07:00
Kapil Gupta
9130988299
Merge branch 'bugfix/security_validation' into 'master'
...
wpa_supplicant: Add BTM security checks
Closes WIFI-4075 and WIFI-4081
See merge request espressif/esp-idf!16619
2022-03-10 15:14:06 +08:00
Sagar Bijwe
6501eff7f5
Remove legacy system event framework.
2022-03-09 15:53:45 +05:30
Kapil Gupta
c098c253b1
wpa_supplicant: Add BTM security checks
2022-03-09 03:58:39 +00:00
Zim Kalinowski
0440aca4e3
Merge branch 'feature/reevaluate_headers_include_dirs' into 'master'
...
esp_hw_support/esp_system: Re-evaluate header inclusions and include directories
See merge request espressif/esp-idf!16763
2022-03-08 01:32:24 +08:00
0xFEEDC0DE64
9b7c345bce
Fix compiler error in mbedtls
...
Closes https://github.com/espressif/esp-idf/pull/8500
Closes https://github.com/espressif/esp-idf/issues/8499
Closes IDFGH-6879
Closes IDFGH-6881
2022-03-07 12:15:08 +05:30
Sudeep Mohanty
a9fda54d39
esp_hw_support/esp_system: Re-evaluate header inclusions and include directories
...
This commit updates the visibility of various header files and cleans up
some unnecessary inclusions. Also, this commit removes certain header
include paths which were maintained for backward compatibility.
2022-03-07 11:18:08 +05:30
Jiang Jiang Jian
1068c7720b
Merge branch 'bugfix/ignore_pmf_capable_flag' into 'master'
...
Always connect Station in PMF mode if possible
Closes WIFI-4320
See merge request espressif/esp-idf!17023
2022-03-03 19:34:36 +08:00
Aditya Patwardhan
72f12a0c8c
Fix issue in wpa_supplicant
2022-03-03 01:37:10 +05:30
Laukik Hase
3925365351
ci: Fix pre-check
stage failing tests
...
- Updated license headers
- Re-enabled public headers and static analysis checks
- Fix public header file check failure
Co-authored-by: Aditya Patwardhan <aditya.patwardhan@espressif.com>
2022-03-03 01:37:10 +05:30
Aditya Patwardhan
60b167f2d6
mbedtls-3.1 update: Removed the MBEDTLS_PRIVATE
from multiple files
...
after they have been again made public in mbedtls-3.1
*Added `MBEDTLS_ALLOW_PRIVATE_ACCESS` in some files.
2022-03-03 01:37:10 +05:30
Kapil Gupta
6a164cc5bc
Fix issues in wpa2 enterprise with mbedTLS 3.0
2022-03-03 01:37:10 +05:30
Aditya Patwardhan
3b71bd7326
mbedtls-3.0: Fixed ESP32 build issues
...
- Added MBEDLTS_PRIVATE(...) wherever necessary
- For functions like mbedtls_pk_parse_key(...), it is necessary to pass the RNG function
pointers as parameter. Solved for dependent components: wpa_supplicant & openSSL
- For libcoap, the SSLv2 ClientHello handshake method has been deprecated, need to handle this.
Currently, corresponding snippet has been commented.
- Examples tested: hello-world | https_request | wifi_prov_mgr
mbedtls-3.0: Fixed ESP32-C3 & ESP32-S3 build issues
- Removed MBEDTLS_DEPRECATED_REMOVED macro from sha1 port
- DS peripheral: esp_ds_rsa_sign -> removed unsused 'mode' argument
- Added MBEDTLS_PRIVATE(...) wherever required
mbedtls-3.0: Fixed ESP32-S2 build issues
- Fixed outdated function prototypes and usage in mbedlts/port/aes/esp_aes_gcm.c due to changes in GCM module
mbedtls-3.0: Fixed ESP32-H2 build issues
ci: Fixing build stage
- Added MBEDTLS_PRIVATE(...) wherever required
- Added RNG function parameter
- Updated GCM Module changes
- Updated Copyright notices
- Tests:
- build_esp_idf_tests_cmake_esp32
- build_esp_idf_tests_cmake_esp32s2
- build_esp_idf_tests_cmake_esp32c3
- build_esp_idf_tests_cmake_esp32s3
ci: Fixing build stage (mbedtls-related changes)
- Added MBEDTLS_PRIVATE(...) wherever required
- Updated SHAXXX functions
- Updated esp_config according to mbedtls changes
- Tests:
- build_examples_cmake_esp32
- build_examples_cmake_esp32s2
- build_examples_cmake_esp32c3
- build_examples_cmake_esp32s3
ci: Fixing build stage (example-related changes)
- Added MBEDTLS_PRIVATE(...) wherever required
- Updated SHAXXX functions
- Updated esp_config according to mbedtls changes
- Tests:
- build_examples_cmake_esp32
- build_examples_cmake_esp32s2
- build_examples_cmake_esp32c3
- build_examples_cmake_esp32s3
ci: Fixing target_test stage
- Updated test SSL version to TLS_v1_2
- Tests:
- example_test_protocols 1/2
ci: Fixing build stage
- Added checks for MBEDTLS_DHM_C (disabled by default)
- Updated esp_cryptoauthlib submodule
- Updated factory partition size for legacy BLE provisioning example
- Tests:
- build_examples_cmake_esp32
- build_examples_cmake_esp32s2
- build_examples_cmake_esp32c3
- build_examples_cmake_esp32s3
Co-authored-by: Laukik Hase <laukik.hase@espressif.com>
2022-03-03 01:37:10 +05:30
Aditya Patwardhan
45122533e0
mbedtls-3 update:
...
1) Fix build issue in mbedtls
2) skip the public headers check in IDF
3)Update Kconfig Macros
4)Remove deprecated config options
5) Update the sha API according to new nomenclature
6) Update mbedtls_rsa_init usage
7) Include mbedtls/build_info.h instead of mbedtls/config.h
8) Dont include check_config.h
9) Add additional error message in esp_blufi_api.h
2022-03-03 01:37:10 +05:30
Aditya Patwardhan
0483bfbbfe
Initial Changes for updating mbedtls to v3.0
2022-03-03 01:37:09 +05:30
Kapil Gupta
84f9aa13c9
Merge branch 'bugfix/dpp_sdkconfig_default' into 'master'
...
esp_example: Enable MbedTLS for DPP enrollee by default
Closes WIFI-4275
See merge request espressif/esp-idf!16624
2022-03-03 00:10:25 +08:00
Nachiket Kukade
7ed8fdac59
esp_wifi: Always connect Station in PMF mode if possible
...
While using esp_wifi_set_config, flag pmf_capable defaults to 0.
Users may not bother to enable it, which prevents connection to a
WPA3 AP. Or the AP may reset into WPA3 mode failing the re-connection.
To ensure better security, deprecate the pmf_capable flag and set it to
true internally.
2022-02-21 11:31:56 +05:30
Jakob Hasse
b9d66670e8
wpa_supplicant: added missing includes
2022-02-17 16:11:56 +08:00
Kapil Gupta
20847eeb96
Merge branch 'bugfix/eap_client_crash' into 'master'
...
wpa_supplicant: Fix memory corruption
Closes WIFI-4299
See merge request espressif/esp-idf!16841
2022-02-11 09:54:27 +00:00
Darian
61639fe1ec
Merge branch 'refactor/freertos_remove_legacy_types' into 'master'
...
FreeRTOS: Remove usage of legacy data types
Closes IDF-4566
See merge request espressif/esp-idf!16680
2022-02-10 04:57:00 +00:00
Jiang Jiang Jian
cca2234619
Merge branch 'feature/pmf_support_for_softAP' into 'master'
...
esp_wifi: Add pmf support for softAP.
Closes WIFI-1353
See merge request espressif/esp-idf!14906
2022-02-10 04:17:00 +00:00
Darian Leung
57fd78f5ba
freertos: Remove legacy data types
...
This commit removes the usage of all legacy FreeRTOS data types that
are exposed via configENABLE_BACKWARD_COMPATIBILITY. Legacy types can
still be used by enabling CONFIG_FREERTOS_ENABLE_BACKWARD_COMPATIBILITY.
2022-02-09 23:05:45 +08:00
aditi_lonkar
c3a661c0fd
esp_wifi: Add pmf support for softAP.
2022-02-09 18:58:37 +05:30
morris
ef00bd59dc
esp_rom: extract int matrix route and cpu ticks getter
2022-02-09 13:52:20 +08:00
Kapil Gupta
9b38b15180
wpa_supplicant: Fix invalid memory dereference
2022-02-08 23:08:51 +08:00
Anton Maklakov
7cdd151612
Merge branch 'bugfix/nocommon' into 'master'
...
enable and fix warnings on common symbols
Closes IDFGH-3055 and IDF-3013
See merge request espressif/esp-idf!16802
2022-01-28 14:39:51 +00:00
Kapil Gupta
096fe163ca
Merge branch 'bugfix/wps_scan_resumption' into 'master'
...
wpa_supplicant: Scan resumption in PBC mode
Closes WIFI-4313
See merge request espressif/esp-idf!16912
2022-01-28 06:00:12 +00:00
Kapil Gupta
f57ccaabee
esp_example: Enable MbedTLS for DPP enrollee by default
2022-01-28 13:53:39 +08:00
Ivan Grokhotkov
d4190a9471
wpa_supplicant: mark global variables defined in headers 'extern'
...
...to avoid defining common symbols.
GCC since version 10 defaults to -fno-common and doesn't generate
common symbols, leading to duplicate definitions of these symbols.
2022-01-27 11:00:09 +07:00
Kapil Gupta
dfb60c0436
wpa_supplicant: Scan resumption in PBC mode
2022-01-25 16:41:51 +05:30
Laukik Hase
76a29cd68d
wpa_supplicant: Saved message-type digest used in handshake for PRF operations
2022-01-25 10:51:27 +05:30
Hrudaynath Dhabe
6d81821516
esp_wifi: Fix the negotiation of method with eap server.
2022-01-03 13:31:32 +05:30
Jiang Jiang Jian
d95b56a435
Merge branch 'bugfix/rrm_dpp_task_delete' into 'master'
...
wpa_supplicant: Correct task deletion for RRM and DPP tasks
Closes IDFGH-5688
See merge request espressif/esp-idf!14940
2021-12-27 10:26:33 +00:00
Kapil Gupta
69e404e7b8
wpa_supplicant: Correct task deletion for RRM and DPP tasks
...
Closes https://github.com/espressif/esp-idf/issues/7409
2021-12-24 13:52:29 +05:30
Jiang Jiang Jian
2e06f1fee5
Merge branch 'bugfix/install_key_refactor' into 'master'
...
esp_wifi: refactor key install code
Closes WIFI-4014
See merge request espressif/esp-idf!14878
2021-12-24 06:56:41 +00:00
Jiang Jiang Jian
d7b83208c1
Merge branch 'bugfix/wpa3_memory_leak' into 'master'
...
esp_wifi: Fixes memory leak in wpa3.
Closes WIFI-4196
See merge request espressif/esp-idf!16520
2021-12-24 03:15:01 +00:00
Kapil Gupta
0336584f3e
esp_wifi: Refactor key install code
2021-12-23 21:31:31 +08:00
aditi_lonkar
1eeac4943c
esp_wifi: Fixes memory leak in wpa3 connection.
2021-12-23 12:26:58 +05:30
Kapil Gupta
14b949077d
wpa_supplicant: Add WPS Fixes
...
Add following bugfixes
1. Station not able to connect when WPS pin is pressed first on AP.
2. PBC overlap getting detected for selected registrar PIN APs.
3. Station not considering authorised MACs for PIN method.
4. For PIN methodm If no AP is found, station will loop through
APs in its vicinity and try to do WPS with them one by one till
WPS timeout occurs. This is for some APs which do not set
selected registrar correctly.
2021-12-20 17:34:30 +05:30
Hrudaynath Dhabe
9469f08a0b
esp_wifi: Change the verbosity of wpa_supplicant logs.
...
Closes https://github.com/espressif/esp-idf/issues/8030
2021-12-14 14:23:31 +05:30
Kapil Gupta
d3542495ab
ESP_WIFI: Remove static analysis warnings
2021-12-08 17:32:22 +05:30
Jakob Hasse
16514f93f0
refactor (test_utils)!: separate file for memory check functions
...
Memory check (leaks and heap tracing) functions for unit tests
now have a separate file now and are renamed for more consistency.
BREAKING CHANGE: renamed memory check function names which may be used
in unit tests outside IDF.
2021-12-08 11:06:00 +08:00
Hrudaynath Dhabe
5f96a6ffd2
esp_wifi: Add support for EAP-FAST authentication method
2021-11-22 17:33:36 +05:30
Kapil Gupta
4cbd4b19cb
esp_wifi: Remove scan done event for supplicant scans
...
Closes https://github.com/espressif/esp-idf/issues/7423
2021-11-20 18:25:55 +05:30
Kapil Gupta
fa8f057ba8
wpa_supplicant: Fix compilation error when debug enabled
...
Closes https://github.com/espressif/esp-idf/issues/7789
2021-11-20 18:24:56 +05:30
Kapil Gupta
27e3422a23
wpa_supplicant: Optimize BTM request scan
2021-11-20 18:24:56 +05:30