Commit a6ea108b by Carlos Martín Nieto

Merge branch 'sni'

parents 5d74fb78 987045c7
...@@ -244,6 +244,9 @@ int openssl_connect(git_stream *stream) ...@@ -244,6 +244,9 @@ int openssl_connect(git_stream *stream)
return ssl_set_error(st->ssl, ret); 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) if ((ret = SSL_connect(st->ssl)) <= 0)
return ssl_set_error(st->ssl, ret); 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