diff options
author | Michael Brown | 2012-03-03 21:15:21 +0100 |
---|---|---|
committer | Michael Brown | 2012-03-03 21:15:21 +0100 |
commit | b7f8d1bbfd657ecfcae6e74a62766e2e15abaa11 (patch) | |
tree | efbd4626656721d7c874692ef1eb0bdaa780e7db /src/net/tcp/httpcore.c | |
parent | [tls] Support TLS version 1.1 (diff) | |
download | ipxe-b7f8d1bbfd657ecfcae6e74a62766e2e15abaa11.tar.gz ipxe-b7f8d1bbfd657ecfcae6e74a62766e2e15abaa11.tar.xz ipxe-b7f8d1bbfd657ecfcae6e74a62766e2e15abaa11.zip |
[tls] Add support for Server Name Indication (SNI)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/net/tcp/httpcore.c')
-rw-r--r-- | src/net/tcp/httpcore.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/net/tcp/httpcore.c b/src/net/tcp/httpcore.c index 69d27389..617f49b0 100644 --- a/src/net/tcp/httpcore.c +++ b/src/net/tcp/httpcore.c @@ -838,6 +838,7 @@ static struct process_descriptor http_process_desc = int http_open_filter ( struct interface *xfer, struct uri *uri, unsigned int default_port, int ( * filter ) ( struct interface *xfer, + const char *name, struct interface **next ) ) { struct http_request *http; struct sockaddr_tcpip server; @@ -865,7 +866,7 @@ int http_open_filter ( struct interface *xfer, struct uri *uri, server.st_port = htons ( uri_port ( http->uri, default_port ) ); socket = &http->socket; if ( filter ) { - if ( ( rc = filter ( socket, &socket ) ) != 0 ) + if ( ( rc = filter ( socket, uri->host, &socket ) ) != 0 ) goto err; } if ( ( rc = xfer_open_named_socket ( socket, SOCK_STREAM, |