From 09f12aa8905c0c8e93dcb243cf2e869d2a5c0dcb Mon Sep 17 00:00:00 2001 From: zodiac Date: Tue, 30 Dec 2008 02:42:45 +0000 Subject: [PATCH] Add better support for old versions of OpenSSL that did not yet understand SNI. git-svn-id: https://shellinabox.googlecode.com/svn/trunk@20 0da03de8-d603-11dd-86c2-0f8696b7b6f9 --- libhttp/ssl.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libhttp/ssl.c b/libhttp/ssl.c index 4fddee7..252463b 100644 --- a/libhttp/ssl.c +++ b/libhttp/ssl.c @@ -189,12 +189,16 @@ static void loadSSL(void) { { (void **)&x_SSL_get_error, "SSL_get_error" }, { (void **)&x_SSL_get_ex_data, "SSL_get_ex_data" }, { (void **)&x_SSL_get_rbio, "SSL_get_rbio" }, +#ifdef TLSEXT_NAMETYPE_host_name { (void **)&x_SSL_get_servername, "SSL_get_servername" }, +#endif { (void **)&x_SSL_get_wbio, "SSL_get_wbio" }, { (void **)&x_SSL_library_init, "SSL_library_init" }, { (void **)&x_SSL_new, "SSL_new" }, { (void **)&x_SSL_read, "SSL_read" }, +#ifdef TLSEXT_NAMETYPE_host_name { (void **)&x_SSL_set_SSL_CTX, "SSL_set_SSL_CTX" }, +#endif { (void **)&x_SSL_set_accept_state, "SSL_set_accept_state" }, { (void **)&x_SSL_set_bio, "SSL_set_bio" }, { (void **)&x_SSL_set_ex_data, "SSL_set_ex_data" },