projects
/
platform
/
upstream
/
libwebsockets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e035f2e
)
Conditionally declare variable
author
vpeter4
<peter.vicman@gmail.com>
Sun, 27 Apr 2014 11:22:09 +0000
(13:22 +0200)
committer
Andy Green
<andy.green@linaro.org>
Sun, 27 Apr 2014 23:32:14 +0000
(07:32 +0800)
lib/client.c
patch
|
blob
|
history
diff --git
a/lib/client.c
b/lib/client.c
index
a87ef2a
..
19a819d
100755
(executable)
--- a/
lib/client.c
+++ b/
lib/client.c
@@
-131,8
+131,10
@@
int lws_client_socket_service(struct libwebsocket_context *context,
/* we can retry this... just cook the SSL BIO the first time */
if (wsi->use_ssl && !wsi->ssl) {
+#if defined(CYASSL_SNI_HOST_NAME) || defined(SSL_CTRL_SET_TLSEXT_HOSTNAME)
const char *hostname = lws_hdr_simple_ptr(wsi,
_WSI_TOKEN_CLIENT_PEER_ADDRESS);
+#endif
wsi->ssl = SSL_new(context->ssl_client_ctx);
#ifndef USE_CYASSL