Commit Graph
100 Commits
Author SHA1 Message Date
Harshit Malpani d85d60b76c fix: fix esp_http_client_example build failure
Fixed the build failure of esp_http_client_example for ESP32-C6 when
build with Wi-Fi enabled
2024-01-24 10:25:11 +05:30
Harshit Malpani bc901c0a3a fix(esp_http_client): Fix http digest auth without qop
Closes https://github.com/espressif/esp-idf/issues/12962
2024-01-23 12:22:35 +05:30
Harshit Malpani 1d81af367d feat: support HTTP_ANY method in esp_http_server
Closes https://github.com/espressif/esp-idf/issues/12794
2024-01-15 14:32:06 +05:30
Harshit Malpani 18947904bc docs: Add documentation for idf.py read-otadata 2024-01-12 18:58:14 +05:30
Harshit Malpani e0fdae294b Merge branch 'feat/update_cjson_v1_7_17' into 'master'
feat(cJSON): update submodule to v1.7.17

See merge request espressif/esp-idf!28330
2024-01-09 13:08:30 +08:00
Harshit Malpani 43235e57f9 feat(cjson): update submodule to v1.7.17
Changelog: https://github.com/DaveGamble/cJSON/releases/tag/v1.7.17
2024-01-08 13:14:13 +05:30
Harshit Malpani e636c680a5 fix: Check memory allocation failures in protocol examples 2024-01-03 15:23:53 +05:30
Harshit Malpani 102fe3a522 fix(esp_http_client): Add test case in esp_http_client example
Add a test case in esp_http_client example to test HTTP_METHOD_HEAD
with async mode
2023-12-22 16:20:24 +05:30
Harshit Malpani ae71e1ddb9 fix(esp_http_server): Add support for custom HTTP status codes
Closes https://github.com/espressif/esp-idf/issues/12399
2023-12-20 16:59:38 +05:30
Harshit Malpani 8dcdcc5831 feat: Update esp_http_client example
Added test case in esp_http_client example to test digest auth
with SHA-256 algorithm
2023-12-15 11:32:57 +05:30
Harshit Malpani 803ad150cf feat(esp_http_client): SHA256 support in digest auth
Added support for using SHA256 algorithm while calculating
digest auth in HTTP client connection

Closes https://github.com/espressif/esp-idf/issues/12383
2023-12-15 11:32:57 +05:30
Harshit Malpani 3e22e0b750 Merge branch 'contrib/github_pr_12796' into 'master'
fix(esp_http_client): correct the typo in the error log string (GitHub PR)

Closes IDFGH-11686

See merge request espressif/esp-idf!27904
2023-12-14 20:14:21 +08:00
Harshit Malpani 760e92946c Merge branch 'contrib/github_pr_12500' into 'master'
change(components/esp_http_server): add task_caps configuration (GitHub PR)

Closes IDFGH-11351

See merge request espressif/esp-idf!27621
2023-12-14 18:30:41 +08:00
Harshit Malpani bbbede07d0 fix(partition_table): Check partition size for type APP
The size of partition of type APP should be multiple of 4 KB. Partition
generation tool now make this as a mandatory requirement. This is
minimum flash erase size. If the size of the APP type partition is not
aligned to 4 KB then the last erase operation could go beyond the allocated
partition and hence may fail. This issue would only be observed when the
firmware size grows very close to the allocated partition size, and hence
causing the OTA update to fail.

For already deployed devices on-field with the size of APP partition not
aligned to flash sector boundary, it is best to ensure that firmware
size always remains within the lower 4 KB boundary of the total
allocated space. While migrating to ESP-IDF 5.3 release, partition table
for an existing project can be adjusted accordingly for the build to
succeed.

Found during discussion in https://github.com/espressif/esp-idf/pull/12460
2023-12-11 10:14:57 +05:30
Harshit Malpani 1e8261eabf Merge branch 'fix/wrong_order_of_includes_in_esp_tls' into 'master'
fix(esp-tls): Fix wrong order of includes in esp_tls.h

Closes IDFGH-11403

See merge request espressif/esp-idf!27302
2023-12-04 19:02:11 +08:00
Harshit Malpani 9e8761880b fix(esp-tls): Add headers in esp_tls_errors.h header file
Closes https://github.com/espressif/esp-idf/issues/12541
2023-12-01 14:15:43 +05:30
Harshit Malpani 3e0700bfda Merge branch 'bugfix/return_code_of_ota_finish_api' into 'master'
fix(esp_https_ota): fix return code of esp_https_ota_finish API

Closes IDFGH-11510

See merge request espressif/esp-idf!27296
2023-11-22 15:48:39 +08:00
Harshit Malpani 85e4220250 fix(esp_https_ota): fix return code of esp_https_ota_finish API
Closes https://github.com/espressif/esp-idf/issues/12635
2023-11-21 14:49:21 +05:30
Harshit Malpani c67dac7225 docs: Add documentation for using TLS v1.2 and v1.3 simultaneously 2023-11-10 16:37:39 +08:00
Harshit Malpani 61d4775027 fix(esp_http_client): Fix esp_http_client async mode
Closes https://github.com/espressif/esp-idf/issues/12358
2023-11-06 13:13:15 +05:30
Harshit Malpani 2da0b61374 fix: Update https_mbedtls example to fix TLS v1.2 connection 2023-10-23 16:23:18 +05:30
Harshit Malpani 27681a5073 fix(esp-tls): Use TLS 1.2 and TLS 1.3 simultaneously
This commit fixes the issue with TLS 1.2 connection when TLS 1.3 is
enabled in config.
2023-10-23 16:23:10 +05:30
Harshit Malpani 1df186d4e1 feat: Add API to verify the bootloader and app image
Added an API to verify the bootloader and app image before revoking the key in Secure Boot V2.
This will help in preventing the device to be bricked if the bootloader/application cannot be
verified by any other keys in efuse
2023-10-12 14:53:57 +05:30
Harshit Malpani 2120d8312f docs: Add documentation for using ECDSA peripheral with TLS 2023-09-27 16:27:43 +05:30
Harshit Malpani 5d9ebd2473 Merge branch 'bugfix/fix_condition_to_verify_when_no_SB' into 'master'
fix(bootloader_support): Fix condition for checking signature in the application

See merge request espressif/esp-idf!26026
2023-09-26 14:38:08 +08:00
Harshit Malpani d3d15fb53f feat(http_parser): Add sbom manifest file 2023-09-25 16:09:32 +05:30
Harshit Malpani 04ac8e43db fix(esp_http_client): Call event_handler after header value is received 2023-09-25 12:27:54 +05:30
Harshit Malpani 96a8316e71 feat(esp_http_client): Add API to set auth data
This new API can be used to set the authentication data in the client context
when the auth data is received in the custom header

Closes: https://github.com/espressif/esp-idf/pull/12131
2023-09-25 12:27:53 +05:30
Harshit Malpani 7d98bdd495 feat: Add test app to verify SECURE_SIGNED_ON_UPDATE_NO_SECURE_BOOT
Add a test app to verify the working of the application when
SECURE_SIGNED_ON_UPDATE_NO_SECURE_BOOT is selected in the menuconfig
and the application is not signed
2023-09-25 12:02:58 +05:30
Harshit Malpani 7c2df01af2 fix(bootloader): Update kconfig option 2023-09-25 12:02:58 +05:30
Harshit Malpani c19e1b8f72 fix(bootloader_support): Fix condition for SECURE_SIGNED_ON_UPDATE_NO_SECURE_BOOT
Fix the condition to verify the image when SECURE_SIGNED_APPS_ECDSA_V2_SCHEME and
SECURE_SIGNED_ON_UPDATE_NO_SECURE_BOOT are selected.
2023-09-25 12:02:58 +05:30
Harshit Malpani 0798691bf0 fix: Fix protocols example to build without setting target
Protocol examples used to raise an error if the target was not set
and `idf.py build` command was used. This commit fix this error
and when IDF_TARGET is not set, ESP32 is selected as default target
2023-09-20 17:50:16 +05:30
Harshit Malpani 692e1a9e61 feat: ECDSA peripheral while performing http connection with mutual auth 2023-09-08 12:22:41 +05:30
Harshit Malpani 4c5a7de6a6 feat(mbedtls): Update to release/v3.4.1 2023-08-16 11:40:31 +05:30
Harshit Malpani dd6229e5cb ci: Add ota_example test with TLS 1.3 2023-08-16 11:26:59 +05:30
Harshit Malpani 11715c5caf fix(esp-tls): Retry reads if using session tickets with TLS 1.3
Fixed the error that occurred while performing OTA upgrades over
TLS 1.3 connection. After handshake is completed, post-handshake message
is received and internal state is changed. While performing mbedtls_ssl_read(),
it checks handshake state and if it is not MBEDTLS_SSL_HANDSHAKE_OVER,
mbedtls_ssl_handshake is called again.
2023-08-16 11:26:58 +05:30
Harshit Malpani 8d95e45c05 fix: nitpick in esp_http_client 2023-08-02 13:48:14 +05:30
Harshit Malpani 778bdbd99f feat: Update cJSON version to v1.7.16
Changelog: https://github.com/DaveGamble/cJSON/releases/tag/v1.7.16
2023-07-28 16:45:00 +05:30
Harshit Malpani 7645723127 fix(ci): update HTTP client example tests runner assignment
HTTP client example tests now connect with locally hosted httpbin service
for more stable results across multiple runs
2023-07-21 10:55:25 +05:30
Harshit Malpani 8507b3ba1b fix: Add more ciphersuites in https_request example
MBEDTLS_TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 ciphersuite support
seems to be removed from howsmyssl.com. Add more ciphersuites in
server_supported_ciphersuites in https_request example to fix failures
while connecting to howsmyssl.
2023-07-17 11:08:32 +05:30
Harshit Malpani 941eb4e61e feat: Made read_otadata() API public
Updated the read_otadata() API name to bootloader_common_read_otadata() and made the API public.

Closes https://github.com/espressif/esp-idf/issues/11603
2023-07-06 11:40:49 +05:30
Harshit Malpani c24d012808 remove(http2_request): Move http2_request example to idf-extra-components repository
Related: https://github.com/espressif/idf-extra-components/pull/193/
2023-07-03 17:46:16 +05:30
Harshit Malpani d9e8aca7ee remove(coap)!: Move CoAP examples to idf-extra-components repository
Related:
https://github.com/espressif/idf-extra-components/pull/188
2023-06-27 11:16:21 +05:30
Harshit Malpani b9caa324bc examples: pre_encrypted_ota: update to newer API from esp_encrypted_img component
The members of the esp_decrypt_cfg_t configuration structure have been updated to correctly
reflect that we are using RSA private key member for the decryption purpose. Earlier their names were
incorrect. This old names have been marked as deprecated for IDF 5.2 release. This change can be viewed
at https://github.com/espressif/idf-extra-components/pull/187 and its part of esp_encrypted_img
component version 2.0.4

This commit updated to newer API usage from esp_encrypted_img component v2.0.4 for
pre_encrypted_ota example.
2023-06-23 21:04:41 +05:30
Harshit Malpani 20ed23bcd0 CI: fix esp_http_client example failures in CI. Timeout was observed in the logs while performing HTTP requests. Changing the endpoint when testing in CI 2023-06-23 10:32:20 +05:30
Harshit Malpani 44e88792de Add ESP32-H2 chip id in esp_chip_id_t enum in esp_app_format.h header file 2023-05-30 15:19:21 +05:30
Harshit Malpani af06168328 Merge branch 'contrib/pr_11147' into 'master'
Fix to allow streaming of PUT data in the HTTP_EVENT_HEADERS_SENT callback (GitHub PR)

Closes IDFGH-9813

See merge request espressif/esp-idf!23794
2023-05-19 17:14:43 +08:00
Harshit Malpani 47740e3da5 Add esp32c6 in supported target for ota examples 2023-04-28 10:57:33 +05:30
Harshit Malpani 0c8db529cb Add ESP32-C6 in supported targets for wifi_prov_mgr example 2023-04-28 10:57:32 +05:30
Harshit Malpani 7f683f0996 Remove nvs_flash.h from protocols/linux_stubs 2023-03-31 16:42:06 +05:30
Harshit Malpani 345e38a3f0 Update http_server/simple example to build for Linux target 2023-03-31 16:42:06 +05:30
Harshit Malpani 7c68b67295 esp_http_server: Update to support build for Linux 2023-03-31 16:42:05 +05:30
Harshit Malpani 2910050060 docs: Update Protocols & Provisioning sections for H2 2023-03-30 18:00:12 +05:30
Harshit Malpani fac832f2bb Merge branch 'ci/fix_esp_http_client_linux_high_failure_rate' into 'master'
fix esp_http_client_linux high failures in CI

See merge request espressif/esp-idf!22810
2023-03-23 21:55:16 +08:00
Harshit Malpani 6ca69c45d4 fix esp_http_client_linux high failures in CI. Only build the esp_http_client for Linux and do not run test in CI 2023-03-23 14:34:54 +05:30
Harshit Malpani 0cc243a8cc esp_http_client: remove dependency of esp_stubs from esp_http_client. Add esp_event stubs in linux component 2023-03-15 11:48:11 +05:30
Harshit Malpani 674fd8feb8 esp_http_client: Add support for esp_events 2023-03-15 11:48:11 +05:30
Harshit Malpani 866e6b0d6b esp-tls: Fix esp-tls component to resolve esp_http_client example failure for Linux target.
esp_http_client does not use lwip component when building for linux target. Using lwip configs directly in esp-tls caused the test failures
2023-03-08 14:56:04 +05:30
Harshit Malpani ae403c6210 Add test for Linux in pytest_esp_http_client.py 2023-02-27 15:12:15 +05:30
Harshit Malpani af686f2eed tcp_client: fix missing header file 2023-02-27 15:12:15 +05:30
Harshit Malpani 34705c0cc4 fix esp_http_client_example to build for Linux target. Made protocol_examples_common compatible for Linux target 2023-02-27 15:12:14 +05:30
Harshit Malpani 214627f14b mbedtls: Keep CONFIG_MBEDTLS_DYNAMIC_BUFFER disabled for Linux target 2023-02-27 15:12:14 +05:30
Harshit Malpani 5388c0c2e7 app_update: Remove Wno-format compile option for test app 2023-02-07 15:26:27 +00:00
Harshit Malpani a176bff402 Merge branch 'bugfix/fix_return_value_in_httpd_socket_apis' into 'master'
esp_http_server: fix return values for `httpd_socket_send()` and `httpd_socket_recv()` APIs

Closes IDFGH-9275

See merge request espressif/esp-idf!22168
2023-02-01 14:00:51 +08:00
Harshit Malpani e1e46e5dae esp_http_server: fix return values for httpd_socket_send() and httpd_socket_recv() APIs
Closes https://github.com/espressif/esp-idf/issues/10658
2023-01-31 11:29:49 +05:30
Harshit Malpani 928c5e84d9 example: remove CBOR example from IDF.
CBOR example has been moved to https://github.com/espressif/idf-extra-components/tree/master/cbor/examples/cbor
2023-01-30 16:58:32 +05:30
Harshit Malpani dd490f7915 esp_http_client example: fix potential buffer overflow while copying data recieved in HTTP response
Closes https://github.com/espressif/esp-idf/issues/10436
2023-01-20 15:05:41 +05:30
Harshit Malpani a1e9a87e69 Merge branch 'bugfix/fix_ESP_LOG_to_debug' into 'master'
esp_http_client: fix debug log from LOGI to LOGD

Closes IDFGH-8892

See merge request espressif/esp-idf!22011
2023-01-13 15:51:23 +08:00
Harshit Malpani 3152fba654 esp_http_client: fix coverity issue. free auth_str before going out of scope 2023-01-11 16:57:04 +05:30
Harshit Malpani 6e92edd848 esp_http_client: fix debug log from LOGI to LOGD
Closes https://github.com/espressif/esp-idf/issues/10313
2023-01-11 15:55:52 +05:30
Harshit Malpani 4673556691 tcp_client: Remove components dir from tcp_client example and use esp_stubs from protocols/linux_stubs 2023-01-04 11:20:52 +05:30
Harshit Malpani 49ce5ada76 ci: Fix ci failures for target esp32c6 2023-01-04 11:20:52 +05:30
Harshit Malpani 5c728e94a7 Update esp_http_client example to build for linux target 2023-01-04 11:20:43 +05:30
Harshit Malpani e215ede439 mbedtls: Add support to build for linux target 2023-01-04 11:17:29 +05:30
Harshit Malpani 0635dc36c1 tcp_transport: Update tcp_transport to support linux build 2023-01-04 11:17:29 +05:30
Harshit Malpani 68ded2c350 esp_http_client: fix -Werror-format compile errors for linux target 2023-01-04 11:17:28 +05:30
Harshit Malpani 1c77e13d35 esp_http_client: Update to support build for linux 2023-01-04 11:17:28 +05:30
Harshit Malpani 43e4383bb7 esp-tls: fix build error without -Wno-format compile flag when building for Linux target 2023-01-04 11:17:27 +05:30
Harshit Malpani aefd3b0aec esp-tls: update esp-tls to support linux build 2023-01-04 11:17:27 +05:30
Harshit Malpani a3c7905dc1 linux: Add esp_linux_helper.h header file 2023-01-04 11:17:18 +05:30
Harshit Malpani 5cf26f61c0 Merge branch 'bugfix/protocol_components_no_format_cflag' into 'master'
Remove "-Wno-format" from protocol example specific components

See merge request espressif/esp-idf!21734
2022-12-22 18:54:48 +08:00
Harshit Malpani 0885d8542d esp_http_server: Added support for esp_events 2022-12-19 17:33:37 +05:30
Harshit Malpani 89a56392e3 esp_http_server: fix wrong context pointer in httpd_req_cleanup function
Added example which fails without the fix

Closes https://github.com/espressif/esp-idf/issues/10265
2022-12-16 14:40:37 +05:30
Harshit Malpani 45bcf572c2 docs: Update esp_https_ota docs to have information about OTA events 2022-12-16 10:26:15 +05:30
Harshit Malpani 6de9e42122 esp_http_client: Add feature to cancel an HTTP request
Closes: https://github.com/espressif/esp-idf/issues/9892
2022-12-02 11:36:28 +05:30
Harshit Malpani 295507bc1b esp-tls: use gettimeofday() instead of xTaskGetTickCount() 2022-11-29 11:04:54 +05:30
Harshit Malpani 3276054810 Merge branch 'feature/upgrade_components_version' into 'master'
Feature/upgrade components version

Closes IDF-6192

See merge request espressif/esp-idf!20965
2022-11-11 18:37:30 +08:00
Harshit Malpani a80dfe85bc esp_https_ota: Send data to event handler 2022-11-11 11:44:17 +05:30
Harshit Malpani 5ff6dbba85 cbor: Update cbor component version in idf_component.yml file in example 2022-11-09 18:03:26 +05:30
Harshit Malpani 784089bf09 esp_https_ota: Added support for esp_events 2022-11-09 12:30:50 +05:30
Harshit Malpani 22f3db0189 ci: fix https_x509 example 2022-11-02 14:57:14 +05:30
Harshit Malpani 9b07007efb wifi_provisioning: fix error codes for wifi connect retry
Closes: https://github.com/espressif/esp-idf/issues/9399
2022-10-12 12:10:21 +05:30
Harshit Malpani 8fba04638b espcoredump: Add support for esp32c2
This commit puts some code under SOC_RTC_MEM_SUPPORTED. This enables use of coredump in targets with no RTC memory support.
2022-09-28 20:41:00 +05:30
Harshit Malpani a3fd6d1070 esp_http_server: Add linger in httpd_config_t
Closes: https://github.com/espressif/esp-idf/issues/9514
2022-09-22 10:11:50 +05:30
Harshit Malpani c351548ca5 Update pytest example for https_request to erase flash before start of test 2022-09-19 12:04:09 +05:30
Harshit Malpani eb47729301 example: Updated https_request example to fail when time is not synced.
Also added additional server for syncing time
2022-09-19 12:04:09 +05:30
Harshit Malpani d78fddd81a mbedtls: fix custom certificate bundle test case 2022-09-14 14:20:29 +05:30
Harshit Malpani 61fb0c1d2d unit_test: remove redundant component from unit test app config 2022-09-06 14:07:52 +05:30
Harshit Malpani 1c92feae38 esp_https_ota: fix bug where http_client_init_cb is called after esp_http_client_perform() instead of before.
Closes https://github.com/espressif/esp-idf/issues/9581
2022-09-01 12:04:40 +05:30
Harshit Malpani cae004a815 ci: Migrate esp_http_server unit tests from unit-test-app to component-test-app 2022-08-25 03:43:46 +00:00