Skip to content

Commit

Permalink
[mbedTLS] Fix incorrect cert pinning with client_unsafe
Browse files Browse the repository at this point in the history
  • Loading branch information
Faless committed Aug 27, 2024
1 parent db76de5 commit ccae47a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/mbedtls/tls_context_mbedtls.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit ccae47a

Please sign in to comment.