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 #define LWS_SERVER_OPTION_H2_PRIOR_KNOWLEDGE (1ll << 34)
225 
229 #define LWS_SERVER_OPTION_NO_LWS_SYSTEM_STATES (1ll << 35)
230 
233  /****** add new things just above ---^ ******/
234 
235 
236 #define lws_check_opt(c, f) ((((uint64_t)c) & ((uint64_t)f)) == ((uint64_t)f))
237 
238 struct lws_plat_file_ops;
239 struct lws_ss_policy;
240 struct lws_ss_plugin;
241 
242 typedef int (*lws_context_ready_cb_t)(struct lws_context *context);
243 
244 typedef int (*lws_peer_limits_notify_t)(struct lws_context *ctx,
245  lws_sockfd_type sockfd,
246  lws_sockaddr46 *sa46);
247 
258 #if defined(LWS_WITH_NETWORK)
259  const char *iface;
266  const struct lws_protocols *protocols;
272 #if defined(LWS_ROLE_WS)
273  const struct lws_extension *extensions;
276 #endif
277 #if defined(LWS_ROLE_H1) || defined(LWS_ROLE_H2)
278  const struct lws_token_limits *token_limits;
281  const char *http_proxy_address;
285  const struct lws_protocol_vhost_options *headers;
289  const struct lws_protocol_vhost_options *reject_service_keywords;
296  const struct lws_protocol_vhost_options *pvo;
299  const char *log_filepath;
302  const struct lws_http_mount *mounts;
304  const char *server_string;
308  const char *error_document_404;
312  int port;
322  unsigned int http_proxy_port;
324  unsigned int max_http_header_data2;
329  unsigned int max_http_header_pool2;
335  int keepalive_timeout;
339  uint32_t http2_settings[7];
346  unsigned short max_http_header_data;
349  unsigned short max_http_header_pool;
357 #endif
358 
359 #if defined(LWS_WITH_TLS)
360  const char *ssl_private_key_password;
365  const char *ssl_cert_filepath;
377  const char *ssl_private_key_filepath;
391  const char *ssl_ca_filepath;
400  const char *ssl_cipher_list;
410  const char *ecdh_curve;
413  const char *tls1_3_plus_cipher_list;
421  const void *server_ssl_cert_mem;
425  const void *server_ssl_private_key_mem;
430  const void *server_ssl_ca_mem;
435  long ssl_options_set;
437  long ssl_options_clear;
439  int simultaneous_ssl_restriction;
442  int ssl_info_event_mask;
448  unsigned int server_ssl_cert_mem_len;
451  unsigned int server_ssl_private_key_mem_len;
453  unsigned int server_ssl_ca_mem_len;
456  const char *alpn;
465 #if defined(LWS_WITH_CLIENT)
466  const char *client_ssl_private_key_password;
469  const char *client_ssl_cert_filepath;
472  const void *client_ssl_cert_mem;
475  unsigned int client_ssl_cert_mem_len;
478  const char *client_ssl_private_key_filepath;
484  const void *client_ssl_key_mem;
487  const char *client_ssl_ca_filepath;
489  const void *client_ssl_ca_mem;
493  const char *client_ssl_cipher_list;
497  const char *client_tls_1_3_plus_cipher_list;
504  long ssl_client_options_set;
506  long ssl_client_options_clear;
510  unsigned int client_ssl_ca_mem_len;
513  unsigned int client_ssl_key_mem_len;
517 #endif
518 
519 #if !defined(LWS_WITH_MBEDTLS)
520  SSL_CTX *provided_client_ssl_ctx;
525 #endif
526 #endif
527 
528  int ka_time;
531  int ka_probes;
535  int ka_interval;
538  unsigned int timeout_secs;
543  unsigned int connect_timeout_secs;
547  int bind_iface;
558  unsigned int timeout_secs_ah_idle;
561 #endif /* WITH_NETWORK */
562 
563  int gid;
566  int uid;
569  uint64_t options;
571  void *user;
580  unsigned int count_threads;
582  unsigned int fd_limit_per_thread;
598  const char *vhost_name;
602 #if defined(LWS_WITH_PLUGINS)
603  const char * const *plugin_dirs;
606 #endif
616  unsigned int pt_serv_buf_size;
622 #if defined(LWS_WITH_FILE_OPS)
623  const struct lws_plat_file_ops *fops;
630 #endif
631 
632 #if defined(LWS_WITH_SOCKS5)
633  const char *socks_proxy_address;
637  unsigned int socks_proxy_port;
641 #endif
642 
643 #if defined(LWS_HAVE_SYS_CAPABILITY_H) && defined(LWS_HAVE_LIBCAP)
644  cap_value_t caps[4];
651  char count_caps;
654 #endif
669  void (*signal_cb)(void *event_lib_handle, int signum);
675  struct lws_context **pcontext;
681  void (*finalize)(struct lws_vhost *vh, void *arg);
690  const char *listen_accept_role;
699  const struct lws_protocols **pprotocols;
710  const char *username;
712  const char *groupname;
714  const char *unix_socket_perms;
721 #if defined(LWS_WITH_DETAILED_LATENCY)
722  det_lat_buf_cb_t detailed_latency_cb;
725  const char *detailed_latency_filepath;
727 #endif
732 #if defined(LWS_WITH_SYS_STATE)
733  lws_state_notify_link_t * const *register_notifier_list;
737 #endif
738 #if defined(LWS_WITH_SECURE_STREAMS)
739 #if defined(LWS_WITH_SECURE_STREAMS_STATIC_POLICY_ONLY)
740  const struct lws_ss_policy *pss_policies;
742 #else
743  const char *pss_policies_json;
746 #endif
747  const struct lws_ss_plugin **pss_plugins;
750  const char *ss_proxy_bind;
755  const char *ss_proxy_address;
757  uint16_t ss_proxy_port; /* 0 = if connecting to ss proxy, do it via a
758  * Unix Domain Socket, "+@proxy.ss.lws" if ss_proxy_bind is NULL else
759  * the socket path given in ss_proxy_bind (start it with a + or +@);
760  * nonzero means connect via a tcp socket to the tcp address in
761  * ss_proxy_bind and the given port */
762 #endif
763 
768 #if defined(LWS_WITH_PEER_LIMITS)
769  lws_peer_limits_notify_t pl_notify_cb;
776  unsigned short ip_limit_ah;
784  unsigned short ip_limit_wsi;
792 #endif /* PEER_LIMITS */
793 #if defined(LWS_WITH_UDP)
794  uint8_t udp_loss_sim_tx_pc;
797  uint8_t udp_loss_sim_rx_pc;
800 #endif
801 
802 #if defined(LWS_WITH_SYS_SMD)
803  lws_smd_notification_cb_t early_smd_cb;
810  void *early_smd_opaque;
811  lws_smd_class_t early_smd_class_filter;
812 #endif
813 
814  /* Add new things just above here ---^
815  * This is part of the ABI, don't needlessly break compatibility
816  *
817  * The below is to ensure later library versions with new
818  * members added above will see 0 (default) even if the app
819  * was not built against the newer headers.
820  */
821 
822  void *_unused[2];
823 };
824 
859 LWS_VISIBLE LWS_EXTERN struct lws_context *
861 
862 
871 LWS_VISIBLE LWS_EXTERN void
872 lws_context_destroy(struct lws_context *context);
873 
874 typedef int (*lws_reload_func)(void);
875 
898 LWS_VISIBLE LWS_EXTERN void
899 lws_context_deprecate(struct lws_context *context, lws_reload_func cb);
900 
901 LWS_VISIBLE LWS_EXTERN int
902 lws_context_is_deprecated(struct lws_context *context);
903 
921 LWS_VISIBLE LWS_EXTERN int
922 lws_set_proxy(struct lws_vhost *vhost, const char *proxy);
923 
941 LWS_VISIBLE LWS_EXTERN int
942 lws_set_socks(struct lws_vhost *vhost, const char *socks);
943 
944 struct lws_vhost;
945 
955 LWS_VISIBLE LWS_EXTERN struct lws_vhost *
956 lws_create_vhost(struct lws_context *context,
957  const struct lws_context_creation_info *info);
958 
977 LWS_VISIBLE LWS_EXTERN void
978 lws_vhost_destroy(struct lws_vhost *vh);
979 
994 LWS_VISIBLE LWS_EXTERN int
996  char **config_strings, int *len);
997 
1013 LWS_VISIBLE LWS_EXTERN int
1014 lwsws_get_config_vhosts(struct lws_context *context,
1015  struct lws_context_creation_info *info, const char *d,
1016  char **config_strings, int *len);
1017 
1023 LWS_VISIBLE LWS_EXTERN struct lws_vhost *
1024 lws_get_vhost(struct lws *wsi);
1025 
1031 LWS_VISIBLE LWS_EXTERN const char *
1032 lws_get_vhost_name(struct lws_vhost *vhost);
1033 
1042 LWS_VISIBLE LWS_EXTERN struct lws_vhost *
1043 lws_get_vhost_by_name(struct lws_context *context, const char *name);
1044 
1050 LWS_VISIBLE LWS_EXTERN int
1051 lws_get_vhost_port(struct lws_vhost *vhost);
1052 
1058 LWS_VISIBLE LWS_EXTERN void *
1059 lws_get_vhost_user(struct lws_vhost *vhost);
1060 
1066 LWS_VISIBLE LWS_EXTERN const char *
1067 lws_get_vhost_iface(struct lws_vhost *vhost);
1068 
1076 LWS_VISIBLE LWS_EXTERN int
1077 lws_json_dump_vhost(const struct lws_vhost *vh, char *buf, int len);
1078 
1089 LWS_VISIBLE LWS_EXTERN int
1090 lws_json_dump_context(const struct lws_context *context, char *buf, int len,
1091  int hide_vhosts);
1092 
1101 LWS_VISIBLE LWS_EXTERN void *
1102 lws_vhost_user(struct lws_vhost *vhost);
1103 
1113 LWS_VISIBLE LWS_EXTERN void *
1114 lws_context_user(struct lws_context *context);
1115 
1121 
1131  const char *name;
1132  const char *value;
1133 };
1134 
1147 };
1148 
1155  LWSAUTHM_BASIC_AUTH_CALLBACK = 1 << 28
1156 };
1157 
1159 #define AUTH_MODE_MASK 0xF0000000
1160 
1168  const char *mountpoint;
1170  const char *origin;
1172  const char *def;
1174  const char *protocol;
1190  unsigned int auth_mask;
1193  unsigned int cache_reusable:1;
1194  unsigned int cache_revalidate:1;
1195  unsigned int cache_intermediaries:1;
1197  unsigned char origin_protocol;
1198  unsigned char mountpoint_len;
1203  /* Add new things just above here ---^
1204  * This is part of the ABI, don't needlessly break compatibility
1205  *
1206  * The below is to ensure later library versions with new
1207  * members added above will see 0 (default) even if the app
1208  * was not built against the newer headers.
1209  */
1210 
1211  void *_unused[2];
1212 };
1213 
lws_set_proxy
LWS_VISIBLE LWS_EXTERN int lws_set_proxy(struct lws_vhost *vhost, const char *proxy)
lws_http_mount::cache_intermediaries
unsigned int cache_intermediaries
Definition: lws-context-vhost.h:1195
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:1128
LWSMPRO_HTTPS
@ LWSMPRO_HTTPS
Definition: lws-context-vhost.h:1141
lws_context_creation_info::unix_socket_perms
const char * unix_socket_perms
Definition: lws-context-vhost.h:714
lws_protocol_vhost_options::value
const char * value
Definition: lws-context-vhost.h:1132
lws_sockaddr46
Definition: lws-network-helper.h:36
lws_ss_policy
Definition: lws-secure-streams-policy.h:180
lws_protocol_vhost_options::name
const char * name
Definition: lws-context-vhost.h:1131
lws_context_creation_info::listen_accept_protocol
const char * listen_accept_protocol
Definition: lws-context-vhost.h:695
lws_authentication_mode
lws_authentication_mode
Definition: lws-context-vhost.h:1153
lws_http_mount::mount_next
const struct lws_http_mount * mount_next
Definition: lws-context-vhost.h:1166
lws_context_creation_info::pcontext
struct lws_context ** pcontext
Definition: lws-context-vhost.h:675
lws_get_vhost_name
LWS_VISIBLE LWS_EXTERN const char * lws_get_vhost_name(struct lws_vhost *vhost)
lws_json_dump_vhost
LWS_VISIBLE LWS_EXTERN int lws_json_dump_vhost(const struct lws_vhost *vh, char *buf, int len)
lws_http_mount::extra_mimetypes
const struct lws_protocol_vhost_options * extra_mimetypes
Definition: lws-context-vhost.h:1181
lws_context_destroy
LWS_VISIBLE LWS_EXTERN void lws_context_destroy(struct lws_context *context)
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:1139
lws_http_mount::protocol
const char * protocol
Definition: lws-context-vhost.h:1174
lws_context_creation_info
Definition: lws-context-vhost.h:257
lws_context_creation_info::_unused
void * _unused[2]
Definition: lws-context-vhost.h:822
lws_http_mount::cache_max_age
int cache_max_age
Definition: lws-context-vhost.h:1188
lws_context_creation_info::foreign_loops
void ** foreign_loops
Definition: lws-context-vhost.h:655
LWSMPRO_CGI
@ LWSMPRO_CGI
Definition: lws-context-vhost.h:1143
lws_protocol_vhost_options::next
const struct lws_protocol_vhost_options * next
Definition: lws-context-vhost.h:1129
lws_http_mount::def
const char * def
Definition: lws-context-vhost.h:1172
lws_extension
Definition: lws-ws-ext.h:139
lws_http_mount::origin_protocol
unsigned char origin_protocol
Definition: lws-context-vhost.h:1197
lws_http_mount::mountpoint_len
unsigned char mountpoint_len
Definition: lws-context-vhost.h:1198
lws_system_ops
Definition: lws-system.h:146
LWSMPRO_CALLBACK
@ LWSMPRO_CALLBACK
Definition: lws-context-vhost.h:1146
lws_http_mount::cgienv
const struct lws_protocol_vhost_options * cgienv
Definition: lws-context-vhost.h:1177
lws_context_deprecate
LWS_VISIBLE LWS_EXTERN void lws_context_deprecate(struct lws_context *context, lws_reload_func cb)
lws_context_creation_info::rlimit_nofile
int rlimit_nofile
Definition: lws-context-vhost.h:764
lws_context_creation_info::user
void * user
Definition: lws-context-vhost.h:571
lws_context_creation_info::system_ops
const lws_system_ops_t * system_ops
Definition: lws-context-vhost.h:718
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_http_mount::cache_revalidate
unsigned int cache_revalidate
Definition: lws-context-vhost.h:1194
lws_context_creation_info::count_threads
unsigned int count_threads
Definition: lws-context-vhost.h:580
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:607
lws_http_mount::cache_reusable
unsigned int cache_reusable
Definition: lws-context-vhost.h:1193
lws_http_mount::cgi_timeout
int cgi_timeout
Definition: lws-context-vhost.h:1186
lws_context_creation_info::uid
int uid
Definition: lws-context-vhost.h:566
LWSMPRO_HTTP
@ LWSMPRO_HTTP
Definition: lws-context-vhost.h:1140
LWSMPRO_REDIR_HTTP
@ LWSMPRO_REDIR_HTTP
Definition: lws-context-vhost.h:1144
LWSAUTHM_BASIC_AUTH_CALLBACK
@ LWSAUTHM_BASIC_AUTH_CALLBACK
Definition: lws-context-vhost.h:1155
lws_context_creation_info::vhost_name
const char * vhost_name
Definition: lws-context-vhost.h:598
lws_context_creation_info::finalize
void(* finalize)(struct lws_vhost *vh, void *arg)
Definition: lws-context-vhost.h:681
lws_context_creation_info::fd_limit_per_thread
unsigned int fd_limit_per_thread
Definition: lws-context-vhost.h:582
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:616
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::listen_accept_role
const char * listen_accept_role
Definition: lws-context-vhost.h:690
lws_get_vhost
LWS_VISIBLE LWS_EXTERN struct lws_vhost * lws_get_vhost(struct lws *wsi)
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_protocols
Definition: lws-protocols-plugins.h:44
lws_protocol_vhost_options::options
const struct lws_protocol_vhost_options * options
Definition: lws-context-vhost.h:1130
lws_http_mount::mountpoint
const char * mountpoint
Definition: lws-context-vhost.h:1168
lws_retry_bo
Definition: lws-retry.h:25
lws_http_mount::origin
const char * origin
Definition: lws-context-vhost.h:1170
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:669
lws_context_creation_info::options
uint64_t options
Definition: lws-context-vhost.h:569
lws_http_mount::_unused
void * _unused[2]
Definition: lws-context-vhost.h:1211
lws_http_mount::interpret
const struct lws_protocol_vhost_options * interpret
Definition: lws-context-vhost.h:1183
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:699
LWSMPRO_FILE
@ LWSMPRO_FILE
Definition: lws-context-vhost.h:1142
lws_http_mount::basic_auth_login_file
const char * basic_auth_login_file
Definition: lws-context-vhost.h:1200
lws_context_creation_info::gid
int gid
Definition: lws-context-vhost.h:563
lws_http_mount
Definition: lws-context-vhost.h:1165
lws_token_limits
Definition: lws-http.h:368
lws_get_vhost_iface
LWS_VISIBLE LWS_EXTERN const char * lws_get_vhost_iface(struct lws_vhost *vhost)
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::retry_and_idle_policy
const lws_retry_bo_t * retry_and_idle_policy
Definition: lws-context-vhost.h:728
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:1190
lws_context_creation_info::username
const char * username
Definition: lws-context-vhost.h:710
lws_context_creation_info::groupname
const char * groupname
Definition: lws-context-vhost.h:712
LWSAUTHM_DEFAULT
@ LWSAUTHM_DEFAULT
Definition: lws-context-vhost.h:1154
LWSMPRO_REDIR_HTTPS
@ LWSMPRO_REDIR_HTTPS
Definition: lws-context-vhost.h:1145
lws_context_creation_info::finalize_arg
void * finalize_arg
Definition: lws-context-vhost.h:686