Skip to content

Commit

Permalink
Up TLS buffer so we can connect to script.google.com (#527) (#539)
Browse files Browse the repository at this point in the history
Co-authored-by: Erik Corry <[email protected]>
  • Loading branch information
floitsch and Erik Corry authored Mar 4, 2022
1 parent 6b9ed84 commit 9468451
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ endif()
# sizes, but they just cause the other side to fragment packets more agressively.
# At this end we still have to reassemble the packets in and unfragmented form
# that fits in the buffer size below.
set(MBEDTLS_C_FLAGS "-DMBEDTLS_SSL_IN_CONTENT_LEN=6000 -DMBEDTLS_SSL_OUT_CONTENT_LEN=3700 -DMBEDTLS_PLATFORM_MEMORY=1")
set(MBEDTLS_C_FLAGS "-DMBEDTLS_SSL_IN_CONTENT_LEN=6400 -DMBEDTLS_SSL_OUT_CONTENT_LEN=3700 -DMBEDTLS_PLATFORM_MEMORY=1")

set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${TOIT_GENERIC_FLAGS} ${TOIT_LWIP_C_FLAGS} ${MBEDTLS_C_FLAGS}")
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -DDEBUG")
Expand Down
2 changes: 1 addition & 1 deletion toolchains/esp32/sdkconfig
Original file line number Diff line number Diff line change
Expand Up @@ -914,7 +914,7 @@ CONFIG_MBEDTLS_INTERNAL_MEM_ALLOC=y
# CONFIG_MBEDTLS_DEFAULT_MEM_ALLOC is not set
# CONFIG_MBEDTLS_CUSTOM_MEM_ALLOC is not set
CONFIG_MBEDTLS_ASYMMETRIC_CONTENT_LEN=y
CONFIG_MBEDTLS_SSL_IN_CONTENT_LEN=6000
CONFIG_MBEDTLS_SSL_IN_CONTENT_LEN=6400
CONFIG_MBEDTLS_SSL_OUT_CONTENT_LEN=3700
# CONFIG_MBEDTLS_DYNAMIC_BUFFER is not set
# CONFIG_MBEDTLS_DEBUG is not set
Expand Down
2 changes: 1 addition & 1 deletion toolchains/esp32c3/sdkconfig
Original file line number Diff line number Diff line change
Expand Up @@ -903,7 +903,7 @@ CONFIG_MBEDTLS_INTERNAL_MEM_ALLOC=y
# CONFIG_MBEDTLS_DEFAULT_MEM_ALLOC is not set
# CONFIG_MBEDTLS_CUSTOM_MEM_ALLOC is not set
CONFIG_MBEDTLS_ASYMMETRIC_CONTENT_LEN=y
CONFIG_MBEDTLS_SSL_IN_CONTENT_LEN=6000
CONFIG_MBEDTLS_SSL_IN_CONTENT_LEN=6400
CONFIG_MBEDTLS_SSL_OUT_CONTENT_LEN=3700
# CONFIG_MBEDTLS_DYNAMIC_BUFFER is not set
# CONFIG_MBEDTLS_DEBUG is not set
Expand Down

0 comments on commit 9468451

Please sign in to comment.