1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-14 13:41:12 +00:00

[mbedTLS] Fix incorrect cert pinning with client_unsafe

(cherry picked from commit ccae47ab66)
This commit is contained in:
Fabio Alessandrelli
2024-08-27 13:10:09 +02:00
committed by Rémi Verschelde
parent b6055941b9
commit 1d775b5b97

View File

@@ -153,7 +153,7 @@ Error TLSContextMbedTLS::init_client(int p_transport, const String &p_hostname,
int authmode = MBEDTLS_SSL_VERIFY_REQUIRED; int authmode = MBEDTLS_SSL_VERIFY_REQUIRED;
bool unsafe = p_options->is_unsafe_client(); 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; authmode = MBEDTLS_SSL_VERIFY_NONE;
} }