mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
define LWS_SSL_CAPPABLE return codes even when no SSL enabled
Reported by fuzzy https://github.com/warmcat/libwebsockets/issues/107 Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
parent
5b94c3b449
commit
1a308e4176
1 changed files with 5 additions and 5 deletions
|
@ -742,6 +742,11 @@ LWS_EXTERN HANDLE lws_plat_open_file(const char* filename, unsigned long* filele
|
|||
LWS_EXTERN int lws_plat_open_file(const char* filename, unsigned long* filelen);
|
||||
#endif
|
||||
|
||||
enum lws_ssl_capable_status {
|
||||
LWS_SSL_CAPABLE_ERROR = -1,
|
||||
LWS_SSL_CAPABLE_MORE_SERVICE = -2,
|
||||
};
|
||||
|
||||
#ifndef LWS_OPENSSL_SUPPORT
|
||||
|
||||
unsigned char *
|
||||
|
@ -771,11 +776,6 @@ lws_context_init_server_ssl(struct lws_context_creation_info *info,
|
|||
LWS_EXTERN void
|
||||
lws_ssl_destroy(struct libwebsocket_context *context);
|
||||
|
||||
enum lws_ssl_capable_status {
|
||||
LWS_SSL_CAPABLE_ERROR = -1,
|
||||
LWS_SSL_CAPABLE_MORE_SERVICE = -2,
|
||||
};
|
||||
|
||||
LWS_EXTERN int
|
||||
lws_ssl_capable_read_no_ssl(struct libwebsocket *wsi, unsigned char *buf, int len);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue