Skip to content

Commit

Permalink
Add a variant with TLS-server support. (#60)
Browse files Browse the repository at this point in the history
Co-authored-by: Kasper Lund <kasper@toit.io>
  • Loading branch information
floitsch and kasperl authored Aug 6, 2024
1 parent 3bbe06a commit 8dc4b81
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions variants/esp32-tls-server/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# ESP32-TLS-SERVER

A variant of the ESP32 envelope that enables TLS server support, so
running an HTTPS server on the ESP32 is possible.
10 changes: 10 additions & 0 deletions variants/esp32-tls-server/sdkconfig.defaults.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
--- toit/toolchains/esp32/sdkconfig.defaults
+++ synthesized/esp32-tls-server/sdkconfig.defaults
@@ -63,7 +63,6 @@
CONFIG_MBEDTLS_SSL_OUT_CONTENT_LEN=3700
CONFIG_MBEDTLS_X509_TRUSTED_CERT_CALLBACK=y
# CONFIG_MBEDTLS_HARDWARE_MPI is not set
-CONFIG_MBEDTLS_TLS_CLIENT_ONLY=y
CONFIG_MBEDTLS_POLY1305_C=y
CONFIG_MBEDTLS_CHACHA20_C=y
CONFIG_MBEDTLS_CHACHAPOLY_C=y

0 comments on commit 8dc4b81

Please sign in to comment.