You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-09 12:50:35 +00: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:
@@ -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) {
|
Error SSLContextMbedTLS::init_client(int p_transport, int p_authmode, Ref<X509CertificateMbedTLS> p_valid_cas) {
|
||||||
X509CertificateMbedTLS *cas = NULL;
|
X509CertificateMbedTLS *cas = NULL;
|
||||||
|
|
||||||
if (certs.is_valid()) {
|
if (p_valid_cas.is_valid()) {
|
||||||
// Locking CA certificates
|
// Locking CA certificates
|
||||||
certs = p_valid_cas;
|
certs = p_valid_cas;
|
||||||
certs->lock();
|
certs->lock();
|
||||||
|
|||||||
Reference in New Issue
Block a user