summaryrefslogtreecommitdiffstats
path: root/modules/mbedtls
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2024-08-27 13:10:09 +0200
committerFabio Alessandrelli <fabio.alessandrelli@gmail.com>2024-08-27 13:10:09 +0200
commitccae47ab667174ac521b7d1a1b2fe330ea11ce1e (patch)
tree8ec77ea7202750a2c9e8fc598c6185c33532b17e /modules/mbedtls
parentdb76de5de8a415b29be4c7dd84b99bd0fe260822 (diff)
downloadredot-engine-ccae47ab667174ac521b7d1a1b2fe330ea11ce1e.tar.gz
[mbedTLS] Fix incorrect cert pinning with client_unsafe
Diffstat (limited to 'modules/mbedtls')
-rw-r--r--modules/mbedtls/tls_context_mbedtls.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/mbedtls/tls_context_mbedtls.cpp b/modules/mbedtls/tls_context_mbedtls.cpp
index eaea7b9293..f5c196596e 100644
--- a/modules/mbedtls/tls_context_mbedtls.cpp
+++ b/modules/mbedtls/tls_context_mbedtls.cpp
@@ -153,7 +153,7 @@ Error TLSContextMbedTLS::init_client(int p_transport, const String &p_hostname,
int authmode = MBEDTLS_SSL_VERIFY_REQUIRED;
bool unsafe = p_options->is_unsafe_client();
- if (unsafe && p_options->get_trusted_ca_chain().is_valid()) {
+ if (unsafe && p_options->get_trusted_ca_chain().is_null()) {
authmode = MBEDTLS_SSL_VERIFY_NONE;
}