Commit 987045c7 by Cristian Oneț Committed by Carlos Martín Nieto

Call the openssl API to be able to work with SNI servers.

parent acc573cb
......@@ -243,6 +243,9 @@ int openssl_connect(git_stream *stream)
return ssl_set_error(st->ssl, ret);
}
/* specify the host in case SNI is needed */
SSL_set_tlsext_host_name(st->ssl, st->socket->host);
if ((ret = SSL_connect(st->ssl)) <= 0)
return ssl_set_error(st->ssl, ret);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment