aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro J. Estébanez2018-03-04 01:22:59 +0100
committerHein-Pieter van Braam2018-03-28 23:49:00 +0200
commit8da76f3bb8e7d059d8c9337a441e50809e9358f9 (patch)
tree61be40db46e4de927aa2078e645a6a32d4f8dc2e
parent8289f8628d797c0c503ad050829b3d44eef502c7 (diff)
downloadgodot-8da76f3bb8e7d059d8c9337a441e50809e9358f9.tar.gz
godot-8da76f3bb8e7d059d8c9337a441e50809e9358f9.tar.zst
godot-8da76f3bb8e7d059d8c9337a441e50809e9358f9.zip
Fix wrong SSL handshake
The name of the remote host is passed to mbed TLS in all cases so the client hello message is correctly formed. (cherry picked from commit 602da6fa4fbc13255e1b0f6c8748ff0035e96325)
-rw-r--r--core/io/http_client.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/io/http_client.cpp b/core/io/http_client.cpp
index a9eb9466b..4d72f744e 100644
--- a/core/io/http_client.cpp
+++ b/core/io/http_client.cpp
@@ -298,7 +298,7 @@ Error HTTPClient::poll() {
case StreamPeerTCP::STATUS_CONNECTED: {
if (ssl) {
Ref<StreamPeerSSL> ssl = StreamPeerSSL::create();
- Error err = ssl->connect_to_stream(tcp_connection, ssl_verify_host, ssl_verify_host ? conn_host : String());
+ Error err = ssl->connect_to_stream(tcp_connection, ssl_verify_host, conn_host);
if (err != OK) {
close();
status = STATUS_SSL_HANDSHAKE_ERROR;