Use SNI for make_http_connection connections. Fixes #355

This commit is contained in:
Matthew Noorenberghe
2016-05-21 20:35:25 -07:00
parent 31bd465921
commit b7815aa85e

View File

@@ -7347,6 +7347,7 @@ if ($ssl) {
return $error if ($error);
}
Net::SSLeay::set_fd($rv->{'ssl_con'}, fileno($rv->{'fh'}));
Net::SSLeay::set_tlsext_host_name($rv->{'ssl_con'}, $host);
Net::SSLeay::connect($rv->{'ssl_con'}) ||
return "SSL connect() failed";
if ($certreqs) {