mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
d823106aa6
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
37 lines
1.4 KiB
Plaintext
37 lines
1.4 KiB
Plaintext
menu "ESP-ASIO"
|
|
visible if LWIP_IPV6
|
|
|
|
config ASIO_SSL_SUPPORT
|
|
bool "Enable SSL/TLS support of ASIO"
|
|
default n
|
|
help
|
|
Enable support for basic SSL/TLS features, available for mbedTLS/OpenSSL
|
|
as well as wolfSSL TLS library.
|
|
|
|
choice ASIO_SSL_LIBRARY_CHOICE
|
|
prompt "Choose SSL/TLS library for ESP-TLS (See help for more Info)"
|
|
default ASIO_USE_ESP_OPENSSL
|
|
depends on ASIO_SSL_SUPPORT
|
|
help
|
|
The ASIO support multiple backend TLS libraries. Currently the mbedTLS with a thin ESP-OpenSSL
|
|
port layer (default choice) and WolfSSL are supported.
|
|
Different TLS libraries may support different features and have different resource
|
|
usage. Consult the ESP-TLS documentation in ESP-IDF Programming guide for more details.
|
|
config ASIO_USE_ESP_OPENSSL
|
|
bool "esp-openssl"
|
|
config ASIO_USE_ESP_WOLFSSL
|
|
depends on TLS_STACK_WOLFSSL
|
|
bool "wolfSSL (License info in wolfSSL directory README)"
|
|
endchoice
|
|
|
|
config ASIO_SSL_BIO_SIZE
|
|
int "Size of BIO object"
|
|
default 1024
|
|
depends on ASIO_SSL_SUPPORT
|
|
help
|
|
Size in bytes of SSL-BIO implementation.
|
|
Reducing the BIO size saves more RAM, but may slow down input output operations due to
|
|
fragmentation.
|
|
|
|
endmenu
|