mirror of
https://github.com/godotengine/godot.git
synced 2024-11-21 03:18:37 +08:00
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.
This commit is contained in:
parent
4ab4d4a59b
commit
99f657d89f
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user