summaryrefslogtreecommitdiff
path: root/src/configfile-glue.c
diff options
context:
space:
mode:
authorstbuehler <stbuehler@152afb58-edef-0310-8abb-c4023f1b3aa9>2009-10-14 14:07:32 +0000
committerstbuehler <stbuehler@152afb58-edef-0310-8abb-c4023f1b3aa9>2009-10-14 14:07:32 +0000
commit9c0cac1b66fb27abbd9025d63edac62d1a595c27 (patch)
tree2290161790ec55701f1ae1bb8c8b6e93140a85e2 /src/configfile-glue.c
parentaba63f984a93c9bce0712a85e3236a4b2b394a00 (diff)
downloadlighttpd-9c0cac1b66fb27abbd9025d63edac62d1a595c27.tar.gz
Add TLS servername indication (SNI) support (fixes #386, thx Peter Colberg <peter@colberg.org>)
* This patch may "break" some configs, if they do stupid things. Like setting ssl.pemfile to a not existing file in a "non-socket/non-ssl" block. Fix them! :) From: Peter Colberg <peter@colberg.org> git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@2649 152afb58-edef-0310-8abb-c4023f1b3aa9
Diffstat (limited to 'src/configfile-glue.c')
-rw-r--r--src/configfile-glue.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/configfile-glue.c b/src/configfile-glue.c
index 8c6efd8a..a2ac07ab 100644
--- a/src/configfile-glue.c
+++ b/src/configfile-glue.c
@@ -305,6 +305,10 @@ static cond_result_t config_check_cond_nocache(server *srv, connection *con, dat
default:
break;
}
+#if defined USE_OPENSSL && ! defined OPENSSL_NO_TLSEXT
+ } else if (!buffer_is_empty(con->sock->tlsext_server_name)) {
+ l = con->sock->tlsext_server_name;
+#endif
} else {
l = srv->empty_string;
}