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 - 2021 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 
39 
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))
51 #define LWS_SERVER_OPTION_SKIP_SERVER_CANONICAL_NAME (1ll << 2)
53 #define LWS_SERVER_OPTION_ALLOW_NON_SSL_ON_SSL_PORT ((1ll << 3) | \
54  (1ll << 12))
61 #define LWS_SERVER_OPTION_LIBEV (1ll << 4)
63 #define LWS_SERVER_OPTION_DISABLE_IPV6 (1ll << 5)
65 #define LWS_SERVER_OPTION_DISABLE_OS_CA_CERTS (1ll << 6)
68 #define LWS_SERVER_OPTION_PEER_CERT_NOT_REQUIRED (1ll << 7)
70 #define LWS_SERVER_OPTION_VALIDATE_UTF8 (1ll << 8)
72 #define LWS_SERVER_OPTION_SSL_ECDH ((1ll << 9) | \
73  (1ll << 12))
75 #define LWS_SERVER_OPTION_LIBUV (1ll << 10)
77 #define LWS_SERVER_OPTION_REDIRECT_HTTP_TO_HTTPS ((1ll << 11) |\
78  (1ll << 12))
88 #define LWS_SERVER_OPTION_DO_SSL_GLOBAL_INIT (1ll << 12)
90 #define LWS_SERVER_OPTION_EXPLICIT_VHOSTS (1ll << 13)
93 #define LWS_SERVER_OPTION_UNIX_SOCK (1ll << 14)
95 #define LWS_SERVER_OPTION_STS (1ll << 15)
98 #define LWS_SERVER_OPTION_IPV6_V6ONLY_MODIFY (1ll << 16)
100 #define LWS_SERVER_OPTION_IPV6_V6ONLY_VALUE (1ll << 17)
102 #define LWS_SERVER_OPTION_UV_NO_SIGSEGV_SIGFPE_SPIN (1ll << 18)
108 #define LWS_SERVER_OPTION_JUST_USE_RAW_ORIGIN (1ll << 19)
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)
129 #define LWS_SERVER_OPTION_LIBEVENT (1ll << 21)
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)
146 #define LWS_SERVER_OPTION_ALLOW_LISTEN_SHARE (1ll << 23)
152 #define LWS_SERVER_OPTION_CREATE_VHOST_SSL_CTX (1ll << 24)
159 #define LWS_SERVER_OPTION_SKIP_PROTOCOL_INIT (1ll << 25)
164 #define LWS_SERVER_OPTION_IGNORE_MISSING_CERT (1ll << 26)
170 #define LWS_SERVER_OPTION_VHOST_UPG_STRICT_HOST_CHECK (1ll << 27)
181 #define LWS_SERVER_OPTION_HTTP_HEADERS_SECURITY_BEST_PRACTICES_ENFORCE (1ll << 28)
198 #define LWS_SERVER_OPTION_ALLOW_HTTP_ON_HTTPS_LISTENER (1ll << 29)
206 #define LWS_SERVER_OPTION_FAIL_UPON_UNABLE_TO_BIND (1ll << 30)
211 #define LWS_SERVER_OPTION_H2_JUST_FIX_WINDOW_UPDATE_OVERFLOW (1ll << 31)
215 #define LWS_SERVER_OPTION_VH_H2_HALF_CLOSED_LONG_POLL (1ll << 32)
221 #define LWS_SERVER_OPTION_GLIB (1ll << 33)
224 #define LWS_SERVER_OPTION_H2_PRIOR_KNOWLEDGE (1ll << 34)
229 #define LWS_SERVER_OPTION_NO_LWS_SYSTEM_STATES (1ll << 35)
233 #define LWS_SERVER_OPTION_SS_PROXY (1ll << 36)
236 #define LWS_SERVER_OPTION_SDEVENT (1ll << 37)
239 #define LWS_SERVER_OPTION_ULOOP (1ll << 38)
242 #define LWS_SERVER_OPTION_DISABLE_TLS_SESSION_CACHE (1ll << 39)
246  /****** add new things just above ---^ ******/
247 
248 
249 #define lws_check_opt(c, f) ((((uint64_t)c) & ((uint64_t)f)) == ((uint64_t)f))
250 
251 struct lws_plat_file_ops;
252 struct lws_ss_policy;
253 struct lws_ss_plugin;
254 struct lws_metric_policy;
255 struct lws_sss_ops;
256 
257 typedef int (*lws_context_ready_cb_t)(struct lws_context *context);
258 
259 #if defined(LWS_WITH_NETWORK)
260 typedef int (*lws_peer_limits_notify_t)(struct lws_context *ctx,
261  lws_sockfd_type sockfd,
262  lws_sockaddr46 *sa46);
263 #endif
264 
275 #if defined(LWS_WITH_NETWORK)
276  const char *iface;
283  const struct lws_protocols *protocols;
289 #if defined(LWS_ROLE_WS)
290  const struct lws_extension *extensions;
293 #endif
294 #if defined(LWS_ROLE_H1) || defined(LWS_ROLE_H2)
295  const struct lws_token_limits *token_limits;
298  const char *http_proxy_address;
302  const struct lws_protocol_vhost_options *headers;
306  const struct lws_protocol_vhost_options *reject_service_keywords;
313  const struct lws_protocol_vhost_options *pvo;
316  const char *log_filepath;
319  const struct lws_http_mount *mounts;
321  const char *server_string;
325  const char *error_document_404;
329  int port;
339  unsigned int http_proxy_port;
341  unsigned int max_http_header_data2;
346  unsigned int max_http_header_pool2;
352  int keepalive_timeout;
356  uint32_t http2_settings[7];
363  unsigned short max_http_header_data;
366  unsigned short max_http_header_pool;
374 #endif
375 
376 #if defined(LWS_WITH_TLS)
377  const char *ssl_private_key_password;
382  const char *ssl_cert_filepath;
394  const char *ssl_private_key_filepath;
408  const char *ssl_ca_filepath;
417  const char *ssl_cipher_list;
427  const char *ecdh_curve;
430  const char *tls1_3_plus_cipher_list;
438  const void *server_ssl_cert_mem;
442  const void *server_ssl_private_key_mem;
447  const void *server_ssl_ca_mem;
452  long ssl_options_set;
454  long ssl_options_clear;
456  int simultaneous_ssl_restriction;
459  int simultaneous_ssl_handshake_restriction;
461  int ssl_info_event_mask;
467  unsigned int server_ssl_cert_mem_len;
470  unsigned int server_ssl_private_key_mem_len;
472  unsigned int server_ssl_ca_mem_len;
475  const char *alpn;
484 #if defined(LWS_WITH_CLIENT)
485  const char *client_ssl_private_key_password;
488  const char *client_ssl_cert_filepath;
491  const void *client_ssl_cert_mem;
494  unsigned int client_ssl_cert_mem_len;
497  const char *client_ssl_private_key_filepath;
503  const void *client_ssl_key_mem;
506  const char *client_ssl_ca_filepath;
508  const void *client_ssl_ca_mem;
512  const char *client_ssl_cipher_list;
516  const char *client_tls_1_3_plus_cipher_list;
523  long ssl_client_options_set;
525  long ssl_client_options_clear;
529  unsigned int client_ssl_ca_mem_len;
532  unsigned int client_ssl_key_mem_len;
536 #endif
537 
538 #if !defined(LWS_WITH_MBEDTLS)
539  SSL_CTX *provided_client_ssl_ctx;
544 #else /* WITH_MBEDTLS */
545  const char *mbedtls_client_preload_filepath;
555 #endif
556 #endif
557 
558  int ka_time;
561  int ka_probes;
565  int ka_interval;
568  unsigned int timeout_secs;
573  unsigned int connect_timeout_secs;
577  int bind_iface;
588  unsigned int timeout_secs_ah_idle;
591 #endif /* WITH_NETWORK */
592 
593 #if defined(LWS_WITH_TLS_SESSIONS)
594  uint32_t tls_session_timeout;
597  uint32_t tls_session_cache_max;
600 #endif
601 
602  gid_t gid;
605  uid_t uid;
608  uint64_t options;
610  void *user;
619  unsigned int count_threads;
621  unsigned int fd_limit_per_thread;
637  const char *vhost_name;
644 #if defined(LWS_WITH_PLUGINS)
645  const char * const *plugin_dirs;
648 #endif
658  unsigned int pt_serv_buf_size;
664 #if defined(LWS_WITH_FILE_OPS)
665  const struct lws_plat_file_ops *fops;
672 #endif
673 
674 #if defined(LWS_WITH_SOCKS5)
675  const char *socks_proxy_address;
679  unsigned int socks_proxy_port;
683 #endif
684 
685 #if defined(LWS_HAVE_SYS_CAPABILITY_H) && defined(LWS_HAVE_LIBCAP)
686  cap_value_t caps[4];
693  char count_caps;
696 #endif
711  void (*signal_cb)(void *event_lib_handle, int signum);
717  struct lws_context **pcontext;
723  void (*finalize)(struct lws_vhost *vh, void *arg);
732  const char *listen_accept_role;
741  const struct lws_protocols **pprotocols;
752  const char *username;
754  const char *groupname;
756  const char *unix_socket_perms;
767 #if defined(LWS_WITH_SYS_STATE)
768  lws_state_notify_link_t * const *register_notifier_list;
772 #endif
773 #if defined(LWS_WITH_SECURE_STREAMS)
774 #if defined(LWS_WITH_SECURE_STREAMS_STATIC_POLICY_ONLY)
775  const struct lws_ss_policy *pss_policies;
777 #else
778  const char *pss_policies_json;
785 #endif
786  const struct lws_ss_plugin **pss_plugins;
789  const char *ss_proxy_bind;
794  const char *ss_proxy_address;
796  uint16_t ss_proxy_port; /* 0 = if connecting to ss proxy, do it via a
797  * Unix Domain Socket, "+@proxy.ss.lws" if ss_proxy_bind is NULL else
798  * the socket path given in ss_proxy_bind (start it with a + or +@);
799  * nonzero means connect via a tcp socket to the tcp address in
800  * ss_proxy_bind and the given port */
801  const struct lws_transport_proxy_ops *txp_ops_ssproxy;
804  const void *txp_ssproxy_info;
806  const struct lws_transport_client_ops *txp_ops_sspc;
809 #endif
810 
815 #if defined(LWS_WITH_PEER_LIMITS)
816  lws_peer_limits_notify_t pl_notify_cb;
823  unsigned short ip_limit_ah;
831  unsigned short ip_limit_wsi;
839 #endif /* PEER_LIMITS */
840 
841 #if defined(LWS_WITH_SYS_FAULT_INJECTION)
842  lws_fi_ctx_t fic;
849 #endif
850 
851 #if defined(LWS_WITH_SYS_SMD)
852  lws_smd_notification_cb_t early_smd_cb;
859  void *early_smd_opaque;
860  lws_smd_class_t early_smd_class_filter;
861  lws_usec_t smd_ttl_us;
866  uint16_t smd_queue_depth;
869 #endif
870 
871 #if defined(LWS_WITH_SYS_METRICS)
872  const struct lws_metric_policy *metrics_policies;
874  const char *metrics_prefix;
881 #endif
882 
899 #if defined(LWS_WITH_TLS_JIT_TRUST)
900  size_t jitt_cache_max_footprint;
903  int vh_idle_grace_ms;
906 #endif
907 
912 #if defined(LWS_WITH_CACHE_NSCOOKIEJAR) && defined(LWS_WITH_CLIENT)
913  const char *http_nsc_filepath;
916  size_t http_nsc_heap_max_footprint;
919  size_t http_nsc_heap_max_items;
922  size_t http_nsc_heap_max_payload;
925 #endif
926 
927  /* Add new things just above here ---^
928  * This is part of the ABI, don't needlessly break compatibility
929  *
930  * The below is to ensure later library versions with new
931  * members added above will see 0 (default) even if the app
932  * was not built against the newer headers.
933  */
934 
935  void *_unused[2];
936 };
937 
972 LWS_VISIBLE LWS_EXTERN struct lws_context *
974 
975 
984 LWS_VISIBLE LWS_EXTERN void
985 lws_context_destroy(struct lws_context *context);
986 
987 typedef int (*lws_reload_func)(void);
988 
1011 LWS_VISIBLE LWS_EXTERN void
1012 lws_context_deprecate(struct lws_context *context, lws_reload_func cb);
1013 
1014 LWS_VISIBLE LWS_EXTERN int
1015 lws_context_is_deprecated(struct lws_context *context);
1016 
1034 LWS_VISIBLE LWS_EXTERN int
1035 lws_set_proxy(struct lws_vhost *vhost, const char *proxy);
1036 
1054 LWS_VISIBLE LWS_EXTERN int
1055 lws_set_socks(struct lws_vhost *vhost, const char *socks);
1056 
1057 struct lws_vhost;
1058 
1068 LWS_VISIBLE LWS_EXTERN struct lws_vhost *
1069 lws_create_vhost(struct lws_context *context,
1070  const struct lws_context_creation_info *info);
1071 
1090 LWS_VISIBLE LWS_EXTERN void
1091 lws_vhost_destroy(struct lws_vhost *vh);
1092 
1107 LWS_VISIBLE LWS_EXTERN int
1109  char **config_strings, int *len);
1110 
1126 LWS_VISIBLE LWS_EXTERN int
1127 lwsws_get_config_vhosts(struct lws_context *context,
1128  struct lws_context_creation_info *info, const char *d,
1129  char **config_strings, int *len);
1130 
1136 LWS_VISIBLE LWS_EXTERN struct lws_vhost *
1137 lws_get_vhost(struct lws *wsi);
1138 
1144 LWS_VISIBLE LWS_EXTERN const char *
1145 lws_get_vhost_name(struct lws_vhost *vhost);
1146 
1155 LWS_VISIBLE LWS_EXTERN struct lws_vhost *
1156 lws_get_vhost_by_name(struct lws_context *context, const char *name);
1157 
1163 LWS_VISIBLE LWS_EXTERN int
1164 lws_get_vhost_port(struct lws_vhost *vhost);
1165 
1171 LWS_VISIBLE LWS_EXTERN void *
1172 lws_get_vhost_user(struct lws_vhost *vhost);
1173 
1179 LWS_VISIBLE LWS_EXTERN const char *
1180 lws_get_vhost_iface(struct lws_vhost *vhost);
1181 
1189 LWS_VISIBLE LWS_EXTERN int
1190 lws_json_dump_vhost(const struct lws_vhost *vh, char *buf, int len);
1191 
1202 LWS_VISIBLE LWS_EXTERN int
1203 lws_json_dump_context(const struct lws_context *context, char *buf, int len,
1204  int hide_vhosts);
1205 
1214 LWS_VISIBLE LWS_EXTERN void *
1215 lws_vhost_user(struct lws_vhost *vhost);
1216 
1226 LWS_VISIBLE LWS_EXTERN void *
1227 lws_context_user(struct lws_context *context);
1228 
1229 LWS_VISIBLE LWS_EXTERN const char *
1230 lws_vh_tag(struct lws_vhost *vh);
1231 
1232 LWS_VISIBLE LWS_EXTERN void
1233 _lws_context_info_defaults(struct lws_context_creation_info *info,
1234  const char *sspol);
1235 
1236 LWS_VISIBLE LWS_EXTERN void
1237 lws_default_loop_exit(struct lws_context *cx);
1238 
1239 LWS_VISIBLE LWS_EXTERN void
1240 lws_context_default_loop_run_destroy(struct lws_context *cx);
1241 
1242 LWS_VISIBLE LWS_EXTERN int
1243 lws_cmdline_passfail(int argc, const char **argv, int actual);
1244 
1260 LWS_VISIBLE LWS_EXTERN int
1261 lws_context_is_being_destroyed(struct lws_context *context);
1262 
1269 
1278  const char *name;
1279  const char *value;
1280 };
1281 
1294 };
1295 
1302  LWSAUTHM_BASIC_AUTH_CALLBACK = 1 << 28
1303 };
1304 
1306 #define AUTH_MODE_MASK 0xF0000000
1307 
1315  const char *mountpoint;
1317  const char *origin;
1319  const char *def;
1321  const char *protocol;
1337  unsigned int auth_mask;
1340  unsigned int cache_reusable:1;
1341  unsigned int cache_revalidate:1;
1342  unsigned int cache_intermediaries:1;
1344  unsigned char origin_protocol;
1345  unsigned char mountpoint_len;
1350  /* Add new things just above here ---^
1351  * This is part of the ABI, don't needlessly break compatibility
1352  */
1353 };
1354 
LWS_VISIBLE LWS_EXTERN struct lws_vhost * lws_get_vhost(struct lws *wsi)
LWS_VISIBLE LWS_EXTERN void lws_context_deprecate(struct lws_context *context, lws_reload_func cb)
LWS_VISIBLE LWS_EXTERN int lws_json_dump_context(const struct lws_context *context, char *buf, int len, int hide_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_VISIBLE LWS_EXTERN const char * lws_get_vhost_name(struct lws_vhost *vhost)
LWS_VISIBLE LWS_EXTERN void * lws_get_vhost_user(struct lws_vhost *vhost)
LWS_VISIBLE LWS_EXTERN struct lws_vhost * lws_get_vhost_by_name(struct lws_context *context, const char *name)
LWS_VISIBLE LWS_EXTERN int lws_set_proxy(struct lws_vhost *vhost, const char *proxy)
LWS_VISIBLE LWS_EXTERN const char * lws_get_vhost_iface(struct lws_vhost *vhost)
LWS_VISIBLE LWS_EXTERN void lws_context_destroy(struct lws_context *context)
LWS_VISIBLE LWS_EXTERN int lws_json_dump_vhost(const struct lws_vhost *vh, char *buf, int len)
LWS_VISIBLE LWS_EXTERN int lwsws_get_config_globals(struct lws_context_creation_info *info, const char *d, char **config_strings, int *len)
LWS_VISIBLE LWS_EXTERN int lws_set_socks(struct lws_vhost *vhost, const char *socks)
LWS_VISIBLE LWS_EXTERN struct lws_context * lws_create_context(const struct lws_context_creation_info *info)
LWS_VISIBLE LWS_EXTERN int lws_get_vhost_port(struct lws_vhost *vhost)
LWS_VISIBLE LWS_EXTERN struct lws_vhost * lws_create_vhost(struct lws_context *context, const struct lws_context_creation_info *info)
LWS_VISIBLE LWS_EXTERN void lws_vhost_destroy(struct lws_vhost *vh)
LWS_VISIBLE LWS_EXTERN void * lws_vhost_user(struct lws_vhost *vhost)
LWS_VISIBLE LWS_EXTERN void * lws_context_user(struct lws_context *context)
LWS_VISIBLE LWS_EXTERN int lws_context_is_being_destroyed(struct lws_context *context)
lws_mount_protocols
Definition: lws-context-vhost.h:1286
lws_authentication_mode
Definition: lws-context-vhost.h:1300
@ LWSMPRO_CGI
Definition: lws-context-vhost.h:1290
@ LWSMPRO_HTTP
Definition: lws-context-vhost.h:1287
@ LWSMPRO_FILE
Definition: lws-context-vhost.h:1289
@ LWSMPRO_REDIR_HTTPS
Definition: lws-context-vhost.h:1292
@ LWSMPRO_CALLBACK
Definition: lws-context-vhost.h:1293
@ LWSMPRO_REDIR_HTTP
Definition: lws-context-vhost.h:1291
@ LWSMPRO_HTTPS
Definition: lws-context-vhost.h:1288
@ LWSAUTHM_BASIC_AUTH_CALLBACK
Definition: lws-context-vhost.h:1302
@ LWSAUTHM_DEFAULT
Definition: lws-context-vhost.h:1301
Definition: lws-context-vhost.h:274
void ** foreign_loops
Definition: lws-context-vhost.h:697
void * user
Definition: lws-context-vhost.h:610
const lws_system_ops_t * system_ops
Definition: lws-context-vhost.h:760
lws_log_cx_t * log_cx
Definition: lws-context-vhost.h:908
const struct lws_plugin_evlib * event_lib_custom
Definition: lws-context-vhost.h:889
void(* finalize)(struct lws_vhost *vh, void *arg)
Definition: lws-context-vhost.h:723
gid_t gid
Definition: lws-context-vhost.h:602
unsigned int fd_limit_per_thread
Definition: lws-context-vhost.h:621
const char * listen_accept_protocol
Definition: lws-context-vhost.h:737
const struct lws_protocols ** pprotocols
Definition: lws-context-vhost.h:741
uid_t uid
Definition: lws-context-vhost.h:605
struct lws_context ** pcontext
Definition: lws-context-vhost.h:717
unsigned int pt_serv_buf_size
Definition: lws-context-vhost.h:658
int fo_listen_queue
Definition: lws-context-vhost.h:883
const char * listen_accept_role
Definition: lws-context-vhost.h:732
const char * username
Definition: lws-context-vhost.h:752
const char * groupname
Definition: lws-context-vhost.h:754
const lws_retry_bo_t * retry_and_idle_policy
Definition: lws-context-vhost.h:763
uint64_t options
Definition: lws-context-vhost.h:608
void * external_baggage_free_on_destroy
Definition: lws-context-vhost.h:649
const char * unix_socket_perms
Definition: lws-context-vhost.h:756
int rlimit_nofile
Definition: lws-context-vhost.h:811
const char * vhost_name
Definition: lws-context-vhost.h:637
void * finalize_arg
Definition: lws-context-vhost.h:728
void * _unused[2]
Definition: lws-context-vhost.h:935
void(* signal_cb)(void *event_lib_handle, int signum)
Definition: lws-context-vhost.h:711
unsigned int count_threads
Definition: lws-context-vhost.h:619
Definition: lws-ws-ext.h:139
Definition: lws-context-vhost.h:1312
const struct lws_http_mount * mount_next
Definition: lws-context-vhost.h:1313
const char * protocol
Definition: lws-context-vhost.h:1321
const struct lws_protocol_vhost_options * interpret
Definition: lws-context-vhost.h:1330
const char * origin
Definition: lws-context-vhost.h:1317
const char * basic_auth_login_file
Definition: lws-context-vhost.h:1347
int cache_max_age
Definition: lws-context-vhost.h:1335
const struct lws_protocol_vhost_options * extra_mimetypes
Definition: lws-context-vhost.h:1328
int cgi_timeout
Definition: lws-context-vhost.h:1333
unsigned int auth_mask
Definition: lws-context-vhost.h:1337
unsigned char origin_protocol
Definition: lws-context-vhost.h:1344
unsigned int cache_reusable
Definition: lws-context-vhost.h:1340
const char * mountpoint
Definition: lws-context-vhost.h:1315
unsigned int cache_intermediaries
Definition: lws-context-vhost.h:1342
unsigned char mountpoint_len
Definition: lws-context-vhost.h:1345
unsigned int cache_revalidate
Definition: lws-context-vhost.h:1341
const struct lws_protocol_vhost_options * cgienv
Definition: lws-context-vhost.h:1324
const char * def
Definition: lws-context-vhost.h:1319
Definition: lws-logs.h:80
Definition: lws-secure-streams-policy.h:56
Definition: lws-vfs.h:95
Definition: lws-protocols-plugins.h:297
Definition: lws-context-vhost.h:1275
const char * value
Definition: lws-context-vhost.h:1279
const struct lws_protocol_vhost_options * next
Definition: lws-context-vhost.h:1276
const char * name
Definition: lws-context-vhost.h:1278
const struct lws_protocol_vhost_options * options
Definition: lws-context-vhost.h:1277
Definition: lws-protocols-plugins.h:44
Definition: lws-retry.h:25
Definition: lws-secure-streams-policy.h:223
Definition: lws-system.h:163
Definition: lws-http.h:369
Definition: lws-adopt.h:87