Declare the lws_ssl_capable_*_no_ssl function outside the SSL #ifdef

This avoids a compiler warning about a not declared function.
This commit is contained in:
Patrick Gansterer 2014-04-15 18:40:31 +02:00
parent 6bb4b62ede
commit a6b019aaee

View file

@ -827,12 +827,6 @@ lws_context_init_server_ssl(struct lws_context_creation_info *info,
LWS_EXTERN void
lws_ssl_destroy(struct libwebsocket_context *context);
LWS_EXTERN int
lws_ssl_capable_read_no_ssl(struct libwebsocket *wsi, unsigned char *buf, int len);
LWS_EXTERN int
lws_ssl_capable_write_no_ssl(struct libwebsocket *wsi, unsigned char *buf, int len);
/* HTTP2-related */
#ifdef LWS_USE_HTTP2
@ -843,6 +837,12 @@ lws_context_init_http2_ssl(struct libwebsocket_context *context);
#endif
#endif
LWS_EXTERN int
lws_ssl_capable_read_no_ssl(struct libwebsocket *wsi, unsigned char *buf, int len);
LWS_EXTERN int
lws_ssl_capable_write_no_ssl(struct libwebsocket *wsi, unsigned char *buf, int len);
#ifndef LWS_NO_CLIENT
LWS_EXTERN int lws_client_socket_service(
struct libwebsocket_context *context,