1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-06 12:20:30 +00:00

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.
This commit is contained in:
Fabio Alessandrelli
2018-09-15 14:45:54 +02:00
parent d2b38aabec
commit 0e56377e96
8 changed files with 59 additions and 23 deletions

View File

@@ -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);
}