mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-16 18:04:48 +00:00
net: Kconfig: depend on DM_RNG for WGET_HTTPS
net/lwip/wget.c/mbedtls_hardware_poll() is calling dm_rng_read() but dependency is not recorded anywhere that's why depend on DM_RNG when WGET_HTTPS is used. Suggested-by: Michal Simek <michal.simek@amd.com> Co-developed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org> Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org> Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Tested-by: Michal Simek <michal.simek@amd.com>
This commit is contained in:
parent
331d75544f
commit
a091d173e3
2 changed files with 9 additions and 3 deletions
|
@ -2161,6 +2161,7 @@ config WGET_HTTPS
|
|||
depends on CMD_WGET
|
||||
depends on PROT_TCP_LWIP
|
||||
depends on MBEDTLS_LIB
|
||||
depends on DM_RNG
|
||||
select SHA256
|
||||
select RSA
|
||||
select ASYMMETRIC_KEY_TYPE
|
||||
|
|
|
@ -433,10 +433,15 @@ bool wget_validate_uri(char *uri)
|
|||
|
||||
if (!strncmp(uri, "http://", strlen("http://"))) {
|
||||
prefix_len = strlen("http://");
|
||||
} else if (!strncmp(uri, "https://", strlen("https://"))) {
|
||||
prefix_len = strlen("https://");
|
||||
} else if (CONFIG_IS_ENABLED(WGET_HTTPS)) {
|
||||
if (!strncmp(uri, "https://", strlen("https://"))) {
|
||||
prefix_len = strlen("https://");
|
||||
} else {
|
||||
log_err("only http(s):// is supported\n");
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
log_err("only http(s):// is supported\n");
|
||||
log_err("only http:// is supported\n");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue