mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-03 12:44:33 +02:00
fix: Force validate when using the default crt bundle
This commit is contained in:
committed by
Kapil Gupta
parent
4912a70470
commit
4b3a44face
@@ -543,6 +543,7 @@ static int set_client_config(const struct tls_connection_params *cfg, tls_contex
|
||||
|
||||
#ifdef CONFIG_MBEDTLS_CERTIFICATE_BUNDLE
|
||||
if (cfg->flags & TLS_CONN_USE_DEFAULT_CERT_BUNDLE) {
|
||||
mbedtls_ssl_conf_authmode(&tls->conf, MBEDTLS_SSL_VERIFY_REQUIRED);
|
||||
wpa_printf(MSG_INFO, "Using default cert bundle");
|
||||
if (esp_crt_bundle_attach_fn) {
|
||||
ret = (*esp_crt_bundle_attach_fn)(&tls->conf);
|
||||
|
Reference in New Issue
Block a user