mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-09 05:28:34 +00:00
Merge branch 'sni'
This commit is contained in:
commit
a6ea108b56
@ -244,6 +244,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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user