Compile with older OpenSSL library (missing symbol SSL_set_tlsext_host_name)
authorvpeter4 <peter.vicman@gmail.com>
Sun, 27 Apr 2014 10:52:21 +0000 (12:52 +0200)
committerAndy Green <andy.green@linaro.org>
Sun, 27 Apr 2014 23:32:13 +0000 (07:32 +0800)
lib/client.c [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index d0265bf..a87ef2a
@@ -149,8 +149,10 @@ int lws_client_socket_service(struct libwebsocket_context *context,
                                hostname, strlen(hostname));
 #endif
 #else
+#ifdef SSL_CTRL_SET_TLSEXT_HOSTNAME
                        SSL_set_tlsext_host_name(wsi->ssl, hostname);
 #endif
+#endif
 
 #ifdef USE_CYASSL
                        /*