summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2019-07-19 15:29:57 +0200
committerFabio Alessandrelli <fabio.alessandrelli@gmail.com>2019-08-21 16:59:38 +0200
commitce5a3f56a608dcafd33aed6a9f262ed7ca9f01e8 (patch)
tree1c640d5d2b6a25ad01170451c567fd50ec78e088 /editor
parentdd8107caa43b8e9eca8dfcf144bbbd88ccde462f (diff)
Rewrite StreamPeerSSL with SSLContext helper class
connect_to_stream now accepts optional parameter to specify which certificates to trust. Implement accept_stream (SSL server) with key/cert parameters to specify the RSA key and X509 certificate resources.
Diffstat (limited to 'editor')
-rw-r--r--editor/editor_settings.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/editor/editor_settings.cpp b/editor/editor_settings.cpp
index cb3bfa3a49..ca1387007e 100644
--- a/editor/editor_settings.cpp
+++ b/editor/editor_settings.cpp
@@ -1022,7 +1022,8 @@ void EditorSettings::setup_network() {
add_property_hint(PropertyInfo(Variant::INT, "network/debug/remote_port", PROPERTY_HINT_RANGE, "1,65535,1"));
// Editor SSL certificates override
- _initial_set("network/ssl/editor_ssl_certificates", _SYSTEM_CERTS_PATH);
+ String certs = has_setting("network/ssl/editor_ssl_certificates") ? get("network/ssl/editor_ssl_certificates") : _SYSTEM_CERTS_PATH;
+ _initial_set("network/ssl/editor_ssl_certificates", certs);
add_property_hint(PropertyInfo(Variant::STRING, "network/ssl/editor_ssl_certificates", PROPERTY_HINT_GLOBAL_FILE, "*.crt,*.pem"));
}