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:
@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user