diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2015-05-21 14:04:46 +0200 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2015-05-21 14:04:46 +0200 |
commit | a6ea108b569073c6e8dc915f1757a34a461ab56e (patch) | |
tree | d268918c9e5e68392c9cf9e79f72ee3f6df8563b /src/openssl_stream.c | |
parent | 5d74fb78392d62c6920de466ce461c9d44340bf1 (diff) | |
parent | 987045c74aee6db466632eb14e0f79cd0de470c7 (diff) | |
download | libgit2-a6ea108b569073c6e8dc915f1757a34a461ab56e.tar.gz |
Merge branch 'sni'
Diffstat (limited to 'src/openssl_stream.c')
-rw-r--r-- | src/openssl_stream.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/openssl_stream.c b/src/openssl_stream.c index 78f705e49..a975bb0c1 100644 --- a/src/openssl_stream.c +++ b/src/openssl_stream.c @@ -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); |