Angus Gratton
1cd54d34f6
Merge branch 'bugfix/bootloader_factory_reset_with_wake_up_from_deep_sleep' into 'master'
...
bootloader: Blocking the Factory reset during wake up from deep sleep
Closes IDFGH-1536
See merge request espressif/esp-idf!5673
2019-08-29 09:35:08 +08:00
Angus Gratton
06898325e6
Merge branch 'bugfix/bootloader_efuse_build_regression' into 'master'
...
bootloader: add definition of esp_clk_apb_freq
Closes IDFGH-1734
See merge request espressif/esp-idf!5913
2019-08-29 08:35:48 +08:00
Jiang Jiang Jian
17dc04183a
Merge branch 'bugfix/fix_the_bug_for_softap_set_authmode' into 'master'
...
wifi: fix the bug for softAP set authmode
Closes WIFI-449
See merge request espressif/esp-idf!5823
2019-08-28 19:05:00 +08:00
Mahavir Jain
ebe53416ad
ipc: prevent code getting pulled in for unicore configuration
2019-08-28 12:47:08 +05:30
wangmengyang
30bc5953f2
bugfix that call of esp_a2d_media_ctrl(ESP_A2D_MEDIA_CTRL_SUSPEND) will not get an ACK from callback on A2DP sink
...
# Conflicts:
# components/bootloader/subproject/components/micro-ecc/micro-ecc
2019-08-28 15:16:10 +08:00
Mahavir Jain
5582878f8e
mbedtls: keep asymmetric tls buffer length option enabled by default
2019-08-28 06:23:33 +00:00
Angus Gratton
a21ca2270a
Merge branch 'feature/deep_sleep_fast_wake' into 'master'
...
bootloader: Reduce the time spent in image validation when waking from deep sleep
See merge request espressif/esp-idf!5140
2019-08-28 08:54:28 +08:00
Jiang Jiang Jian
039f9d0a20
Merge branch 'bugfix/btdm_fix_ble_data_loss_and_send_same_pkt_twice' into 'master'
...
Component/bt: fix some BLE bugs
See merge request espressif/esp-idf!5896
2019-08-27 18:48:45 +08:00
Ivan Grokhotkov
fb72a6f629
bootloader: add definition of esp_clk_apb_freq
...
Commit 8cd04c80
has added a dependency of efuse component on
esp_clk_apb_freq, however there was no definition of this function in
the bootloader context.
Reported at https://esp32.com/viewtopic.php?f=13&t=12035
2019-08-27 12:01:11 +02:00
Renz Christian Bagaporo
c50a67567a
ldgen: fix build issue on make when build dir is a symlink
...
Fixes an issue where build fails if the build directory is a symlink.
The issue is caused by the rule target and the final executable dependency
not matching.
Closes https://github.com/espressif/esp-idf/issues/3626
2019-08-27 13:53:31 +08:00
Angus Gratton
8d8d4a57e1
Merge branch 'bugfix/reset_periph_modules' into 'master'
...
driver: Add a reset before enabling if a module is off
Closes IDF-188
See merge request espressif/esp-idf!4843
2019-08-26 16:38:23 +08:00
zhiweijian
f002d1c6aa
Component/bt: fix dome BLE bugs
...
- fix data loss and send same pkt twice sometimes
- fix adv data error in air sometimes
- fix adv start/stop crash sometimes
2019-08-26 14:17:46 +08:00
Jiang Jiang Jian
f68cd62abd
Merge branch 'bugfix/btdm_security_vulnerability_on_encryption_key_size' into 'master'
...
bugfix/btdm_security_vulnerability_on_encryption_key_size
See merge request espressif/esp-idf!5868
2019-08-26 14:08:22 +08:00
He Yin Ling
954a23be37
test: fix nvs compatible case error:
...
nvs compatible test case uses new test env and app. update test config
file.
2019-08-25 20:35:49 +08:00
KonstantinKondrashov
30953ba9c4
app_update: Fix UTs for FACTORY_RESET and APP_TEST
2019-08-23 10:21:06 +00:00
KonstantinKondrashov
69f45c3674
bootloader: Factory reset not for deep sleep
...
Closes: https://github.com/espressif/esp-idf/issues/3800
Closes: IDFGH-1536
2019-08-23 10:21:06 +00:00
Jiang Jiang Jian
8db44f67d7
Merge branch 'bugfix/wps_workaround_for_Telstra_AP' into 'master'
...
wps: Relax the check on older config methods in case of WPS2.0
See merge request espressif/esp-idf!5781
2019-08-23 17:32:46 +08:00
zhangyanjiao
ff96965a91
wifi: fix the bug for softAP set authmode
2019-08-23 14:37:08 +08:00
Ivan Grokhotkov
12c9d9a564
spi_flash: remove duplicate definition of spi_flash_unlock
...
The other (static) definition is in flash_ops.c, all references are
also in flash_ops.c.
2019-08-23 12:37:55 +08:00
wangmengyang
76b6902e96
components/bt: set the minimum encryption key size to be 7 octects for BR/EDR link for preventing KNOB attack
...
This patch is to address the CVE-2019-9506 vulnerability.
2019-08-23 08:26:15 +08:00
suda-morris
5a09de8245
cbor: add tinycbor library and example
2019-08-22 17:44:29 +08:00
Jiang Jiang Jian
0a30468945
Merge branch 'feature/wifi_use_new_event_api' into 'master'
...
esp_wifi/event: wifi use new event api
Closes WIFI-696
See merge request espressif/esp-idf!5454
2019-08-21 21:12:28 +08:00
KonstantinKondrashov
c543aac91e
bootloader: API for the fast wakeup and custom using RTC mem
...
Added "Reserve RTC FAST memory for custom purposes" option.
Added a boot counter.
2019-08-21 11:44:37 +00:00
Tim Nordell
43393cf4d1
bootloader: Support for skipping validation upon wake from deep sleep
...
This saves time when waking up from deep sleep, but potentially decreases
the security of the system. If the application able to modify itself
(especially areas that are loaded into RAM) in flash while running
without crashing or is modifies the cached bits of information about
what was last booted from the bootloader, this could cause security
issues if the user does a "deep sleep reset" since the full validation
is skipped.
Signed-off-by: Tim Nordell <tim.nordell@nimbelink.com>
2019-08-21 11:44:37 +00:00
Tim Nordell
82984f0539
bootloader: Do not obfuscate RAM if we are not doing image validation
...
No need to take this step if we are not doing image validation. The
obfuscation only buys us a tiny bit of "security" anyways since the
main parts of flash are memory mapped, too. This saves a little bit of
wake-up time when waking up from deep sleep when the
BOOTLOADER_SKIP_VALIDATE_IN_DEEP_SLEEP option is set.
Signed-off-by: Tim Nordell <tim.nordell@nimbelink.com>
2019-08-21 11:44:37 +00:00
Tim Nordell
1e32fa2cf7
bootloader: Remove extraneous newlines from some debug statements
...
ESP_LOGD(...) provides its own new lines so remove these from these
debug strings.
Signed-off-by: Tim Nordell <tim.nordell@nimbelink.com>
2019-08-21 11:44:37 +00:00
Prasad Alatkar
393eb1700d
NimBLE: Add misc menuconfig options
...
- Add option to configure stack size of NimBLE host task, update NimBLE
submodule for the same.
- Change max concurrent connections supported to 9 inline with controller.
2019-08-21 19:28:47 +08:00
Jiang Jiang Jian
14608cc0fb
Merge branch 'Bugfix/nonblocking_udp_is_zero' into 'master'
...
fix bug for nonblocking udp is zero
Closes WIFI-756
See merge request espressif/esp-idf!5792
2019-08-21 16:44:11 +08:00
Angus Gratton
3aef62527a
Merge branch 'update/cjson_v1_7_12' into 'master'
...
Update cJSON to v1.7.12
See merge request espressif/esp-idf!5776
2019-08-21 16:40:35 +08:00
Angus Gratton
319d44b1a6
Merge branch 'bugfix/esp_timer_null_checks' into 'master'
...
esp_timer: Add parameter NULL checks to public API
See merge request espressif/esp-idf!5804
2019-08-21 16:17:15 +08:00
xueyunfei
36920b4062
fix bug for nonblocking udp is zero
2019-08-21 11:25:17 +08:00
Ivan Grokhotkov
636c6a9a30
Merge branch 'feature/ulp_macro_updates' into 'master'
...
ulp: updates for ULP macros (PRs from Github)
Closes IDFGH-1492
See merge request espressif/esp-idf!5801
2019-08-20 20:40:09 +08:00
Nachiket Kukade
19a1af88a5
wps: Relax the check on older config methods in case of WPS2.0
...
Some APs incorrectly advertize newer WPS2.0 config method bits
without setting bits for the corresponding older methods. This
results in failures during 8-way handshake. Add a workaround to
relax this check so that WPS handshake can proceed.
2019-08-20 09:58:41 +00:00
liu zhifu
003a9872b7
esp_wifi: wifi support new event mechanism
...
1. WiFi support new event mechanism
2. Update examples to use new event mechanism
2019-08-20 09:39:51 +00:00
Ivan Grokhotkov
5944f575cf
Merge branch 'bugfix/newlib_time_test' into 'master'
...
newlib: Fix UT - test time adjustment happens linearly
See merge request espressif/esp-idf!5712
2019-08-20 16:24:30 +08:00
Jiang Jiang Jian
23aef7d8d8
Merge branch 'cleanup/make_supp_headers_private' into 'master'
...
wpa_supplicant: Make internally used crypto headers private
Closes IDF-476
See merge request espressif/esp-idf!5666
2019-08-19 17:11:34 +08:00
Angus Gratton
b1d67ad344
Merge branch 'bugfix/remove_transport_strcasestr' into 'master'
...
tcp_transport: replace transport_strcasestr with strcasestr
Closes IDF-548
See merge request espressif/esp-idf!5802
2019-08-19 10:36:32 +08:00
Nachiket Kukade
9ec363a25d
wpa_supplicant: Make internally used crypto headers private
...
A lot of internally used crypto headers are publicly includeable
in user projects. This leads to bug reports when these headers
are incorrectly used or the API's are not used as intended.
Move all crypto headers into private crypto src folder, also move
crypto_ops into Supplicant to remove dependecy on crypto headers.
Closes IDF-476
2019-08-17 11:48:37 +00:00
baohongde
38ae31ebc4
components/bt: Fix linking fail with toolchain 8.2.0
2019-08-16 09:54:18 +00:00
Angus Gratton
76453ccfa5
Merge branch 'bugfix/ledc_clock_mode' into 'master'
...
driver: ledc: Fix clock mode selection
See merge request espressif/esp-idf!5747
2019-08-16 17:39:16 +08:00
chenyudong
2116968d78
test: fix test case MESH_EST_2403
2019-08-16 09:15:31 +00:00
Angus Gratton
727ffbe908
esp_timer: Add parameter NULL checks to public API
...
Return ESP_ERR_INVALID_ARG if the handle is NULL, instead of crashing.
As reported via forum https://esp32.com/viewtopic.php?f=13&t=11721&p=47926#p47926
2019-08-16 13:00:21 +10:00
Angus Gratton
74c2eb3aff
Merge branch 'fix/esp_flash_set_get_wp' into 'master'
...
esp_flash: fix the set/get write protection functions
See merge request espressif/esp-idf!5682
2019-08-16 06:14:48 +08:00
Ivan Grokhotkov
61a1a468bb
tcp_transport: replace transport_strcasestr with strcasestr
...
esp32-2019r1 toolchain version includes 'strcasestr', so the version
provided in tcp_transport component is no longer needed.
2019-08-15 17:51:54 +02:00
Saket Dandawate
ccc95191ea
ulp: Add aditional uint32_t object to ulp_insn_t
...
Used to get the encoded instruction from bit-field structs.
Merges https://github.com/espressif/esp-idf/pull/3759
2019-08-15 17:34:26 +02:00
boarchuz
28ca2d72b8
ulp: Correct misleading corrections of i2c comments
...
Merges https://github.com/espressif/esp-idf/pull/3580
2019-08-15 17:34:19 +02:00
boarchuz
68b3677daa
ulp: Correct misleading i2c write mask comments
...
Merges https://github.com/espressif/esp-idf/pull/3580
2019-08-15 17:34:11 +02:00
boarchuz
88a69823cf
ulp: Expand ULP macro functionality
...
Merges https://github.com/espressif/esp-idf/pull/3580
2019-08-15 17:34:11 +02:00
Hrudaynath Dhabe
53e7beb95b
esp_https_ota: Added error checking functionalities.
...
Current implimentation of esp_http_ota does not perform any error-checking in the data writing phase calls `esp_ota_get_next_update_partition()` irrespetive of the received state of the image. A few additional error checking mechanism have now been added inside the esp_https_ota which returns the control in case an invalid header is received and a wrapper to the function `esp_http_client_is_complete_data_received()` of `esp_http_client` has been added.
2019-08-15 21:10:00 +08:00
Ivan Grokhotkov
5863509804
Merge branch 'bugfix/vfs_concurrent_select' into 'master'
...
VFS: Support concurrent VFS select calls & improve the documentation
Closes IDFGH-1072
See merge request espressif/esp-idf!5538
2019-08-15 19:57:30 +08:00
Angus Gratton
848465da90
driver: Check ledc config result in PCNT tests
2019-08-15 06:53:46 +00:00
Angus Gratton
1dd2f3e07b
driver: ledc: Fix low/high speed parameter setting
...
Fix regression introduced in 2e8c85d8ff
2019-08-15 06:53:46 +00:00
Angus Gratton
a50ae86707
Merge branch 'bugfix/mbedtls_add_source_files_to_appropriate_library' into 'master'
...
mbedtls: add source files to appropriate library
See merge request espressif/esp-idf!5761
2019-08-15 13:32:20 +08:00
Renz Christian Bagaporo
6875080b9b
mbedtls: add source files to appropriate library
2019-08-15 12:43:45 +08:00
Angus Gratton
b6b7ea4f10
Merge branch 'bugfix/fix_flash_read_error_in_dio_mode' into 'master'
...
bugfix(flash): add spi dio address bitlen configure in psram init
See merge request espressif/esp-idf!5783
2019-08-15 11:28:19 +08:00
Prasad Alatkar
4c7b83defc
NimBLE: Fix bug in protocomm_nimble
chararcteristic access callback
...
Fixes bug in `protocomm_nimble` while writing to characteristic with length greater than MTU value.
2019-08-15 10:50:30 +08:00
Angus Gratton
0781868c36
Merge branch 'bugfix/mdns_send_bye_service_instance' into 'master'
...
mdns: fix missing bye packet if services removed with mdns_service_remove_all() or mdns_free()
See merge request espressif/esp-idf!5308
2019-08-15 10:50:17 +08:00
Angus Gratton
ee6b1399aa
Merge branch 'feature/exclude_rom_from_example_header_files' into 'master'
...
exclude rom headers in examples
Closes IDF-557
See merge request espressif/esp-idf!5051
2019-08-15 10:50:01 +08:00
chenjianqiang
74e2e46402
bugfix(flash): add spi dio address bitlen configure in psram init
2019-08-14 20:57:30 +08:00
Angus Gratton
367ecc2d60
Merge branch 'refactor/timerg_in_test' into 'master'
...
timer_group: refactoring to avoid direct register access in the ISR
See merge request espressif/esp-idf!5656
2019-08-14 15:32:16 +08:00
David Cermak
a001998d52
mdns: fix missing bye packet if services removed with mdns_service_remove_all() or mdns_free()
...
Closes https://github.com/espressif/esp-idf/issues/3660
2019-08-14 05:54:54 +00:00
Angus Gratton
f72dc5b271
Update cJSON to v1.7.12
...
Fixes potential DoS in cJSON_Minify, see https://github.com/DaveGamble/cJSON/issues/354
2019-08-14 10:03:27 +10:00
Ivan Grokhotkov
0a74227cfa
bump version to 4.1
2019-08-13 10:09:52 +02:00
Angus Gratton
80a4a11808
Merge branch 'bugfix/fix_mbedtls_net_sockets_error_handling' into 'master'
...
mbedtls: use `errno` instead of `SO_ERROR` for getting socket errors
See merge request espressif/esp-idf!5727
2019-08-13 14:38:28 +08:00
Angus Gratton
aa2a972261
Merge branch 'bugfix/fix_encrypted_project_flash_arg_file_gen' into 'master'
...
CMake: fix encrypted project flash arg file generation
See merge request espressif/esp-idf!5741
2019-08-13 13:45:57 +08:00
suda-morris
b1497f2187
exclude rom headers in examples
...
1. avoid including rom headers directly in examples
2. add common API interface for CRC calculation in esp_common component
2019-08-13 11:10:22 +08:00
suda-morris
f86e82cb63
efuse: update the scheme of getting chip revision
2019-08-13 10:59:02 +08:00
Jiang Jiang Jian
65b9032dba
Merge branch 'bugfix/reuse_pmk_without_set_config' into 'master'
...
wifi: Avoid recalculating PMK when esp_wifi_set_config is not called
Closes IDFGH-1520
See merge request espressif/esp-idf!5745
2019-08-12 23:33:45 +08:00
Angus Gratton
212e7be28c
Merge branch 'bugfix/core_id_arg' into 'master'
...
doc: Add clarifications Xtensa Core ID and "Core ID" used in FreeRTOS are different
Closes IDFGH-407
See merge request espressif/esp-idf!5661
2019-08-12 15:16:51 +08:00
Angus Gratton
e8bdfe07ae
Merge branch 'feature/tls_psk_authentication' into 'master'
...
esp_tls: add psk verification mode
Closes IDFGH-992
See merge request espressif/esp-idf!5095
2019-08-12 12:45:34 +08:00
Angus Gratton
b0ef3cdc9f
Merge branch 'bugfix/check_include_dirs' into 'master'
...
CMake: Check if component include dirs are directories
See merge request espressif/esp-idf!5701
2019-08-12 12:45:11 +08:00
Angus Gratton
4fe74b8f64
freertos: Rename CORE_ID_PRO/CORE_ID_APP macros to CORE_ID_REGVAL_xxx
...
Old values remain for compatibility.
As suggested in https://github.com/espressif/esp-idf/issues/2567
2019-08-12 11:12:34 +10:00
Angus Gratton
a40e164988
doc: Add clarifications Xtensa Core ID and "Core ID" used in FreeRTOS are different
...
Closes https://github.com/espressif/esp-idf/issues/2567
2019-08-12 11:11:28 +10:00
Angus Gratton
aa3c988c17
sha: Add fault injection checks reading hash digest state
...
Vulnerability reported by LimitedResults under Espressif Bug Bounty Program.
2019-08-11 11:16:33 +10:00
Angus Gratton
caea2889c8
aes: Add fault injection checks when writing key to hardware
...
Vulnerability reported by LimitedResults under Espressif Bug Bounty Program.
2019-08-11 11:16:33 +10:00
Sagar Bijwe
b1f657fc65
wifi: Avoid recalculating PMK when esp_wifi_set_config is not called
...
Scenarios where this fix is applicable.
1) Every time the system is powered-on/restarted without calling
esp_wifi_set_config.
2) esp_wifi_init()/connect()/stop()/deinit() is called multiple
times without esp_wifi_set_config.
Closes IDFGH-1520
2019-08-09 16:28:33 +05:30
Konstantin Kondrashov
9a669bfbb9
rmt/driver: Add module reset before enabling
2019-08-09 17:09:56 +08:00
Konstantin Kondrashov
a418b603d0
pcnt/driver: Add module reset before enabling
2019-08-09 17:09:56 +08:00
Konstantin Kondrashov
5c560e0cd1
sdmmc_host/driver: Add module reset before enabling
2019-08-09 17:09:56 +08:00
Konstantin Kondrashov
437228e947
i2s/driver: Add module reset before enabling
2019-08-09 17:09:56 +08:00
Konstantin Kondrashov
d064cd485c
can/driver: Add module reset before enabling
2019-08-09 17:09:56 +08:00
Konstantin Kondrashov
c082d13075
uart/driver: Add module reset before enabling
...
This commit prevents infinite restarts caused due to an interrupt flag
was left uncleared.
Closes: https://github.com/espressif/esp-idf/issues/1981
Closes: IDF-188
2019-08-09 17:09:56 +08:00
Renz Christian Bagaporo
e3c236d2fe
cmake: fix encrypted project flash arg file generation
2019-08-09 16:35:31 +08:00
Jiang Jiang Jian
2b71eff25f
Merge branch 'bugfix/efuse_write_config' into 'master'
...
efuse: set timing configuration before writing
See merge request espressif/esp-idf!4750
2019-08-09 14:25:45 +08:00
Angus Gratton
d6b641949c
Merge branch 'bugfix/httpd_sess_close' into 'master'
...
httpd_sess_close: Check for session validity before closing
See merge request espressif/esp-idf!5705
2019-08-09 14:20:51 +08:00
Michael (XIAO Xufeng)
d850a0bd1c
esp_attr: add flag_attr to support enums used as flags
2019-08-09 13:46:32 +08:00
Michael (XIAO Xufeng)
264ffbeb14
timer_group: use the LL
2019-08-09 13:46:31 +08:00
Michael (XIAO Xufeng)
feea477023
timer_group: add LL functions for WDT
2019-08-09 13:46:30 +08:00
Michael (XIAO Xufeng)
c02981a99b
timer_group: support interrupt LL and some utility functions in ISR
2019-08-09 13:46:30 +08:00
chenjianqiang
a97fe5615f
feat(timer): refator timer group driver (partly pick)
2019-08-09 13:46:29 +08:00
Michael (XIAO Xufeng)
b413a240cb
esp_attr: support force_inline
2019-08-09 13:46:28 +08:00
Angus Gratton
cb0f724e39
Merge branch 'feature/repl_suppl_crypto_by_mbedtls' into 'master'
...
wpa_supplicant: Port more crypto functions to use mbedtls
Closes WIFI-1590
See merge request espressif/esp-idf!5684
2019-08-09 12:52:03 +08:00
Renz Christian Bagaporo
4dd2b9edb1
components: fix incorrect include dir args
2019-08-09 08:40:17 +08:00
Michael (XIAO Xufeng)
e947522f38
esp_flash: improve the comments a bit
2019-08-08 23:18:01 +08:00
Michael (XIAO Xufeng)
e5704ab1a8
esp_flash: fix the set/get write protection functions
...
Add support for get write protection support, fixed the duplicated
set_write_protection link.
All the write_protection check in the top layer are removed. The lower
levels (chip) should ensure to disable write protection before the
operation start.
2019-08-08 23:18:00 +08:00
Mahavir Jain
ab6ad844b1
mbedtls: use errno
instead of SO_ERROR
for getting socket errors
...
As per upgrade notes of lwIP v2.1.0:
socket API: according to the standard, SO_ERROR now only returns asynchronous errors.
All other/normal/synchronous errors are (and always were) available via 'errno'.
LWIP_SOCKET_SET_ERRNO has been removed - 'errno' is always set - and required!
Refer: https://www.nongnu.org/lwip/2_1_x/upgrading.html
Fixes https://github.com/espressif/esp-azure/issues/51
2019-08-08 12:17:32 +00:00
Angus Gratton
77bd32a503
Merge branch 'bugfix/libsodium_test_timeouts' into 'master'
...
test: Set timeout of libsodium ed25519_convert test to 60s
See merge request espressif/esp-idf!5552
2019-08-08 15:02:51 +08:00
Angus Gratton
c1e3e1cd9a
Merge branch 'bugfix/fix_ledc_clock_select_bug' into 'master'
...
driver(ledc): fixed ledc clock selection bug
See merge request espressif/esp-idf!3612
2019-08-08 13:56:21 +08:00
Angus Gratton
cbb45b4559
Merge branch 'bugfix/config_panic_gdbstub_build_issue' into 'master'
...
esp32_gdbstub: fix build error with esp32-2019r1 toolchain
See merge request espressif/esp-idf!5709
2019-08-08 13:53:40 +08:00
KonstantinKondrashov
24bd75955f
newlib: Fix UT - test time adjustment happens linearly
...
Obtaining accurate and adjustable time occurs closer to each other.
2019-08-08 12:38:33 +08:00
Angus Gratton
14b8ea3b87
Merge branch 'feat/sdio_slave_efuse_default_3v3' into 'master'
...
sdio_slave: updates the document about DAT2 pin, also the version value read from CCCR registers
See merge request espressif/esp-idf!4733
2019-08-08 10:41:14 +08:00
Jiang Jiang Jian
562218d4db
Merge branch 'feature/lwip_prefer_allocate_memory_in_psram' into 'master'
...
Try to allocate some memories in SPIRAM first. If failed, try to allocate in internal RAM then
See merge request espressif/esp-idf!5695
2019-08-07 21:00:14 +08:00
Michael (XIAO Xufeng)
3fd896fe64
sdio_slave: update version read from CCCR to 2.0
2019-08-07 17:10:34 +08:00
Sagar Bijwe
80a5bd8e54
wpa_supplicant: Port more crypto functions to use mbedtls
...
Use mbedtls PBKDF2 and SHA1 for faster calculations during four-way
handshake.
Closes WIFI-1590
2019-08-07 07:23:28 +00:00
Mahavir Jain
5203a15439
esp32_gdbstub: fix build error with esp32-2019r1 toolchain
...
Fixes https://github.com/espressif/esp-idf/issues/3866
2019-08-07 11:56:13 +05:30
David Cermak
f3d6a34e7d
esp_tls: enable psk verification mode, added mqtt example using psk authentication
2019-08-07 14:27:40 +10:00
Piyush Shah
c93cab858e
httpd_sess_close: Check for session validity before closing
...
If httpd_sess_trigger_close() gets called twice for the same socket,
the first httpd_sess_close() cb closes the correct socket, but the second
invocation closes the wrong socket which was just accepted and added to
the socket db. Checking for the lru counter will help identify this as the
counter is set only for requests actually served.
2019-08-06 19:31:57 +05:30
kooho
2e8c85d8ff
driver(ledc): fixed ledc clock selection bug.
2019-08-06 16:11:18 +08:00
Mahavir Jain
10c3b42f71
coap: kconfig cleanup, have component specific configuration for common options
2019-08-06 10:37:40 +05:30
Mahavir Jain
852c176a40
coap: add mbedtls in depedency list for CMake build
2019-08-06 10:37:40 +05:30
Jon Shallow
1aaec808da
Add DTLS support to libcoap using MbedTLS
...
This update supports DTLS, TLS is a future TODO
components/coap/CMakeLists.txt:
components/coap/component.mk:
Add in the new files that have to be built
Replace libcoap/src/coap_notls.c with libcoap/src/coap_mbedtls.c
components/coap/libcoap:
Update the version to include the current version for supporting MbedTLS
components/coap/port/coap_debug.c:
components/coap/port/coap_mbedtls.c:
components/coap/port/include/coap/coap_dtls.h:
New port files for DTLS
components/coap/port/include/coap_config_posix.h:
Include building with MbedTLS
examples/protocols/coap_client/README.md:
examples/protocols/coap_client/main/CMakeLists.txt:
examples/protocols/coap_client/main/Kconfig.projbuild:
examples/protocols/coap_client/main/coap_client_example_main.c:
examples/protocols/coap_client/main/component.mk:
Update CoAP client to support DTLS
examples/protocols/coap_client/main/coap_ca.pem
examples/protocols/coap_client/main/coap_client.crt
examples/protocols/coap_client/main/coap_client.key
New PKI Certs for CoAP client (copied from wpa2_enterprise example)
examples/protocols/coap_server/README.md:
examples/protocols/coap_server/main/CMakeLists.txt:
examples/protocols/coap_server/main/Kconfig.projbuild:
examples/protocols/coap_server/main/coap_server_example_main.c:
examples/protocols/coap_server/main/component.mk:
Update CoAP server to support DTLS
Change "no data" to "Hello World!" to prevent confusion
examples/protocols/coap_server/main/coap_ca.pem
examples/protocols/coap_server/main/coap_server.crt
examples/protocols/coap_server/main/coap_server.key
New PKI Certs for CoAP server (copied from wpa2_enterprise example)
Closes https://github.com/espressif/esp-idf/pull/3345
Closes https://github.com/espressif/esp-idf/issues/1379
2019-08-06 10:37:40 +05:30
Angus Gratton
39f090a4f1
Merge branch 'deprecate/spi_common_claim_macros' into 'master'
...
spi_common: remove deprecated spi_common_periph_claim macros
See merge request espressif/esp-idf!5677
2019-08-06 11:16:17 +08:00
xueyunfei
40e808c63b
Try to allocate some LWIP memories in SPIRAM first. If failed, try to allocate in internal RAM then
2019-08-06 10:23:27 +08:00
Jiang Jiang Jian
2d36e42b5f
Merge branch 'bugfix/fix_wifi_bugs_for_authmode_and_multi_ssid' into 'master'
...
wifi: fix wifi bugs for authmode and multi ssid
Closes WIFI-558, WIFI-560, WIFI-449, WIFI-567, and WIFI-597
See merge request espressif/esp-idf!5387
2019-08-05 21:18:27 +08:00
Michael (XIAO Xufeng)
26fc858ea4
spi_common: remove deprecated spi_common_periph_claim macros
2019-08-05 09:26:47 +00:00
Roland Dobai
2211039b6d
docs: Correct and extend the documentation about VFS select()
2019-08-05 11:17:43 +02:00
Roland Dobai
91ce5db172
VFS: Support concurrent VFS select calls
...
Closes https://github.com/espressif/esp-idf/issues/3392
2019-08-05 11:17:41 +02:00
Angus Gratton
7ef5fa8a0a
Merge branch 'feature/transport_support_der_certs' into 'master'
...
tcp transport ssl DER-support
See merge request espressif/esp-idf!5627
2019-08-05 09:52:08 +08:00
Angus Gratton
b23718995a
Merge branch 'bugfix/strict_prototypes' into 'master'
...
Enable strict prototypes checks
Closes IDFGH-757
See merge request espressif/esp-idf!4546
2019-08-05 09:38:39 +08:00
Tian Hao
a9dfae66ea
bugfix btdm sleep twice after wakeup request
...
This problem may cause HCI send command timeout.
When host call VHCI api to do btdm_wakeup_request, then controller
wakeup process will be handled in ISR and controller task context.
As host task priority is lower than controller task and ISR,
it will cause an incorrect behavior that before VHCI take the
rx_flow_on_semaphore, controller sleep again, then VHCI cannot take
the semaphore and has to wait the automatic wakeup.
2019-08-04 07:17:13 +00:00
Hrudaynath Dhabe
d4091f7cda
esp_http_client: Add support to check the binary length of the recieved stream and compare it with the size mentioned in the header.
...
While downloading OTA firmware, if their is a Origin Respnse Timeout or the binary is only partially downloaded, OTA failure is observed. Checking binary size can also be helpful for simple http client applications.
Closes https://github.com/espressif/esp-idf/issues/3004
2019-08-02 19:18:44 +08:00
David Cermak
25dd5e39af
esp-tls: Naming variables refering to certificates and keys in a neutral way to suggest that both PEM and DER format could be used, added comments descibing important details about using these formats
2019-08-02 09:25:16 +02:00
Henning Fleddermann
546b625433
add _der variants for esp_transport_ssl_set_(client_cert|client_key|cert_data)
...
Signed-off-by: David Cermak <cermak@espressif.com>
Merges https://github.com/espressif/esp-idf/pull/3783
2019-08-02 09:25:16 +02:00
Henning Fleddermann
73624e8560
modify comments on esp_tls_cfg, to clarify that other formats besides PEM (such as DER) might be used as well depending on mbedtls-support
...
Signed-off-by: David Cermak <cermak@espressif.com>
2019-08-02 09:25:16 +02:00
zhangyanjiao
02e5266778
modify WIFI_CONN_0101 case for wrong authmode of AP
2019-08-02 10:22:46 +08:00
zhangyanjiao
9f9d876799
wifi: fix wifi bugs for authmode and multi ssid
2019-08-02 10:22:20 +08:00
zhangyanjiao
017a60a69d
fix the wrong comment in esp_wifi_types.h
2019-08-01 12:24:08 +00:00
Anton Maklakov
ec94ee80f7
Fix a build issue with replacing init_spi_flash() in the host tests
2019-08-01 16:28:56 +07:00
Anton Maklakov
75c0066f93
Fix remaining -Wstrict-prototypes warnings
2019-08-01 16:28:56 +07:00
Anton Maklakov
1beb0869e1
NimBLE: Update submodule to fix -Wstrict-prototypes warnings
2019-08-01 16:28:56 +07:00
Michael Zimmermann
c2764f6fe8
mdns: mdns_service_remove_all doesn't take an argument
...
Merges https://github.com/espressif/esp-idf/pull/2937
2019-08-01 16:28:56 +07:00
Michael Zimmermann
d4c098f5a9
brownout: fix rtc_brownout_isr_handler signature
...
Merges https://github.com/espressif/esp-idf/pull/2937
2019-08-01 16:28:56 +07:00
Michael Zimmermann
74a459dd3d
make code conform to Wstrict-prototypes
...
Merges https://github.com/espressif/esp-idf/pull/2937
2019-08-01 16:28:56 +07:00
Anton Maklakov
afbaf74007
tools: Mass fixing of empty prototypes (for -Wstrict-prototypes)
2019-08-01 16:28:56 +07:00
Angus Gratton
4d97dacf56
Merge branch 'bugfix/fix_i2s_channels_swapped_issue' into 'master'
...
Bugfix(i2s): fixed i2s left/right channels swapped issue
Closes IDFGH-1447
See merge request espressif/esp-idf!5669
2019-08-01 16:53:37 +08:00
redchenjs
ff325e84b6
Bugfix(i2s): fixed i2s left/right channels swapped issue.
...
The right channel data is in the high position, so the I2S_TX_MSB_RIGHT & I2S_RX_MSB_RIGHT bits should be set.
Merges https://github.com/espressif/esp-idf/pull/3717
closes https://github.com/espressif/esp-idf/issues/3399
2019-07-31 17:58:23 +08:00
Mahavir Jain
15e0a32786
lwip: remove duplicate (and stale) changelog and version files
2019-07-30 16:49:53 +05:30
Ivan Grokhotkov
16b300bd7a
Merge branch 'bugfix/fix_the_bug_in_wifi_doc' into 'master'
...
docs: fix the bug in wifi doc
Closes IDFGH-1590
See merge request espressif/esp-idf!5647
2019-07-30 09:42:23 +08:00
Angus Gratton
b071fbdd81
Merge branch 'test/rtc_noinit_wdt_test' into 'master'
...
esp32: verify that RTC_NOINIT_ATTR vars are preserved after WDT reset
See merge request espressif/esp-idf!4936
2019-07-30 09:42:15 +08:00
Angus Gratton
8dbe1f024e
Merge branch 'bugfix/pthread_fixes' into 'master'
...
pthread fixes
Closes IDFGH-1437
See merge request espressif/esp-idf!5646
2019-07-30 09:41:31 +08:00
Angus Gratton
b803c7328a
Merge branch 'bugfix/btdm_some_unallocated_memory' into 'master'
...
Bugfix/btdm some unallocated memory
See merge request espressif/esp-idf!5629
2019-07-30 09:41:09 +08:00
Angus Gratton
d005d95119
Merge branch 'bugfix/gpio_intr_enable_bug' into 'master'
...
bugfix(GPIO): Fixed the GPIO interrupt enable bug
Closes IDFGH-495
See merge request espressif/esp-idf!5571
2019-07-30 09:35:42 +08:00
Angus Gratton
6fe853a2c7
Merge branch 'bugfix/ws_client_fix_static_analysis_warnings' into 'master'
...
ws_client: fix double delete issue in ws client initialization
See merge request espressif/esp-idf!5309
2019-07-29 19:25:30 +08:00
Angus Gratton
e9b77d3a69
Merge branch 'feature/move_gettimeofday_in_clock_gettime' into 'master'
...
newlib: Move _gettimeofday_r call in clock_gettime
Closes IDFGH-1525
See merge request espressif/esp-idf!5562
2019-07-29 19:25:11 +08:00
Angus Gratton
f0442e744d
Merge branch 'fix/esp_flash_compatible_with_rom' into 'master'
...
esp_flash: fix a compatibility issue working with the ROM
See merge request espressif/esp-idf!5462
2019-07-29 19:18:20 +08:00
kooho
64f81aefae
bugfix(GPIO): Fixed the bug that GPIO enables interrupts on one core,
...
but registers interrupt service routines on another core
closes https://github.com/espressif/esp-idf/issues/2808
closes https://github.com/espressif/esp-idf/issues/2845
2019-07-29 11:09:07 +00:00
Ivan Grokhotkov
022223f570
Merge branch 'feat/sdmmc_io_cis_parse' into 'master'
...
sdmmc_io: support to print CIS information
See merge request espressif/esp-idf!5515
2019-07-29 19:05:30 +08:00
Ivan Grokhotkov
b4e850a4b1
Merge branch 'bugfix/make_link_libc_psram' into 'master'
...
esp32: also add -mfix-esp32-psram-cache-issue to LDFLAGS
See merge request espressif/esp-idf!5643
2019-07-29 19:01:12 +08:00
Ivan Grokhotkov
b1bb90a596
Merge branch 'bugfix/partition_tables_update_note' into 'master'
...
global: update note in the partition tables
See merge request espressif/esp-idf!5636
2019-07-29 19:00:44 +08:00
Prasad Alatkar
1f0d682406
NimBLE: Update submodule to fix bug in delete bond procedure
...
- Fixes bug in `get_nvs_db_attribute` related to getting correct index while
deleting bond in NVS.
- MR raised on esp-nimble branch: https://gitlab.espressif.cn:6688/espressif/esp-nimble/merge_requests/12
2019-07-29 19:00:21 +08:00