u-boot/lib/mbedtls
Ilias Apalodimas 45f05f6812 mbedtls: remove MBEDTLS_HAVE_TIME
When MbedTLS TLS features were added MBEDTLS_HAVE_TIME was defined as part
of enabling https:// support. However that pointed to the wrong function
which could crash if it received a NULL pointer.

Looking closer that function is not really needed, as it only seems to
increase the RNG entropy by using 4b of the current time and date.
The reason that was enabled is that lwIP was unconditionally requiring it,
although it's configurable and can be turned off.

Since lwIP doesn't use that field anywhere else, make it conditional and
disable it from our config.

Fixes: commit a564f5094f ("mbedtls: Enable TLS 1.2 support")
Reported-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
2024-12-06 17:47:23 -06:00
..
external/mbedtls mbedtls/external: update MbedTLS PKCS7 test suites 2024-10-14 17:58:39 -06:00
port
Kconfig mbedtls: Enable TLS 1.2 support 2024-11-12 19:09:52 -06:00
Makefile mbedtls: Enable TLS 1.2 support 2024-11-12 19:09:52 -06:00
mbedtls_def_config.h mbedtls: remove MBEDTLS_HAVE_TIME 2024-12-06 17:47:23 -06:00
md5.c mbedtls: add digest shim layer for MbedTLS 2024-10-14 17:58:31 -06:00
mscode_parser.c mbedtls: add MSCode parser porting layer 2024-10-14 17:58:48 -06:00
pkcs7_parser.c mbedtls: fix defects in coverity scan 2024-10-18 14:18:12 -06:00
public_key.c mbedtls: add public key porting layer 2024-10-14 17:58:43 -06:00
rsa_helper.c mbedtls: add RSA helper layer on MbedTLS 2024-10-14 17:58:50 -06:00
sha1.c mbedtls: add digest shim layer for MbedTLS 2024-10-14 17:58:31 -06:00
sha256.c mbedtls: add digest shim layer for MbedTLS 2024-10-14 17:58:31 -06:00
sha512.c mbedtls: add digest shim layer for MbedTLS 2024-10-14 17:58:31 -06:00
x509_cert_parser.c mbedtls: fix defects in coverity scan 2024-10-18 14:18:12 -06:00