diff options
author | Alexander Couzens <lynxis@fe80.eu> | 2015-08-06 13:02:47 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-08-06 16:26:42 +0200 |
commit | 4edb1426cef9eb07aa52dab2c34ab51f64e10f74 (patch) | |
tree | 68815deb129a8f74ed3fa1e23390b45e289b0d3b /uclient-http.c | |
parent | 81fdb8fdf1470e1c7bf3124ff20d17feaeb519ee (diff) | |
download | uclient-4edb1426cef9eb07aa52dab2c34ab51f64e10f74.tar.gz |
uclient-fetch: set server_name of the ssl context to support SNI
Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
Diffstat (limited to 'uclient-http.c')
-rw-r--r-- | uclient-http.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/uclient-http.c b/uclient-http.c index d96094d..4300d05 100644 --- a/uclient-http.c +++ b/uclient-http.c @@ -826,6 +826,7 @@ static int uclient_setup_https(struct uclient_http *uh) uh->ussl.notify_error = uclient_ssl_notify_error; uh->ussl.notify_verify_error = uclient_ssl_notify_verify_error; uh->ussl.notify_connected = uclient_ssl_notify_connected; + uh->ussl.server_name = uh->uc.url->host; uh->ssl_ops->init(&uh->ussl, &uh->ufd.stream, uh->ssl_ctx, false); uh->ssl_ops->set_peer_cn(&uh->ussl, uh->uc.url->host); |