David Cermak
f605fdd632
asio: Use internal ssl context and engine impl
...
Implement asio-ssl layer with three classes in asio::ssl::mbedtls:
* context -- replaces SSL_CTX, used mainly as a container to options,
certs, keys
* engine -- replaces SSL, implements the actual mbedtls operations
* bio -- implements openssl BIO specifically tailered to mbedtls and
its asio usage
Further updates:
* asio: Used shared_ptr<> for bio pairs
* asio: Add error checks to mbedtls-bio
* asio: Address potential ssl-context ownership issue
* asio: Address potential bio-engine ownership issue
* Original commit: espressif/esp-idf@d823106aa6
2022-06-22 14:18:18 +04:00
Roland Dobai
abbc8d9c5a
Build & config: Remove leftover files from the unsupported "make" build system
...
* Original commit: espressif/esp-idf@766aa57084
2022-06-22 14:18:18 +04:00
David Cermak
a0297743dd
openssl: Add deprecation warning to ssl.h
...
OpenSSL component will be discontinued in ESP-IDF v5.x. The only official TLS API will be esp-tls
Add docs warning about deprecation in v5.x
Removed all examples demonstrating usage of openssl in IDF
* Original commit: espressif/esp-idf@cfc001870c
2022-06-22 14:18:18 +04:00
KonstantinKondrashov
3bcc46276a
example_tests: Deletes usage esp32c3 ECO0 in CI (by default ECO3)
...
* Original commit: espressif/esp-idf@709abee65c
2022-06-22 14:18:18 +04:00
Marius Vikhammer
f0d0698582
docs: update asio docs with new example paths after refactor.
...
* Original commit: espressif/esp-idf@37d549916b
2022-06-22 14:18:18 +04:00
Suren Gabrielyan
91262baede
examples: Asio tests consolidation to use loopback interface
...
Closes IDF-3072
* Original commit: espressif/esp-idf@a06357ab62
2022-06-22 14:18:18 +04:00
Chen Yudong
cb2375827b
CI: fix connection failures in asio example tests
...
* Original commit: espressif/esp-idf@b3b71bc8ab
2022-06-22 14:18:17 +04:00
Angus Gratton
cc0f2b3cf0
asio coap: If LWIP IPV6 is disabled, automatically don't build asio & coap
...
- Removes need to manually exclude these components as shown at
https://github.com/espressif/esp-idf/issues/3781#issuecomment-825742378
- Hide the config for these components if IPV6 is disabled
- The components are still included in the build, but with no source
files
* Original commit: espressif/esp-idf@e305f29382
2022-06-22 14:18:17 +04:00
Jan Brudný
47d57a5b14
asio: update copyright notice
...
* Original commit: espressif/esp-idf@2d0895e9a9
2022-06-22 14:18:17 +04:00
Angus Gratton
278b7bef3c
partition_table: Add a "single factory app (large)" option for 1.5MB app size
...
Needed to build some examples in their default configurations (especially
ESP32-C3). Wasn't noticed until the CI checks for partition size were added.
* Original commit: espressif/esp-idf@920edd4e73
2022-06-22 14:18:17 +04:00
Shubham Kulkarni
a165452ca1
Split example_tests with Example_WIFI tag group into Example_OTA and Example_Protocols
...
* Original commit: espressif/esp-idf@0a395134d4
2022-06-22 14:18:17 +04:00
KonstantinKondrashov
55f95fb790
example_tests: CI uses ECO0 for esp32c3 tests
...
* Original commit: espressif/esp-idf@ec4de4fe5c
2022-06-22 14:18:17 +04:00
Marius Vikhammer
9b76388163
ci: run Example_GENERIC for C3
...
Add support for running example_GENERIC tests for C3 on label.
Fix examples that fail.
* Original commit: espressif/esp-idf@c85d949c1f
2022-06-22 14:18:17 +04:00
Fu Hanxi
0d1d73eb35
style: format python files with isort and double-quote-string-fixer
...
* Original commit: espressif/esp-idf@0146f258d7
2022-06-22 14:18:17 +04:00
He Yin Ling
88d3eda156
test: remove fake binary size check in example test:
...
the binary size check in example test was removed long time ago. Now we
have updated ttfw_idf to raise exception when performance standard is
not found. These fake performance check will be regarded as error.
Remove them now.
* Original commit: espressif/esp-idf@a908174c06
2022-06-22 14:18:17 +04:00
Angus Gratton
622a360e97
Whitespace: Automated whitespace fixes (large commit)
...
Apply the pre-commit hook whitespace fixes to all files in the repo.
(Line endings, blank lines at end of file, trailing whitespace)
* Original commit: espressif/esp-idf@66fb5a29bb
2022-06-22 14:18:17 +04:00
Angus Gratton
4358c3ceab
cmake: Apply cmakelint fixes
...
* Original commit: espressif/esp-idf@e82eac4354
2022-06-22 14:18:17 +04:00
David Čermák
f00c3be139
asio: make the example code conform to Espressif C++ standards
...
* Original commit: espressif/esp-idf@b2150f86a5
2022-06-22 14:18:17 +04:00
David Cermak
c05558ba28
asio: option to use wolfSSL as TLS stack for ASIO
...
Plus other minor update, make openssl aware of current modes (SSL_set_mode)
Update coding style in examples and tests, including copyright notices
* Original commit: espressif/esp-idf@1c8171c3e8
2022-06-22 14:18:17 +04:00
David Cermak
c0c1a65598
examples: asio ssl example demonstrating both server and client
...
By default it uses simple client connecting to https address. It is
possible to configure both server and client. As for example test the
configuration of both server and client connecting to each other on
* Original commit: espressif/esp-idf@213bbe51fc
2022-06-22 14:18:17 +04:00
David Cermak
dab12309e2
asio: Basic SSL/TLS support in asio port for ESP platform
...
This port employs IDF port of OpenSSL for most common features, others
are discouraged or not supported. The port also introduces several stubs
for OpenSSL functions which ASIO needs to get compiled and linked.
Upstream ASIO supports WolfSSL as SSL/TLS stack, as well, which is
another option for SSL support in ASIO on ESP platform.
* Original commit: espressif/esp-idf@9459c0dd43
2022-06-22 14:18:17 +04:00
Roland Dobai
789670e8c5
Add multi-target support for performance tests
...
* Original commit: espressif/esp-idf@15884eccf2
2022-06-22 14:18:17 +04:00
morris
131613c5cc
doc: fix broken example links
...
* Original commit: espressif/esp-idf@f2cb6bd4b6
2022-06-22 14:18:17 +04:00
David Cermak
919091766d
asio: updated ASIO port to use latest asio and esp-idf features
...
closes https://github.com/espressif/esp-idf/issues/4296
* Original commit: espressif/esp-idf@13d603e486
2022-06-22 14:18:17 +04:00
He Yin Ling
4e4ab0908d
test: update example and unit tests with new import roles:
...
tiny_test_fw is a python package now. import it using normal way.
* Original commit: espressif/esp-idf@c906e2afee
2022-06-22 14:18:17 +04:00
David Cermak
54e3a85983
esp_netif and examples: using wifi driver handle, update examples and tests to pass the CI
...
* Original commit: espressif/esp-idf@3a19bf055d
2022-06-22 14:18:17 +04:00
David Cermak
98dfb691b6
asio: fix asio test code to start the test after ip address received from common example code
...
Previously set to wait until IP address got from tcpip_adapter, but since common example connect code blocks until both IP4 and IPv6 address received it could happen that test code might have started connection to the ASIO counter-part while ESP32 still waiting for IPv6 address
* Original commit: espressif/esp-idf@208feef3c9
2022-06-22 14:18:17 +04:00
Marius Vikhammer
ff7d214f9c
ASIO: fixed undefined ref to atomic functions and enabled examples for CI (esp32s2beta)
...
Implemented the atomic functions needed to compile and link the asio examples on esp32s2beta.
* Original commit: espressif/esp-idf@845003a1c3
2022-06-22 14:18:17 +04:00
Michael (XIAO Xufeng)
ee6dbbfeaa
ci: limit example test to ESP32s
...
* Original commit: espressif/esp-idf@63329b169b
2022-06-22 14:18:17 +04:00
Anton Maklakov
a14331ad01
tools: Mass fixing of empty prototypes (for -Wstrict-prototypes)
...
* Original commit: espressif/esp-idf@afbaf74007
2022-06-22 14:18:17 +04:00
Mahavir Jain
f3754a3683
examples: change default build instructions in docs to CMake
...
* Original commit: espressif/esp-idf@e7dba7d7bc
2022-06-22 14:18:17 +04:00
Angus Gratton
c1176ccdcc
build system: Use CMake-based build system as default when describing commands
...
* Original commit: espressif/esp-idf@47bbb107a8
2022-06-22 14:18:17 +04:00
Renz Christian Bagaporo
df51e60ac0
examples: use new component registration api
...
* Original commit: espressif/esp-idf@6771eead80
2022-06-22 14:18:17 +04:00
Renz Christian Bagaporo
9e83b1eb0e
components: use new component registration api
...
* Original commit: espressif/esp-idf@9eccd7c082
2022-06-22 14:18:17 +04:00
Michael (XIAO Xufeng)
f82cbfde7b
ci: support to build esp32s2beta simple examples
...
* Original commit: espressif/esp-idf@25ab8380c8
2022-06-22 14:18:17 +04:00
Roland Dobai
96d13293ab
Rename Kconfig options (components/esp32)
...
* Original commit: espressif/esp-idf@0ae53691ba
2022-06-22 14:18:17 +04:00
Roland Dobai
3b49d1f559
Rename Kconfig options (root)
...
* Original commit: espressif/esp-idf@c5000c83d2
2022-06-22 14:18:17 +04:00
Ivan Grokhotkov
3e7591e92a
examples/protocols/asio: use common network component
...
* Original commit: espressif/esp-idf@aa4a7804ec
2022-06-22 14:18:17 +04:00
Roland Dobai
de830e51d4
Correct Kconfigs according to the coding style
...
* Original commit: espressif/esp-idf@37126d3451
2022-06-22 14:18:17 +04:00
Roland Dobai
21c0878f0e
examples: Fix Python coding style
...
* Original commit: espressif/esp-idf@57c54f96f1
2022-06-22 14:18:17 +04:00
Roland Dobai
a96c890f97
Fix Python 3 compatibility issues
...
* Original commit: espressif/esp-idf@9daf51e6be
2022-06-22 14:18:17 +04:00
David Cermak
86d107635b
asio: examples renamed to have consistent binary names when build in make and CMake
...
* Original commit: espressif/esp-idf@9784df1c3a
2022-06-22 14:18:17 +04:00
Renz Christian Bagaporo
57672d5add
cmake: make main a component again
...
* Original commit: espressif/esp-idf@d9939cedd9
2022-06-22 14:18:17 +04:00
Angus Gratton
e8ea8786d2
cmake: Add missing example CMakeLists.txt files, CI check all examples have both
...
* Original commit: espressif/esp-idf@5689e446dc
2022-06-22 14:18:17 +04:00
Angus Gratton
142200c7ca
Merge branch 'master' into feature/cmake
...
* Original commit: espressif/esp-idf@ff2404a272
2022-06-22 14:18:17 +04:00
David Cermak
6c47cfe30a
asio: added socket timeout for example tests
...
* Original commit: espressif/esp-idf@c0186858ad
2022-06-22 14:18:17 +04:00
Angus Gratton
0ae8c3ca33
asio example tests: Increase timeout for DHCP lease to 30s
...
Covers time to connect to WiFi and negotiate lease,
may be more than 5-10s on some busy APs
* Original commit: espressif/esp-idf@8b35d8ef25
2022-06-22 14:18:17 +04:00
David Cermak
5472d5c52f
asio: initial idf port of asio library without ssl
...
* Original commit: espressif/esp-idf@1ef13c524c
2022-06-22 14:18:17 +04:00
david-cermak
51a50db0fd
Merge pull request #61 from gabsuren/feature/common_component_esp_dependency
...
protocol_examples_common: Updated to explicitly use esp-eth dependency if needed
2022-06-21 18:47:35 +02:00
gabsuren
e1660a1806
protocol_examples_common: Updated to explicitely use esp-eth dependency if needed
...
* Original commit: espressif/esp-idf@5e19b9c951
2022-06-21 20:39:46 +04:00