You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
[mbedTLS] Fix incorrect cert pinning with client_unsafe
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user