From e035f2ea3ef002f5296ac50283ae58d12657d4df Mon Sep 17 00:00:00 2001 From: vpeter4 Date: Sun, 27 Apr 2014 12:52:21 +0200 Subject: [PATCH] Compile with older OpenSSL library (missing symbol SSL_set_tlsext_host_name) --- lib/client.c | 2 ++ 1 file changed, 2 insertions(+) mode change 100644 => 100755 lib/client.c diff --git a/lib/client.c b/lib/client.c old mode 100644 new mode 100755 index d0265bf..a87ef2a --- a/lib/client.c +++ b/lib/client.c @@ -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 /* -- 2.7.4