projects
/
project
/
uclient.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
81fdb8f
)
uclient-fetch: set server_name of the ssl context to support SNI
author
Alexander Couzens
<lynxis@fe80.eu>
Thu, 6 Aug 2015 11:02:47 +0000
(13:02 +0200)
committer
Felix Fietkau
<nbd@openwrt.org>
Thu, 6 Aug 2015 14:26:42 +0000
(16:26 +0200)
Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
uclient-http.c
patch
|
blob
|
history
diff --git
a/uclient-http.c
b/uclient-http.c
index d96094d1b1430ba30f4885785d9056e1f5eec561..4300d0511e95d0dfa74d5044bd0e1ab8bd92018f 100644
(file)
--- 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);