mbedtls: Disable MBEDTLS_DYNAMIC_BUFFER when TLS 1.3 is enabled

- Resulted in a crash in the handshake stage when
  used alongside TLS 1.3 (MBEDTLS_SSL_PROTO_TLS1_3)
- Fix build error when MBEDTLS_HARDWARE_SHA=n &&
  MBEDTLS_DYNAMIC_BUFFER=y
- Fix build error when TLS 1.3 is enabled with
  MBEDTLS_SSL_KEEP_PEER_CERTIFICATE=n
This commit is contained in:
Laukik Hase
2022-03-09 18:24:44 +05:30
parent 0e0c5f93e3
commit 87d3296c37
2 changed files with 3 additions and 2 deletions

View File

@@ -8,6 +8,7 @@
#include <stddef.h>
#include <string.h>
#include <stdbool.h>
/* ToDo - Remove this once appropriate solution is available.
We need to define this for the file as ssl_misc.h uses private structures from mbedtls,
which are undefined if the following flag is not defined */