libwebsockets
Lightweight C library for HTML5 websockets
lws-context-vhost.h
1 /*
2  * libwebsockets - small server side websockets and web server implementation
3  *
4  * Copyright (C) 2010-2018 Andy Green <andy@warmcat.com>
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation:
9  * version 2.1 of the License.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19  * MA 02110-1301 USA
20  *
21  * included from libwebsockets.h
22  */
23 
37 
39 /*
40  * NOTE: These public enums are part of the abi. If you want to add one,
41  * add it at where specified so existing users are unaffected.
42  */
43 
47  (1 << 12),
54  (1 << 12),
70  (1 << 12),
75  (1 << 12),
85  LWS_SERVER_OPTION_STS = (1 << 15),
165  /****** add new things just above ---^ ******/
166 };
167 
168 #define lws_check_opt(c, f) (((c) & (f)) == (f))
169 
170 struct lws_plat_file_ops;
171 
182  int port;
191  const char *iface;
198  const struct lws_protocols *protocols;
202  const struct lws_extension *extensions;
213  const char *ssl_cert_filepath;
229  const char *ssl_ca_filepath;
234  const char *ssl_cipher_list;
244  const char *http_proxy_address;
248  unsigned int http_proxy_port;
250  int gid;
253  int uid;
256  unsigned int options;
258  void *user;
267  int ka_time;
277 #if defined(LWS_WITH_TLS) && !defined(LWS_WITH_MBEDTLS)
278  SSL_CTX *provided_client_ssl_ctx;
283 #else /* maintain structure layout either way */
285 #endif
286 
287  unsigned short max_http_header_data;
290  unsigned short max_http_header_pool;
298  unsigned int count_threads;
300  unsigned int fd_limit_per_thread;
304  unsigned int timeout_secs;
309  const char *ecdh_curve;
312  const char *vhost_name;
316  const char * const *plugin_dirs;
325  const char *log_filepath;
328  const struct lws_http_mount *mounts;
330  const char *server_string;
333  unsigned int pt_serv_buf_size;
339  unsigned int max_http_header_data2;
348  unsigned short ws_ping_pong_interval;
393  const void *client_ssl_ca_mem;
396  unsigned int client_ssl_ca_mem_len;
405  const struct lws_plat_file_ops *fops;
415  const char *socks_proxy_address;
419  unsigned int socks_proxy_port;
421 #if defined(LWS_HAVE_SYS_CAPABILITY_H) && defined(LWS_HAVE_LIBCAP)
422  cap_value_t caps[4];
429  char count_caps;
432 #endif
450  unsigned int timeout_secs_ah_idle;
453  unsigned short ip_limit_ah;
461  unsigned short ip_limit_wsi;
468  uint32_t http2_settings[7];
474  const char *error_document_404;
478  const char *alpn;
499  void (*signal_cb)(void *event_lib_handle, int signum);
505  struct lws_context **pcontext;
511  void (*finalize)(struct lws_vhost *vh, void *arg);
520  unsigned int max_http_header_pool2;
545  /* Add new things just above here ---^
546  * This is part of the ABI, don't needlessly break compatibility
547  *
548  * The below is to ensure later library versions with new
549  * members added above will see 0 (default) even if the app
550  * was not built against the newer headers.
551  */
552 
553  void *_unused[4];
554 };
555 
590 LWS_VISIBLE LWS_EXTERN struct lws_context *
592 
593 
602 LWS_VISIBLE LWS_EXTERN void
603 lws_context_destroy(struct lws_context *context);
604 
605 typedef int (*lws_reload_func)(void);
606 
629 LWS_VISIBLE LWS_EXTERN void
630 lws_context_deprecate(struct lws_context *context, lws_reload_func cb);
631 
632 LWS_VISIBLE LWS_EXTERN int
633 lws_context_is_deprecated(struct lws_context *context);
634 
652 LWS_VISIBLE LWS_EXTERN int
653 lws_set_proxy(struct lws_vhost *vhost, const char *proxy);
654 
672 LWS_VISIBLE LWS_EXTERN int
673 lws_set_socks(struct lws_vhost *vhost, const char *socks);
674 
675 struct lws_vhost;
676 
686 LWS_VISIBLE LWS_EXTERN struct lws_vhost *
687 lws_create_vhost(struct lws_context *context,
688  const struct lws_context_creation_info *info);
689 
708 LWS_VISIBLE LWS_EXTERN void
709 lws_vhost_destroy(struct lws_vhost *vh);
710 
725 LWS_VISIBLE LWS_EXTERN int
726 lwsws_get_config_globals(struct lws_context_creation_info *info, const char *d,
727  char **config_strings, int *len);
728 
744 LWS_VISIBLE LWS_EXTERN int
745 lwsws_get_config_vhosts(struct lws_context *context,
746  struct lws_context_creation_info *info, const char *d,
747  char **config_strings, int *len);
748 
750 LWS_VISIBLE LWS_EXTERN struct lws_vhost *
751 lws_vhost_get(struct lws *wsi) LWS_WARN_DEPRECATED;
752 
758 LWS_VISIBLE LWS_EXTERN struct lws_vhost *
759 lws_get_vhost(struct lws *wsi);
760 
766 LWS_VISIBLE LWS_EXTERN const char *
767 lws_get_vhost_name(struct lws_vhost *vhost);
768 
774 LWS_VISIBLE LWS_EXTERN int
775 lws_get_vhost_port(struct lws_vhost *vhost);
776 
782 LWS_VISIBLE LWS_EXTERN void *
783 lws_get_vhost_user(struct lws_vhost *vhost);
784 
790 LWS_VISIBLE LWS_EXTERN const char *
791 lws_get_vhost_iface(struct lws_vhost *vhost);
792 
800 LWS_VISIBLE LWS_EXTERN int
801 lws_json_dump_vhost(const struct lws_vhost *vh, char *buf, int len);
802 
813 LWS_VISIBLE LWS_EXTERN int
814 lws_json_dump_context(const struct lws_context *context, char *buf, int len,
815  int hide_vhosts);
816 
825 LWS_VISIBLE LWS_EXTERN void *
826 lws_vhost_user(struct lws_vhost *vhost);
827 
837 LWS_VISIBLE LWS_EXTERN void *
838 lws_context_user(struct lws_context *context);
839 
845 
855  const char *name;
856  const char *value;
857 };
858 
871 };
872 
878  const struct lws_http_mount *mount_next;
880  const char *mountpoint;
882  const char *origin;
884  const char *def;
886  const char *protocol;
902  unsigned int auth_mask;
905  unsigned int cache_reusable:1;
906  unsigned int cache_revalidate:1;
907  unsigned int cache_intermediaries:1;
909  unsigned char origin_protocol;
910  unsigned char mountpoint_len;
915  /* Add new things just above here ---^
916  * This is part of the ABI, don't needlessly break compatibility
917  *
918  * The below is to ensure later library versions with new
919  * members added above will see 0 (default) even if the app
920  * was not built against the newer headers.
921  */
922 
923  void *_unused[2];
924 };
925 
lws_set_proxy
LWS_VISIBLE LWS_EXTERN int lws_set_proxy(struct lws_vhost *vhost, const char *proxy)
lws_context_creation_info::max_http_header_pool
unsigned short max_http_header_pool
Definition: lws-context-vhost.h:290
LWS_SERVER_OPTION_LIBEV
@ LWS_SERVER_OPTION_LIBEV
Definition: lws-context-vhost.h:58
lws_http_mount::cache_intermediaries
unsigned int cache_intermediaries
Definition: lws-context-vhost.h:907
lws_context_creation_info::ssl_options_clear
long ssl_options_clear
Definition: lws-context-vhost.h:346
LWS_SERVER_OPTION_REDIRECT_HTTP_TO_HTTPS
@ LWS_SERVER_OPTION_REDIRECT_HTTP_TO_HTTPS
Definition: lws-context-vhost.h:74
lws_create_context
LWS_VISIBLE LWS_EXTERN struct lws_context * lws_create_context(const struct lws_context_creation_info *info)
lws_protocol_vhost_options
Definition: lws-context-vhost.h:852
lws_context_creation_info::ssl_private_key_filepath
const char * ssl_private_key_filepath
Definition: lws-context-vhost.h:220
LWS_SERVER_OPTION_LIBUV
@ LWS_SERVER_OPTION_LIBUV
Definition: lws-context-vhost.h:72
lws_context_creation_info::fops
const struct lws_plat_file_ops * fops
Definition: lws-context-vhost.h:405
LWSMPRO_HTTPS
@ LWSMPRO_HTTPS
Definition: lws-context-vhost.h:865
LWS_SERVER_OPTION_DISABLE_IPV6
@ LWS_SERVER_OPTION_DISABLE_IPV6
Definition: lws-context-vhost.h:60
lws_context_creation_info::options
unsigned int options
Definition: lws-context-vhost.h:256
lws_context_creation_info::ecdh_curve
const char * ecdh_curve
Definition: lws-context-vhost.h:309
lws_context_creation_info::plugin_dirs
const char *const * plugin_dirs
Definition: lws-context-vhost.h:316
lws_context_creation_info::socks_proxy_address
const char * socks_proxy_address
Definition: lws-context-vhost.h:415
lws_protocol_vhost_options::value
const char * value
Definition: lws-context-vhost.h:856
LWS_SERVER_OPTION_SKIP_PROTOCOL_INIT
@ LWS_SERVER_OPTION_SKIP_PROTOCOL_INIT
Definition: lws-context-vhost.h:126
lws_context_creation_info::max_http_header_pool2
unsigned int max_http_header_pool2
Definition: lws-context-vhost.h:520
lws_context_creation_info::ssl_client_options_set
long ssl_client_options_set
Definition: lws-context-vhost.h:526
LWS_SERVER_OPTION_JUST_USE_RAW_ORIGIN
@ LWS_SERVER_OPTION_JUST_USE_RAW_ORIGIN
Definition: lws-context-vhost.h:98
lws_protocol_vhost_options::name
const char * name
Definition: lws-context-vhost.h:855
LWS_SERVER_OPTION_VALIDATE_UTF8
@ LWS_SERVER_OPTION_VALIDATE_UTF8
Definition: lws-context-vhost.h:67
lws_context_creation_info::iface
const char * iface
Definition: lws-context-vhost.h:191
lws_context_creation_info::http_proxy_address
const char * http_proxy_address
Definition: lws-context-vhost.h:244
lws_http_mount::mount_next
const struct lws_http_mount * mount_next
Definition: lws-context-vhost.h:878
lws_context_creation_info::ssl_cipher_list
const char * ssl_cipher_list
Definition: lws-context-vhost.h:234
lws_context_creation_info::pcontext
struct lws_context ** pcontext
Definition: lws-context-vhost.h:505
lws_context_creation_info::ip_limit_wsi
unsigned short ip_limit_wsi
Definition: lws-context-vhost.h:461
lws_vhost_get
LWS_VISIBLE LWS_EXTERN struct lws_vhost * lws_vhost_get(struct lws *wsi) LWS_WARN_DEPRECATED
lws_context_creation_info::ws_ping_pong_interval
unsigned short ws_ping_pong_interval
Definition: lws-context-vhost.h:348
lws_json_dump_vhost
LWS_VISIBLE LWS_EXTERN int lws_json_dump_vhost(const struct lws_vhost *vh, char *buf, int len)
lws_context_creation_info::keepalive_timeout
int keepalive_timeout
Definition: lws-context-vhost.h:322
LWS_SERVER_OPTION_REQUIRE_VALID_OPENSSL_CLIENT_CERT
@ LWS_SERVER_OPTION_REQUIRE_VALID_OPENSSL_CLIENT_CERT
Definition: lws-context-vhost.h:46
lws_context_creation_info::token_limits
const struct lws_token_limits * token_limits
Definition: lws-context-vhost.h:205
lws_http_mount::extra_mimetypes
const struct lws_protocol_vhost_options * extra_mimetypes
Definition: lws-context-vhost.h:893
lws_context_destroy
LWS_VISIBLE LWS_EXTERN void lws_context_destroy(struct lws_context *context)
lws_context_creation_info::ip_limit_ah
unsigned short ip_limit_ah
Definition: lws-context-vhost.h:453
lws_json_dump_context
LWS_VISIBLE LWS_EXTERN int lws_json_dump_context(const struct lws_context *context, char *buf, int len, int hide_vhosts)
lws_mount_protocols
lws_mount_protocols
Definition: lws-context-vhost.h:863
lws_http_mount::protocol
const char * protocol
Definition: lws-context-vhost.h:886
lws_context_creation_info::client_ssl_ca_filepath
const char * client_ssl_ca_filepath
Definition: lws-context-vhost.h:391
lws_context_creation_info
Definition: lws-context-vhost.h:181
lws_context_creation_info::client_ssl_private_key_filepath
const char * client_ssl_private_key_filepath
Definition: lws-context-vhost.h:385
lws_http_mount::cache_max_age
int cache_max_age
Definition: lws-context-vhost.h:900
lws_context_creation_info::foreign_loops
void ** foreign_loops
Definition: lws-context-vhost.h:485
lws_context_creation_info::client_ssl_cipher_list
const char * client_ssl_cipher_list
Definition: lws-context-vhost.h:400
lws_context_creation_info::reject_service_keywords
const struct lws_protocol_vhost_options * reject_service_keywords
Definition: lws-context-vhost.h:364
LWSMPRO_CGI
@ LWSMPRO_CGI
Definition: lws-context-vhost.h:867
lws_protocol_vhost_options::next
const struct lws_protocol_vhost_options * next
Definition: lws-context-vhost.h:853
lws_context_creation_info::port
int port
Definition: lws-context-vhost.h:182
lws_http_mount::def
const char * def
Definition: lws-context-vhost.h:884
lws_extension
Definition: lws-ws-ext.h:138
lws_http_mount::origin_protocol
unsigned char origin_protocol
Definition: lws-context-vhost.h:909
lws_context_creation_info::protocols
const struct lws_protocols * protocols
Definition: lws-context-vhost.h:198
lws_context_creation_info::mounts
const struct lws_http_mount * mounts
Definition: lws-context-vhost.h:328
lws_http_mount::mountpoint_len
unsigned char mountpoint_len
Definition: lws-context-vhost.h:910
lws_context_creation_info::extensions
const struct lws_extension * extensions
Definition: lws-context-vhost.h:202
lws_context_creation_info::ka_interval
int ka_interval
Definition: lws-context-vhost.h:274
LWSMPRO_CALLBACK
@ LWSMPRO_CALLBACK
Definition: lws-context-vhost.h:870
lws_http_mount::cgienv
const struct lws_protocol_vhost_options * cgienv
Definition: lws-context-vhost.h:889
lws_context_deprecate
LWS_VISIBLE LWS_EXTERN void lws_context_deprecate(struct lws_context *context, lws_reload_func cb)
lws_context_creation_info::simultaneous_ssl_restriction
int simultaneous_ssl_restriction
Definition: lws-context-vhost.h:412
lws_context_creation_info::user
void * user
Definition: lws-context-vhost.h:258
LWS_SERVER_OPTION_IGNORE_MISSING_CERT
@ LWS_SERVER_OPTION_IGNORE_MISSING_CERT
Definition: lws-context-vhost.h:131
lws_context_creation_info::log_filepath
const char * log_filepath
Definition: lws-context-vhost.h:325
lws_context_creation_info::client_ssl_private_key_password
const char * client_ssl_private_key_password
Definition: lws-context-vhost.h:379
LWS_SERVER_OPTION_FALLBACK_TO_RAW
@ LWS_SERVER_OPTION_FALLBACK_TO_RAW
Definition: lws-context-vhost.h:105
lws_create_vhost
LWS_VISIBLE LWS_EXTERN struct lws_vhost * lws_create_vhost(struct lws_context *context, const struct lws_context_creation_info *info)
lws_context_creation_info::alpn
const char * alpn
Definition: lws-context-vhost.h:478
lws_http_mount::cache_revalidate
unsigned int cache_revalidate
Definition: lws-context-vhost.h:906
lws_context_creation_info::count_threads
unsigned int count_threads
Definition: lws-context-vhost.h:298
lws_context_creation_info::pvo
const struct lws_protocol_vhost_options * pvo
Definition: lws-context-vhost.h:319
lws_get_vhost_port
LWS_VISIBLE LWS_EXTERN int lws_get_vhost_port(struct lws_vhost *vhost)
lws_context_creation_info::external_baggage_free_on_destroy
void * external_baggage_free_on_destroy
Definition: lws-context-vhost.h:371
lws_context_creation_info::error_document_404
const char * error_document_404
Definition: lws-context-vhost.h:474
lws_http_mount::cache_reusable
unsigned int cache_reusable
Definition: lws-context-vhost.h:905
lws_http_mount::cgi_timeout
int cgi_timeout
Definition: lws-context-vhost.h:898
LWS_SERVER_OPTION_IPV6_V6ONLY_MODIFY
@ LWS_SERVER_OPTION_IPV6_V6ONLY_MODIFY
Definition: lws-context-vhost.h:88
lws_context_creation_info::uid
int uid
Definition: lws-context-vhost.h:253
LWS_SERVER_OPTION_CREATE_VHOST_SSL_CTX
@ LWS_SERVER_OPTION_CREATE_VHOST_SSL_CTX
Definition: lws-context-vhost.h:119
LWSMPRO_HTTP
@ LWSMPRO_HTTP
Definition: lws-context-vhost.h:864
LWSMPRO_REDIR_HTTP
@ LWSMPRO_REDIR_HTTP
Definition: lws-context-vhost.h:868
lws_context_creation_info::vhost_name
const char * vhost_name
Definition: lws-context-vhost.h:312
LWS_SERVER_OPTION_HTTP_HEADERS_SECURITY_BEST_PRACTICES_ENFORCE
@ LWS_SERVER_OPTION_HTTP_HEADERS_SECURITY_BEST_PRACTICES_ENFORCE
Definition: lws-context-vhost.h:148
lws_context_creation_info::finalize
void(* finalize)(struct lws_vhost *vh, void *arg)
Definition: lws-context-vhost.h:511
lws_context_creation_info::provided_client_ssl_ctx
void * provided_client_ssl_ctx
Definition: lws-context-vhost.h:284
lws_context_creation_info::fd_limit_per_thread
unsigned int fd_limit_per_thread
Definition: lws-context-vhost.h:300
lws_plat_file_ops
Definition: lws-vfs.h:94
lws_context_creation_info::pt_serv_buf_size
unsigned int pt_serv_buf_size
Definition: lws-context-vhost.h:333
LWS_SERVER_OPTION_DISABLE_OS_CA_CERTS
@ LWS_SERVER_OPTION_DISABLE_OS_CA_CERTS
Definition: lws-context-vhost.h:62
lws_context_creation_info::ssl_options_set
long ssl_options_set
Definition: lws-context-vhost.h:344
lwsws_get_config_vhosts
LWS_VISIBLE LWS_EXTERN int lwsws_get_config_vhosts(struct lws_context *context, struct lws_context_creation_info *info, const char *d, char **config_strings, int *len)
lws_context_creation_info::client_ssl_cert_filepath
const char * client_ssl_cert_filepath
Definition: lws-context-vhost.h:382
lws_get_vhost
LWS_VISIBLE LWS_EXTERN struct lws_vhost * lws_get_vhost(struct lws *wsi)
lws_get_vhost_name
LWS_VISIBLE const LWS_EXTERN char * lws_get_vhost_name(struct lws_vhost *vhost)
lws_context_options
lws_context_options
Definition: lws-context-vhost.h:45
lwsws_get_config_globals
LWS_VISIBLE LWS_EXTERN int lwsws_get_config_globals(struct lws_context_creation_info *info, const char *d, char **config_strings, int *len)
LWS_SERVER_OPTION_UV_NO_SIGSEGV_SIGFPE_SPIN
@ LWS_SERVER_OPTION_UV_NO_SIGSEGV_SIGFPE_SPIN
Definition: lws-context-vhost.h:92
lws_vhost_user
LWS_VISIBLE LWS_EXTERN void * lws_vhost_user(struct lws_vhost *vhost)
lws_context_creation_info::ka_probes
int ka_probes
Definition: lws-context-vhost.h:270
lws_protocols
Definition: lws-protocols-plugins.h:43
LWS_SERVER_OPTION_LIBEVENT
@ LWS_SERVER_OPTION_LIBEVENT
Definition: lws-context-vhost.h:107
lws_protocol_vhost_options::options
const struct lws_protocol_vhost_options * options
Definition: lws-context-vhost.h:854
lws_http_mount::mountpoint
const char * mountpoint
Definition: lws-context-vhost.h:880
lws_context_creation_info::timeout_secs
unsigned int timeout_secs
Definition: lws-context-vhost.h:304
lws_context_creation_info::server_string
const char * server_string
Definition: lws-context-vhost.h:330
LWS_SERVER_OPTION_STS
@ LWS_SERVER_OPTION_STS
Definition: lws-context-vhost.h:85
lws_http_mount::origin
const char * origin
Definition: lws-context-vhost.h:882
lws_context_creation_info::client_tls_1_3_plus_cipher_list
const char * client_tls_1_3_plus_cipher_list
Definition: lws-context-vhost.h:538
lws_context_creation_info::signal_cb
void(* signal_cb)(void *event_lib_handle, int signum)
Definition: lws-context-vhost.h:499
lws_context_creation_info::client_ssl_ca_mem
const void * client_ssl_ca_mem
Definition: lws-context-vhost.h:393
lws_http_mount::_unused
void * _unused[2]
Definition: lws-context-vhost.h:923
lws_context_creation_info::ssl_info_event_mask
int ssl_info_event_mask
Definition: lws-context-vhost.h:444
LWS_SERVER_OPTION_PEER_CERT_NOT_REQUIRED
@ LWS_SERVER_OPTION_PEER_CERT_NOT_REQUIRED
Definition: lws-context-vhost.h:65
lws_context_creation_info::max_http_header_data
unsigned short max_http_header_data
Definition: lws-context-vhost.h:287
LWS_SERVER_OPTION_EXPLICIT_VHOSTS
@ LWS_SERVER_OPTION_EXPLICIT_VHOSTS
Definition: lws-context-vhost.h:80
lws_http_mount::interpret
const struct lws_protocol_vhost_options * interpret
Definition: lws-context-vhost.h:895
LWS_SERVER_OPTION_ONLY_RAW
@ LWS_SERVER_OPTION_ONLY_RAW
Definition: lws-context-vhost.h:109
lws_context_creation_info::ssl_ca_filepath
const char * ssl_ca_filepath
Definition: lws-context-vhost.h:229
LWS_SERVER_OPTION_DO_SSL_GLOBAL_INIT
@ LWS_SERVER_OPTION_DO_SSL_GLOBAL_INIT
Definition: lws-context-vhost.h:78
lws_context_creation_info::http_proxy_port
unsigned int http_proxy_port
Definition: lws-context-vhost.h:248
lws_context_creation_info::timeout_secs_ah_idle
unsigned int timeout_secs_ah_idle
Definition: lws-context-vhost.h:450
lws_context_creation_info::client_ssl_ca_mem_len
unsigned int client_ssl_ca_mem_len
Definition: lws-context-vhost.h:396
lws_vhost_destroy
LWS_VISIBLE LWS_EXTERN void lws_vhost_destroy(struct lws_vhost *vh)
lws_context_creation_info::http2_settings
uint32_t http2_settings[7]
Definition: lws-context-vhost.h:468
LWSMPRO_FILE
@ LWSMPRO_FILE
Definition: lws-context-vhost.h:866
lws_context_creation_info::ssl_private_key_password
const char * ssl_private_key_password
Definition: lws-context-vhost.h:208
LWS_SERVER_OPTION_ALLOW_LISTEN_SHARE
@ LWS_SERVER_OPTION_ALLOW_LISTEN_SHARE
Definition: lws-context-vhost.h:113
lws_http_mount::basic_auth_login_file
const char * basic_auth_login_file
Definition: lws-context-vhost.h:912
LWS_SERVER_OPTION_UNIX_SOCK
@ LWS_SERVER_OPTION_UNIX_SOCK
Definition: lws-context-vhost.h:83
lws_context_creation_info::gid
int gid
Definition: lws-context-vhost.h:250
lws_http_mount
Definition: lws-context-vhost.h:877
lws_context_creation_info::ssl_client_options_clear
long ssl_client_options_clear
Definition: lws-context-vhost.h:528
lws_token_limits
Definition: lws-http.h:332
lws_context_creation_info::headers
const struct lws_protocol_vhost_options * headers
Definition: lws-context-vhost.h:360
lws_context_creation_info::max_http_header_data2
unsigned int max_http_header_data2
Definition: lws-context-vhost.h:339
lws_context_creation_info::socks_proxy_port
unsigned int socks_proxy_port
Definition: lws-context-vhost.h:419
lws_context_creation_info::tls1_3_plus_cipher_list
const char * tls1_3_plus_cipher_list
Definition: lws-context-vhost.h:531
lws_get_vhost_user
LWS_VISIBLE LWS_EXTERN void * lws_get_vhost_user(struct lws_vhost *vhost)
lws_set_socks
LWS_VISIBLE LWS_EXTERN int lws_set_socks(struct lws_vhost *vhost, const char *socks)
lws_context_creation_info::_unused
void * _unused[4]
Definition: lws-context-vhost.h:553
lws_context_user
LWS_VISIBLE LWS_EXTERN void * lws_context_user(struct lws_context *context)
lws_http_mount::auth_mask
unsigned int auth_mask
Definition: lws-context-vhost.h:902
lws_context_creation_info::bind_iface
int bind_iface
Definition: lws-context-vhost.h:433
lws_get_vhost_iface
LWS_VISIBLE const LWS_EXTERN char * lws_get_vhost_iface(struct lws_vhost *vhost)
LWS_SERVER_OPTION_SKIP_SERVER_CANONICAL_NAME
@ LWS_SERVER_OPTION_SKIP_SERVER_CANONICAL_NAME
Definition: lws-context-vhost.h:51
LWS_SERVER_OPTION_ALLOW_NON_SSL_ON_SSL_PORT
@ LWS_SERVER_OPTION_ALLOW_NON_SSL_ON_SSL_PORT
Definition: lws-context-vhost.h:53
LWS_SERVER_OPTION_VHOST_UPG_STRICT_HOST_CHECK
@ LWS_SERVER_OPTION_VHOST_UPG_STRICT_HOST_CHECK
Definition: lws-context-vhost.h:137
LWSMPRO_REDIR_HTTPS
@ LWSMPRO_REDIR_HTTPS
Definition: lws-context-vhost.h:869
lws_context_creation_info::ssl_cert_filepath
const char * ssl_cert_filepath
Definition: lws-context-vhost.h:213
lws_context_creation_info::finalize_arg
void * finalize_arg
Definition: lws-context-vhost.h:516
LWS_SERVER_OPTION_IPV6_V6ONLY_VALUE
@ LWS_SERVER_OPTION_IPV6_V6ONLY_VALUE
Definition: lws-context-vhost.h:90
lws_context_creation_info::ka_time
int ka_time
Definition: lws-context-vhost.h:267
LWS_SERVER_OPTION_SSL_ECDH
@ LWS_SERVER_OPTION_SSL_ECDH
Definition: lws-context-vhost.h:69