Skip to content

Commit

Permalink
extmod/mbedtls: Enable MBEDTLS_TLS_DEFAULT_ALLOW_SHA1_IN_KEY_EXCHANGE.
Browse files Browse the repository at this point in the history
This was already enabled on all ports except mimxrt.  Now it's enabled on
all of them.

Signed-off-by: Damien George <damien@micropython.org>
  • Loading branch information
dpgeorge committed Oct 22, 2022
1 parent b337678 commit 9347545
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 3 deletions.
1 change: 1 addition & 0 deletions extmod/mbedtls/mbedtls_config_common.h
Expand Up @@ -82,6 +82,7 @@
#define MBEDTLS_SSL_CLI_C
#define MBEDTLS_SSL_SRV_C
#define MBEDTLS_SSL_TLS_C
#define MBEDTLS_TLS_DEFAULT_ALLOW_SHA1_IN_KEY_EXCHANGE
#define MBEDTLS_X509_CRT_PARSE_C
#define MBEDTLS_X509_USE_C

Expand Down
1 change: 0 additions & 1 deletion ports/rp2/mbedtls/mbedtls_config.h
Expand Up @@ -34,7 +34,6 @@
#define MBEDTLS_ECDH_C
#define MBEDTLS_ECP_C
#define MBEDTLS_GCM_C
#define MBEDTLS_TLS_DEFAULT_ALLOW_SHA1_IN_KEY_EXCHANGE
#define MBEDTLS_HAVE_TIME
#define MBEDTLS_HAVE_TIME_DATE

Expand Down
1 change: 0 additions & 1 deletion ports/stm32/mbedtls/mbedtls_config.h
Expand Up @@ -28,7 +28,6 @@

// Enable mbedtls modules
// #define MBEDTLS_ECP_C
#define MBEDTLS_TLS_DEFAULT_ALLOW_SHA1_IN_KEY_EXCHANGE

// Set MicroPython-specific options.
#define MICROPY_MBEDTLS_CONFIG_BARE_METAL (1)
Expand Down
1 change: 0 additions & 1 deletion ports/unix/mbedtls/mbedtls_config.h
Expand Up @@ -32,7 +32,6 @@
// Enable mbedtls modules
#define MBEDTLS_HAVEGE_C
#define MBEDTLS_TIMING_C
#define MBEDTLS_TLS_DEFAULT_ALLOW_SHA1_IN_KEY_EXCHANGE

// Include common mbedtls configuration.
#include "extmod/mbedtls/mbedtls_config_common.h"
Expand Down

0 comments on commit 9347545

Please sign in to comment.