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 - 2019 Andy Green <andy@warmcat.com>
5  *
6  * Permission is hereby granted, free of charge, to any person obtaining a copy
7  * of this software and associated documentation files (the "Software"), to
8  * deal in the Software without restriction, including without limitation the
9  * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
10  * sell copies of the Software, and to permit persons to whom the Software is
11  * furnished to do so, subject to the following conditions:
12  *
13  * The above copyright notice and this permission notice shall be included in
14  * all copies or substantial portions of the Software.
15  *
16  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
22  * IN THE SOFTWARE.
23  */
24 
38 
40 /*
41  * NOTE: These public enums are part of the abi. If you want to add one,
42  * add it at where specified so existing users are unaffected.
43  */
44 
45 
46 #define LWS_SERVER_OPTION_REQUIRE_VALID_OPENSSL_CLIENT_CERT ((1ll << 1) | \
47  (1ll << 12))
48 
51 #define LWS_SERVER_OPTION_SKIP_SERVER_CANONICAL_NAME (1ll << 2)
52 
53 #define LWS_SERVER_OPTION_ALLOW_NON_SSL_ON_SSL_PORT ((1ll << 3) | \
54  (1ll << 12))
55 
61 #define LWS_SERVER_OPTION_LIBEV (1ll << 4)
62 
63 #define LWS_SERVER_OPTION_DISABLE_IPV6 (1ll << 5)
64 
65 #define LWS_SERVER_OPTION_DISABLE_OS_CA_CERTS (1ll << 6)
66 
68 #define LWS_SERVER_OPTION_PEER_CERT_NOT_REQUIRED (1ll << 7)
69 
70 #define LWS_SERVER_OPTION_VALIDATE_UTF8 (1ll << 8)
71 
72 #define LWS_SERVER_OPTION_SSL_ECDH ((1ll << 9) | \
73  (1ll << 12))
74 
75 #define LWS_SERVER_OPTION_LIBUV (1ll << 10)
76 
77 #define LWS_SERVER_OPTION_REDIRECT_HTTP_TO_HTTPS ((1ll << 11) |\
78  (1ll << 12))
79 
88 #define LWS_SERVER_OPTION_DO_SSL_GLOBAL_INIT (1ll << 12)
89 
90 #define LWS_SERVER_OPTION_EXPLICIT_VHOSTS (1ll << 13)
91 
93 #define LWS_SERVER_OPTION_UNIX_SOCK (1ll << 14)
94 
95 #define LWS_SERVER_OPTION_STS (1ll << 15)
96 
98 #define LWS_SERVER_OPTION_IPV6_V6ONLY_MODIFY (1ll << 16)
99 
100 #define LWS_SERVER_OPTION_IPV6_V6ONLY_VALUE (1ll << 17)
101 
102 #define LWS_SERVER_OPTION_UV_NO_SIGSEGV_SIGFPE_SPIN (1ll << 18)
103 
108 #define LWS_SERVER_OPTION_JUST_USE_RAW_ORIGIN (1ll << 19)
109 
115 #define LWS_SERVER_OPTION_FALLBACK_TO_RAW /* use below name */ (1ll << 20)
116 #define LWS_SERVER_OPTION_FALLBACK_TO_APPLY_LISTEN_ACCEPT_CONFIG (1ll << 20)
117 
129 #define LWS_SERVER_OPTION_LIBEVENT (1ll << 21)
130 
132 #define LWS_SERVER_OPTION_ONLY_RAW /* Use below name instead */ (1ll << 22)
133 #define LWS_SERVER_OPTION_ADOPT_APPLY_LISTEN_ACCEPT_CONFIG (1ll << 22)
134 
146 #define LWS_SERVER_OPTION_ALLOW_LISTEN_SHARE (1ll << 23)
147 
152 #define LWS_SERVER_OPTION_CREATE_VHOST_SSL_CTX (1ll << 24)
153 
159 #define LWS_SERVER_OPTION_SKIP_PROTOCOL_INIT (1ll << 25)
160 
164 #define LWS_SERVER_OPTION_IGNORE_MISSING_CERT (1ll << 26)
165 
170 #define LWS_SERVER_OPTION_VHOST_UPG_STRICT_HOST_CHECK (1ll << 27)
171 
181 #define LWS_SERVER_OPTION_HTTP_HEADERS_SECURITY_BEST_PRACTICES_ENFORCE (1ll << 28)
182 
198 #define LWS_SERVER_OPTION_ALLOW_HTTP_ON_HTTPS_LISTENER (1ll << 29)
199 
206 #define LWS_SERVER_OPTION_FAIL_UPON_UNABLE_TO_BIND (1ll << 30)
207 
211 #define LWS_SERVER_OPTION_H2_JUST_FIX_WINDOW_UPDATE_OVERFLOW (1ll << 31)
212 
215 #define LWS_SERVER_OPTION_VH_H2_HALF_CLOSED_LONG_POLL (1ll << 32)
216 
221 #define LWS_SERVER_OPTION_GLIB (1ll << 33)
222 
224  /****** add new things just above ---^ ******/
225 
226 
227 #define lws_check_opt(c, f) ((((uint64_t)c) & ((uint64_t)f)) == ((uint64_t)f))
228 
229 struct lws_plat_file_ops;
230 
231 typedef int (*lws_context_ready_cb_t)(struct lws_context *context);
232 
243  int port;
252  const char *iface;
259  const struct lws_protocols *protocols;
265  const struct lws_extension *extensions;
276  const char *ssl_cert_filepath;
302  const char *ssl_ca_filepath;
311  const char *ssl_cipher_list;
321  const char *http_proxy_address;
325  unsigned int http_proxy_port;
327  int gid;
330  int uid;
333  uint64_t options;
335  void *user;
344  int ka_time;
354 #if defined(LWS_WITH_TLS) && !defined(LWS_WITH_MBEDTLS)
355  SSL_CTX *provided_client_ssl_ctx;
360 #else /* maintain structure layout either way */
362 #endif
363 
364  unsigned short max_http_header_data;
367  unsigned short max_http_header_pool;
375  unsigned int count_threads;
377  unsigned int fd_limit_per_thread;
393  unsigned int timeout_secs;
398  const char *ecdh_curve;
401  const char *vhost_name;
405  const char * const *plugin_dirs;
415  const char *log_filepath;
418  const struct lws_http_mount *mounts;
420  const char *server_string;
423  unsigned int pt_serv_buf_size;
429  unsigned int max_http_header_data2;
438  unsigned short ws_ping_pong_interval;
475  const void *client_ssl_cert_mem;
489  const void *client_ssl_ca_mem;
492  unsigned int client_ssl_ca_mem_len;
501  const struct lws_plat_file_ops *fops;
511  const char *socks_proxy_address;
515  unsigned int socks_proxy_port;
519 #if defined(LWS_HAVE_SYS_CAPABILITY_H) && defined(LWS_HAVE_LIBCAP)
520  cap_value_t caps[4];
527  char count_caps;
530 #endif
548  unsigned int timeout_secs_ah_idle;
551  unsigned short ip_limit_ah;
559  unsigned short ip_limit_wsi;
566  uint32_t http2_settings[7];
572  const char *error_document_404;
576  const char *alpn;
597  void (*signal_cb)(void *event_lib_handle, int signum);
603  struct lws_context **pcontext;
609  void (*finalize)(struct lws_vhost *vh, void *arg);
618  unsigned int max_http_header_pool2;
642  const char *listen_accept_role;
651  const struct lws_protocols **pprotocols;
662  const void *server_ssl_cert_mem;
676  const void *server_ssl_ca_mem;
680  unsigned int server_ssl_ca_mem_len;
682  const char *username;
684  const char *groupname;
686  const char *unix_socket_perms;
693  det_lat_buf_cb_t detailed_latency_cb;
702  lws_state_notify_link_t **register_notifier_list;
713  /* Add new things just above here ---^
714  * This is part of the ABI, don't needlessly break compatibility
715  *
716  * The below is to ensure later library versions with new
717  * members added above will see 0 (default) even if the app
718  * was not built against the newer headers.
719  */
720 
721  void *_unused[4];
722 };
723 
758 LWS_VISIBLE LWS_EXTERN struct lws_context *
760 
761 
770 LWS_VISIBLE LWS_EXTERN void
771 lws_context_destroy(struct lws_context *context);
772 
773 typedef int (*lws_reload_func)(void);
774 
797 LWS_VISIBLE LWS_EXTERN void
798 lws_context_deprecate(struct lws_context *context, lws_reload_func cb);
799 
800 LWS_VISIBLE LWS_EXTERN int
801 lws_context_is_deprecated(struct lws_context *context);
802 
820 LWS_VISIBLE LWS_EXTERN int
821 lws_set_proxy(struct lws_vhost *vhost, const char *proxy);
822 
840 LWS_VISIBLE LWS_EXTERN int
841 lws_set_socks(struct lws_vhost *vhost, const char *socks);
842 
843 struct lws_vhost;
844 
854 LWS_VISIBLE LWS_EXTERN struct lws_vhost *
855 lws_create_vhost(struct lws_context *context,
856  const struct lws_context_creation_info *info);
857 
876 LWS_VISIBLE LWS_EXTERN void
877 lws_vhost_destroy(struct lws_vhost *vh);
878 
893 LWS_VISIBLE LWS_EXTERN int
894 lwsws_get_config_globals(struct lws_context_creation_info *info, const char *d,
895  char **config_strings, int *len);
896 
912 LWS_VISIBLE LWS_EXTERN int
913 lwsws_get_config_vhosts(struct lws_context *context,
914  struct lws_context_creation_info *info, const char *d,
915  char **config_strings, int *len);
916 
922 LWS_VISIBLE LWS_EXTERN struct lws_vhost *
923 lws_get_vhost(struct lws *wsi);
924 
930 LWS_VISIBLE LWS_EXTERN const char *
931 lws_get_vhost_name(struct lws_vhost *vhost);
932 
941 LWS_VISIBLE LWS_EXTERN struct lws_vhost *
942 lws_get_vhost_by_name(struct lws_context *context, const char *name);
943 
949 LWS_VISIBLE LWS_EXTERN int
950 lws_get_vhost_port(struct lws_vhost *vhost);
951 
957 LWS_VISIBLE LWS_EXTERN void *
958 lws_get_vhost_user(struct lws_vhost *vhost);
959 
965 LWS_VISIBLE LWS_EXTERN const char *
966 lws_get_vhost_iface(struct lws_vhost *vhost);
967 
975 LWS_VISIBLE LWS_EXTERN int
976 lws_json_dump_vhost(const struct lws_vhost *vh, char *buf, int len);
977 
988 LWS_VISIBLE LWS_EXTERN int
989 lws_json_dump_context(const struct lws_context *context, char *buf, int len,
990  int hide_vhosts);
991 
1000 LWS_VISIBLE LWS_EXTERN void *
1001 lws_vhost_user(struct lws_vhost *vhost);
1002 
1012 LWS_VISIBLE LWS_EXTERN void *
1013 lws_context_user(struct lws_context *context);
1014 
1020 
1030  const char *name;
1031  const char *value;
1032 };
1033 
1046 };
1047 
1055 };
1056 
1058 #define AUTH_MODE_MASK 0xF0000000
1059 
1067  const char *mountpoint;
1069  const char *origin;
1071  const char *def;
1073  const char *protocol;
1089  unsigned int auth_mask;
1092  unsigned int cache_reusable:1;
1093  unsigned int cache_revalidate:1;
1094  unsigned int cache_intermediaries:1;
1096  unsigned char origin_protocol;
1097  unsigned char mountpoint_len;
1102  /* Add new things just above here ---^
1103  * This is part of the ABI, don't needlessly break compatibility
1104  *
1105  * The below is to ensure later library versions with new
1106  * members added above will see 0 (default) even if the app
1107  * was not built against the newer headers.
1108  */
1109 
1110  void *_unused[2];
1111 };
1112 
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:367
lws_http_mount::cache_intermediaries
unsigned int cache_intermediaries
Definition: lws-context-vhost.h:1094
lws_context_creation_info::ssl_options_clear
long ssl_options_clear
Definition: lws-context-vhost.h:436
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:1027
lws_context_creation_info::ssl_private_key_filepath
const char * ssl_private_key_filepath
Definition: lws-context-vhost.h:288
lws_context_creation_info::fops
const struct lws_plat_file_ops * fops
Definition: lws-context-vhost.h:501
LWSMPRO_HTTPS
Definition: lws-context-vhost.h:1040
lws_context_creation_info::ecdh_curve
const char * ecdh_curve
Definition: lws-context-vhost.h:398
lws_context_creation_info::plugin_dirs
const char *const * plugin_dirs
Definition: lws-context-vhost.h:405
lws_context_creation_info::socks_proxy_address
const char * socks_proxy_address
Definition: lws-context-vhost.h:511
lws_context_creation_info::unix_socket_perms
const char * unix_socket_perms
Definition: lws-context-vhost.h:686
lws_protocol_vhost_options::value
const char * value
Definition: lws-context-vhost.h:1031
lws_context_creation_info::max_http_header_pool2
unsigned int max_http_header_pool2
Definition: lws-context-vhost.h:618
lws_context_creation_info::ssl_client_options_set
long ssl_client_options_set
Definition: lws-context-vhost.h:624
lws_protocol_vhost_options::name
const char * name
Definition: lws-context-vhost.h:1030
lws_context_creation_info::iface
const char * iface
Definition: lws-context-vhost.h:252
lws_context_creation_info::listen_accept_protocol
const char * listen_accept_protocol
Definition: lws-context-vhost.h:647
lws_authentication_mode
lws_authentication_mode
Definition: lws-context-vhost.h:1052
lws_context_creation_info::http_proxy_address
const char * http_proxy_address
Definition: lws-context-vhost.h:321
lws_http_mount::mount_next
const struct lws_http_mount * mount_next
Definition: lws-context-vhost.h:1065
lws_context_creation_info::ssl_cipher_list
const char * ssl_cipher_list
Definition: lws-context-vhost.h:311
lws_context_creation_info::pcontext
struct lws_context ** pcontext
Definition: lws-context-vhost.h:603
lws_context_creation_info::ip_limit_wsi
unsigned short ip_limit_wsi
Definition: lws-context-vhost.h:559
lws_context_creation_info::ws_ping_pong_interval
unsigned short ws_ping_pong_interval
Definition: lws-context-vhost.h:438
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:411
lws_context_creation_info::token_limits
const struct lws_token_limits * token_limits
Definition: lws-context-vhost.h:268
lws_http_mount::extra_mimetypes
const struct lws_protocol_vhost_options * extra_mimetypes
Definition: lws-context-vhost.h:1080
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:551
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:1038
lws_http_mount::protocol
const char * protocol
Definition: lws-context-vhost.h:1073
lws_context_creation_info::client_ssl_ca_filepath
const char * client_ssl_ca_filepath
Definition: lws-context-vhost.h:487
lws_context_creation_info
Definition: lws-context-vhost.h:242
lws_context_creation_info::client_ssl_private_key_filepath
const char * client_ssl_private_key_filepath
Definition: lws-context-vhost.h:481
lws_http_mount::cache_max_age
int cache_max_age
Definition: lws-context-vhost.h:1087
lws_context_creation_info::foreign_loops
void ** foreign_loops
Definition: lws-context-vhost.h:583
lws_context_creation_info::client_ssl_cipher_list
const char * client_ssl_cipher_list
Definition: lws-context-vhost.h:496
lws_context_creation_info::reject_service_keywords
const struct lws_protocol_vhost_options * reject_service_keywords
Definition: lws-context-vhost.h:454
LWSMPRO_CGI
Definition: lws-context-vhost.h:1042
lws_protocol_vhost_options::next
const struct lws_protocol_vhost_options * next
Definition: lws-context-vhost.h:1028
lws_context_creation_info::port
int port
Definition: lws-context-vhost.h:243
lws_http_mount::def
const char * def
Definition: lws-context-vhost.h:1071
lws_extension
Definition: lws-ws-ext.h:139
lws_http_mount::origin_protocol
unsigned char origin_protocol
Definition: lws-context-vhost.h:1096
lws_context_creation_info::server_ssl_private_key_mem
const void * server_ssl_private_key_mem
Definition: lws-context-vhost.h:669
lws_context_creation_info::protocols
const struct lws_protocols * protocols
Definition: lws-context-vhost.h:259
lws_context_creation_info::mounts
const struct lws_http_mount * mounts
Definition: lws-context-vhost.h:418
lws_context_creation_info::detailed_latency_cb
det_lat_buf_cb_t detailed_latency_cb
Definition: lws-context-vhost.h:693
lws_http_mount::mountpoint_len
unsigned char mountpoint_len
Definition: lws-context-vhost.h:1097
lws_context_creation_info::extensions
const struct lws_extension * extensions
Definition: lws-context-vhost.h:265
lws_system_ops
Definition: lws-system.h:121
lws_context_creation_info::ka_interval
int ka_interval
Definition: lws-context-vhost.h:351
LWSMPRO_CALLBACK
Definition: lws-context-vhost.h:1045
lws_http_mount::cgienv
const struct lws_protocol_vhost_options * cgienv
Definition: lws-context-vhost.h:1076
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:508
lws_context_creation_info::user
void * user
Definition: lws-context-vhost.h:335
lws_context_creation_info::log_filepath
const char * log_filepath
Definition: lws-context-vhost.h:415
lws_context_creation_info::client_ssl_private_key_password
const char * client_ssl_private_key_password
Definition: lws-context-vhost.h:469
lws_context_creation_info::system_ops
const lws_system_ops_t * system_ops
Definition: lws-context-vhost.h:690
lws_context_creation_info::server_ssl_cert_mem
const void * server_ssl_cert_mem
Definition: lws-context-vhost.h:662
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:576
lws_http_mount::cache_revalidate
unsigned int cache_revalidate
Definition: lws-context-vhost.h:1093
lws_context_creation_info::count_threads
unsigned int count_threads
Definition: lws-context-vhost.h:375
lws_context_creation_info::pvo
const struct lws_protocol_vhost_options * pvo
Definition: lws-context-vhost.h:408
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:461
lws_context_creation_info::error_document_404
const char * error_document_404
Definition: lws-context-vhost.h:572
lws_http_mount::cache_reusable
unsigned int cache_reusable
Definition: lws-context-vhost.h:1092
lws_http_mount::cgi_timeout
int cgi_timeout
Definition: lws-context-vhost.h:1085
lws_context_creation_info::udp_loss_sim_rx_pc
uint8_t udp_loss_sim_rx_pc
Definition: lws-context-vhost.h:709
lws_context_creation_info::uid
int uid
Definition: lws-context-vhost.h:330
LWSMPRO_HTTP
Definition: lws-context-vhost.h:1039
LWSMPRO_REDIR_HTTP
Definition: lws-context-vhost.h:1043
lws_context_creation_info::udp_loss_sim_tx_pc
uint8_t udp_loss_sim_tx_pc
Definition: lws-context-vhost.h:706
LWSAUTHM_BASIC_AUTH_CALLBACK
Definition: lws-context-vhost.h:1054
lws_context_creation_info::vhost_name
const char * vhost_name
Definition: lws-context-vhost.h:401
lws_context_creation_info::finalize
void(* finalize)(struct lws_vhost *vh, void *arg)
Definition: lws-context-vhost.h:609
lws_context_creation_info::server_ssl_cert_mem_len
unsigned int server_ssl_cert_mem_len
Definition: lws-context-vhost.h:666
lws_context_creation_info::provided_client_ssl_ctx
void * provided_client_ssl_ctx
Definition: lws-context-vhost.h:361
lws_context_creation_info::client_ssl_cert_mem_len
unsigned int client_ssl_cert_mem_len
Definition: lws-context-vhost.h:478
lws_context_creation_info::fd_limit_per_thread
unsigned int fd_limit_per_thread
Definition: lws-context-vhost.h:377
lws_plat_file_ops
Definition: lws-vfs.h:95
lws_context_creation_info::pt_serv_buf_size
unsigned int pt_serv_buf_size
Definition: lws-context-vhost.h:423
lws_context_creation_info::ssl_options_set
long ssl_options_set
Definition: lws-context-vhost.h:434
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:472
lws_context_creation_info::listen_accept_role
const char * listen_accept_role
Definition: lws-context-vhost.h:642
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)
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_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:347
lws_protocols
Definition: lws-protocols-plugins.h:44
lws_protocol_vhost_options::options
const struct lws_protocol_vhost_options * options
Definition: lws-context-vhost.h:1029
lws_http_mount::mountpoint
const char * mountpoint
Definition: lws-context-vhost.h:1067
lws_context_creation_info::timeout_secs
unsigned int timeout_secs
Definition: lws-context-vhost.h:393
lws_context_creation_info::server_string
const char * server_string
Definition: lws-context-vhost.h:420
lws_retry_bo
Definition: lws-retry.h:25
lws_http_mount::origin
const char * origin
Definition: lws-context-vhost.h:1069
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:636
lws_get_vhost_by_name
LWS_VISIBLE LWS_EXTERN struct lws_vhost * lws_get_vhost_by_name(struct lws_context *context, const char *name)
lws_context_creation_info::signal_cb
void(* signal_cb)(void *event_lib_handle, int signum)
Definition: lws-context-vhost.h:597
lws_context_creation_info::options
uint64_t options
Definition: lws-context-vhost.h:333
lws_context_creation_info::client_ssl_ca_mem
const void * client_ssl_ca_mem
Definition: lws-context-vhost.h:489
lws_http_mount::_unused
void * _unused[2]
Definition: lws-context-vhost.h:1110
lws_context_creation_info::ssl_info_event_mask
int ssl_info_event_mask
Definition: lws-context-vhost.h:542
lws_context_creation_info::max_http_header_data
unsigned short max_http_header_data
Definition: lws-context-vhost.h:364
lws_http_mount::interpret
const struct lws_protocol_vhost_options * interpret
Definition: lws-context-vhost.h:1082
lws_context_creation_info::server_ssl_ca_mem
const void * server_ssl_ca_mem
Definition: lws-context-vhost.h:676
lws_context_creation_info::ssl_ca_filepath
const char * ssl_ca_filepath
Definition: lws-context-vhost.h:302
lws_context_creation_info::http_proxy_port
unsigned int http_proxy_port
Definition: lws-context-vhost.h:325
lws_context_creation_info::timeout_secs_ah_idle
unsigned int timeout_secs_ah_idle
Definition: lws-context-vhost.h:548
lws_context_creation_info::client_ssl_ca_mem_len
unsigned int client_ssl_ca_mem_len
Definition: lws-context-vhost.h:492
lws_vhost_destroy
LWS_VISIBLE LWS_EXTERN void lws_vhost_destroy(struct lws_vhost *vh)
lws_context_creation_info::pprotocols
const struct lws_protocols ** pprotocols
Definition: lws-context-vhost.h:651
lws_context_creation_info::detailed_latency_filepath
const char * detailed_latency_filepath
Definition: lws-context-vhost.h:696
lws_context_creation_info::http2_settings
uint32_t http2_settings[7]
Definition: lws-context-vhost.h:566
LWSMPRO_FILE
Definition: lws-context-vhost.h:1041
lws_context_creation_info::ssl_private_key_password
const char * ssl_private_key_password
Definition: lws-context-vhost.h:271
lws_http_mount::basic_auth_login_file
const char * basic_auth_login_file
Definition: lws-context-vhost.h:1099
lws_context_creation_info::register_notifier_list
lws_state_notify_link_t ** register_notifier_list
Definition: lws-context-vhost.h:702
lws_context_creation_info::gid
int gid
Definition: lws-context-vhost.h:327
lws_http_mount
Definition: lws-context-vhost.h:1064
lws_context_creation_info::ssl_client_options_clear
long ssl_client_options_clear
Definition: lws-context-vhost.h:626
lws_token_limits
Definition: lws-http.h:336
lws_context_creation_info::headers
const struct lws_protocol_vhost_options * headers
Definition: lws-context-vhost.h:450
lws_context_creation_info::max_http_header_data2
unsigned int max_http_header_data2
Definition: lws-context-vhost.h:429
lws_context_creation_info::socks_proxy_port
unsigned int socks_proxy_port
Definition: lws-context-vhost.h:515
lws_context_creation_info::server_ssl_private_key_mem_len
unsigned int server_ssl_private_key_mem_len
Definition: lws-context-vhost.h:674
lws_context_creation_info::tls1_3_plus_cipher_list
const char * tls1_3_plus_cipher_list
Definition: lws-context-vhost.h:629
lws_context_creation_info::client_ssl_cert_mem
const void * client_ssl_cert_mem
Definition: lws-context-vhost.h:475
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:721
lws_context_creation_info::retry_and_idle_policy
const lws_retry_bo_t * retry_and_idle_policy
Definition: lws-context-vhost.h:698
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:1089
lws_context_creation_info::bind_iface
int bind_iface
Definition: lws-context-vhost.h:531
lws_context_creation_info::username
const char * username
Definition: lws-context-vhost.h:682
lws_context_creation_info::groupname
const char * groupname
Definition: lws-context-vhost.h:684
lws_get_vhost_iface
LWS_VISIBLE const LWS_EXTERN char * lws_get_vhost_iface(struct lws_vhost *vhost)
LWSAUTHM_DEFAULT
Definition: lws-context-vhost.h:1053
LWSMPRO_REDIR_HTTPS
Definition: lws-context-vhost.h:1044
lws_context_creation_info::ssl_cert_filepath
const char * ssl_cert_filepath
Definition: lws-context-vhost.h:276
lws_context_creation_info::finalize_arg
void * finalize_arg
Definition: lws-context-vhost.h:614
lws_context_creation_info::ka_time
int ka_time
Definition: lws-context-vhost.h:344
lws_context_creation_info::server_ssl_ca_mem_len
unsigned int server_ssl_ca_mem_len
Definition: lws-context-vhost.h:680