mbedtls: suport sha1 in certificate

This commit is contained in:
xutao 2021-01-19 20:04:38 +08:00
parent b1a4b24963
commit 606dd2b629
2 changed files with 15 additions and 0 deletions

View File

@ -150,6 +150,12 @@ menu "mbedTLS"
SHA hardware acceleration is faster than software in some situations but
slower in others. You should benchmark to find the best setting for you.
config SHA1_IN_CERTIFICATES
bool "Enable SHA1 in certificates"
default n
help
This option enables sha1 to encryption certificates
config MBEDTLS_HAVE_TIME
bool "Enable mbedtls time"
depends on !ESP32_TIME_SYSCALL_USE_NONE

View File

@ -272,6 +272,15 @@
#define MBEDTLS_MPI_MUL_MPI_ALT
#endif
/* MBEDTLS_TLS_DEFAULT_ALLOW_SHA1_IN_CERTIFICATES to enable SHA1 support
to certificates.
*/
#ifdef CONFIG_SHA1_IN_CERTIFICATES
#define MBEDTLS_TLS_DEFAULT_ALLOW_SHA1_IN_CERTIFICATES
#else
#undef MBEDTLS_TLS_DEFAULT_ALLOW_SHA1_IN_CERTIFICATES
#endif
/**
* \def MBEDTLS_MD2_PROCESS_ALT
*