mbedtls: suport sha1 in certificate

audio/stack_on_psram_v3.3
xutao 2021-01-19 20:04:38 +08:00
rodzic b1a4b24963
commit 606dd2b629
2 zmienionych plików z 15 dodań i 0 usunięć

Wyświetl plik

@ -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

Wyświetl plik

@ -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
*