diff options
author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2019-08-22 15:04:00 +0200 |
---|---|---|
committer | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2019-08-22 16:42:37 +0200 |
commit | 99f657d89f43615bff12e00e59d07499dccec20d (patch) | |
tree | f3c28c12ce900c50d924ab947c3f166e39d2ff68 /modules/mbedtls | |
parent | 4ab4d4a59baf63c73ffbc507dea2a4de0e4aec3f (diff) |
Fix StreamPeerSSL connect_to_stream w/ custom cert
Follow up on #29871.
Was checking the wrong parameter, causing the code to ignore provided
stream-specific SSL certificate.
Diffstat (limited to 'modules/mbedtls')
-rw-r--r-- | modules/mbedtls/ssl_context_mbedtls.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/mbedtls/ssl_context_mbedtls.cpp b/modules/mbedtls/ssl_context_mbedtls.cpp index 014a201f9c..edd679e335 100644 --- a/modules/mbedtls/ssl_context_mbedtls.cpp +++ b/modules/mbedtls/ssl_context_mbedtls.cpp @@ -96,7 +96,7 @@ Error SSLContextMbedTLS::init_server(int p_transport, int p_authmode, Ref<Crypto Error SSLContextMbedTLS::init_client(int p_transport, int p_authmode, Ref<X509CertificateMbedTLS> p_valid_cas) { X509CertificateMbedTLS *cas = NULL; - if (certs.is_valid()) { + if (p_valid_cas.is_valid()) { // Locking CA certificates certs = p_valid_cas; certs->lock(); |