diff options
author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2018-09-15 14:45:54 +0200 |
---|---|---|
committer | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2018-09-15 14:45:54 +0200 |
commit | 0e56377e96ee492cc30de9ad2e6e9242737f4dbd (patch) | |
tree | 2f2a60a28e21b5b8f90218b2f8df18ecc4fa6c09 /modules/mbedtls | |
parent | d2b38aabecd8f9bac5c050841f730ccbe07538f2 (diff) |
Allow system certs file to be used by Editor.
Note, it will only used by the Editor, not when running the game.
This allows package maintainer to compile Godot to use system installed
certificates when accessing the AssetLib.
Diffstat (limited to 'modules/mbedtls')
-rwxr-xr-x | modules/mbedtls/stream_peer_mbed_tls.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/modules/mbedtls/stream_peer_mbed_tls.cpp b/modules/mbedtls/stream_peer_mbed_tls.cpp index 3398957775..3c04254fd4 100755 --- a/modules/mbedtls/stream_peer_mbed_tls.cpp +++ b/modules/mbedtls/stream_peer_mbed_tls.cpp @@ -317,15 +317,13 @@ void StreamPeerMbedTLS::initialize_ssl() { mbedtls_debug_set_threshold(1); #endif - PoolByteArray cert_array = StreamPeerSSL::get_project_cert_array(); - - if (cert_array.size() > 0) - _load_certs(cert_array); - available = true; } void StreamPeerMbedTLS::finalize_ssl() { + available = false; + _create = NULL; + load_certs_func = NULL; mbedtls_x509_crt_free(&cacert); } |