You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-21 14:57:09 +00:00
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 602da6fa4f)
This commit is contained in:
committed by
Hein-Pieter van Braam
parent
8289f8628d
commit
8da76f3bb8
@@ -298,7 +298,7 @@ Error HTTPClient::poll() {
|
|||||||
case StreamPeerTCP::STATUS_CONNECTED: {
|
case StreamPeerTCP::STATUS_CONNECTED: {
|
||||||
if (ssl) {
|
if (ssl) {
|
||||||
Ref<StreamPeerSSL> ssl = StreamPeerSSL::create();
|
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) {
|
if (err != OK) {
|
||||||
close();
|
close();
|
||||||
status = STATUS_SSL_HANDSHAKE_ERROR;
|
status = STATUS_SSL_HANDSHAKE_ERROR;
|
||||||
|
|||||||
Reference in New Issue
Block a user