Kapil Gupta
c098c253b1
wpa_supplicant: Add BTM security checks
2022-03-09 03:58:39 +00: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
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
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
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
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
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
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
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
Hrudaynath Dhabe
5f96a6ffd2
esp_wifi: Add support for EAP-FAST authentication method
2021-11-22 17:33:36 +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
Kapil Gupta
54940f58a4
esp_wifi: Add WPA3 192-bit certification support
2021-10-12 20:48:53 +08:00
Kapil Gupta
797c7144bd
esp_wifi: Add support for GCMP and GMAC ciphers
2021-10-12 20:48:51 +08:00
Axel Lin
abb67d0033
wpa_supplicant: Fix wps_free_pins to remove all pins
...
Current code does not correctly free all pins in wps_free_pins due to the
semicolon at the end of dl_list_for_each_safe(). Fix it.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
2021-10-12 04:16:58 +08:00
Kapil Gupta
834afad47e
esp_wifi: Add support for MBO certification
2021-10-04 15:56:14 +08:00
Zim Kalinowski
002cd296e1
Merge remote-tracking branch 'origin/master' into feature/github-7022
2021-10-03 12:25:39 +08:00
Kapil Gupta
393a9d5a94
wpa_supplicant: Update internal tls client with sha384/sha512 support
...
Add support for validating certificates with SHA384 and SHA512 hashes.
2021-09-13 14:11:55 +05:30
Kapil Gupta
6647f48dda
esp_wifi: Fix interoperability issue with windows 2008
2021-09-13 14:11:37 +05:30
Kapil Gupta
d3a42d787d
wpa_supplicant: clean tls client state machine
2021-08-27 00:19:32 +08:00
Axel Lin
20d0891e1e
wpa_supplicant: Trivial typo fix for setting spp_sup.require
...
No functional change since both SPP_AMSDU_CAP_ENABLE and SPP_AMSDU_REQ_ENABLE
are defined as 1.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Sagar Bijwe <sagar@espressif.com>
Merges https://github.com/espressif/esp-idf/pull/7366
2021-08-11 13:07:31 +08:00
Ato Araki
aea865b360
Fix length typo
...
Closes https://github.com/espressif/esp-idf/pull/7037
2021-07-29 14:44:43 +08:00
Kapil Gupta
e667d1af2e
wpa_supplicant: bypass sonar checks for upstream code
2021-07-22 14:12:22 +08:00
Kapil Gupta
16b64e8524
wpa_supplicant: Fix some issues in 11kv
...
Fix following issues:
1. RRM capability addition for open AP
2. Crash during scan flush
3. Station not able to connect if disassoc timer is present in BTM request
4. Memory leaks during wifi init/deinit.
2021-07-02 09:41:23 +05:30
Kapil Gupta
a7713676b8
wpa_supplicant: Fix crypto related bugs
...
1. Fix aes_unwrap functionality when hardware acceleration is disabled
2. Fix compilation errors when mbedTLS is disabled.
3. Disable WPA3 when mbedTLS is disabled.
2021-06-28 19:50:01 +08:00
Jiang Jiang Jian
d5845abe62
Merge branch 'bugfix/wps_wfa_cert_fixes' into 'master'
...
wpa_supplicant: Add WPS strict in config option
Closes WIFI-3624 and WIFI-3842
See merge request espressif/esp-idf!13545
2021-06-28 10:13:23 +00:00
Kapil Gupta
d3d977617b
wpa_supplicant: Add WPS strict in config option
...
WPS strict disables workarounds with different APs and may cause
IOT issues. Remove this as default and introduce as a config option.
Also declare esp device as single band mobile device otherwise
WFA sniffer was not able to identify it in the certification setup.
2021-06-24 16:15:15 +08:00
Hrudaynath Dhabe
a260a1bafa
wpa_supplicant: Fix supplicant debug logs errors.
2021-05-27 13:02:38 +05:30
Andrey Starodubtsev
6e343c1f8b
Fix typo
...
s/\bUnknow\b/Unknown/g
2021-05-14 18:26:22 +03:00
Jiang Jiang Jian
9afd57057d
Merge branch 'bugfix/add_sniffer_fcs_filter' into 'master'
...
example: Add sniffer FCSFAIL filter
Closes IDFGH-4661
See merge request espressif/esp-idf!12249
2021-05-08 07:31:51 +00:00
kapil.gupta
ad7cb5f5c1
wpa_supplicant: Write Crypto API based on mbedtls
...
This commit add following crypto changes
1. Update current crypto code with upstream supplicant code
2. Add a proper porting layer to use mbedtls APIs for all the crypto
operations used by supplicant.
Internal crypto will be used when USE_MBEDLTS flag is disabled
in supplicant's menuconfig.
This commit also removes the clutter in crypto files due to partial
porting of some APIs to mbedtls, all the code from those files have
been removed and rewritten in a generic way, this is inspired from
current upstream code.
This also reduces the lib size significantly, supplicant's lib
size reduces around ~567kb after this change(NB: lib size doesn't
indicate reduction in final bin size).
2021-05-04 10:54:57 +00:00
xiehang
adb15e4a5d
esp_wifi: Modify ESP_IF_WIFI_STA to WIFI_IF_STA
2021-04-27 20:06:42 +08:00
Kapil Gupta
20bb0c3b02
wpa_supplicant: Group key reinstallation fixes
...
This commit reverts previous commit for GTK reinstallation fix
and corrects original fix.
2021-04-23 13:44:02 +05:30
Kapil Gupta
035909872b
wpa_supplicant: Prevent reinstallation of an already in-use group key
2021-04-19 04:17:20 +00:00
Angus Gratton
d6f4d99d93
core system: Fix warnings in compilation when assertions are disabled
...
Adds a CI config for hello world that sets this, to catch future regressions
2021-03-03 10:26:57 +11:00