115 LWS_SERVER_OPTION_FALLBACK_TO_RAW = (1 << 20),
132 LWS_SERVER_OPTION_ONLY_RAW = (1 << 22),
218 #define lws_check_opt(c, f) (((c) & (f)) == (f))
343 #if defined(LWS_WITH_TLS) && !defined(LWS_WITH_MBEDTLS)
505 #if defined(LWS_HAVE_SYS_CAPABILITY_H) && defined(LWS_HAVE_LIBCAP)
725 LWS_VISIBLE LWS_EXTERN
struct lws_context *
737 LWS_VISIBLE LWS_EXTERN
void
740 typedef int (*lws_reload_func)(void);
764 LWS_VISIBLE LWS_EXTERN
void
767 LWS_VISIBLE LWS_EXTERN
int
768 lws_context_is_deprecated(
struct lws_context *context);
787 LWS_VISIBLE LWS_EXTERN
int
807 LWS_VISIBLE LWS_EXTERN
int
821 LWS_VISIBLE LWS_EXTERN
struct lws_vhost *
843 LWS_VISIBLE LWS_EXTERN
void
860 LWS_VISIBLE LWS_EXTERN
int
862 char **config_strings,
int *len);
879 LWS_VISIBLE LWS_EXTERN
int
882 char **config_strings,
int *len);
889 LWS_VISIBLE LWS_EXTERN
struct lws_vhost *
897 LWS_VISIBLE LWS_EXTERN
const char *
908 LWS_VISIBLE LWS_EXTERN
struct lws_vhost *
916 LWS_VISIBLE LWS_EXTERN
int
924 LWS_VISIBLE LWS_EXTERN
void *
932 LWS_VISIBLE LWS_EXTERN
const char *
942 LWS_VISIBLE LWS_EXTERN
int
955 LWS_VISIBLE LWS_EXTERN
int
967 LWS_VISIBLE LWS_EXTERN
void *
979 LWS_VISIBLE LWS_EXTERN
void *
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_context_options
Definition: lws-context-vhost.h:45
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_SERVER_OPTION_LIBEVENT
Definition: lws-context-vhost.h:129
@ LWS_SERVER_OPTION_SSL_ECDH
Definition: lws-context-vhost.h:72
@ LWS_SERVER_OPTION_ALLOW_NON_SSL_ON_SSL_PORT
Definition: lws-context-vhost.h:53
@ LWS_SERVER_OPTION_LIBEV
Definition: lws-context-vhost.h:61
@ LWS_SERVER_OPTION_REQUIRE_VALID_OPENSSL_CLIENT_CERT
Definition: lws-context-vhost.h:46
@ LWS_SERVER_OPTION_HTTP_HEADERS_SECURITY_BEST_PRACTICES_ENFORCE
Definition: lws-context-vhost.h:181
@ LWS_SERVER_OPTION_DISABLE_IPV6
Definition: lws-context-vhost.h:63
@ LWS_SERVER_OPTION_REDIRECT_HTTP_TO_HTTPS
Definition: lws-context-vhost.h:77
@ LWS_SERVER_OPTION_DISABLE_OS_CA_CERTS
Definition: lws-context-vhost.h:65
@ LWS_SERVER_OPTION_ALLOW_LISTEN_SHARE
Definition: lws-context-vhost.h:146
@ LWS_SERVER_OPTION_ALLOW_HTTP_ON_HTTPS_LISTENER
Definition: lws-context-vhost.h:198
@ LWS_SERVER_OPTION_SKIP_SERVER_CANONICAL_NAME
Definition: lws-context-vhost.h:51
@ LWS_SERVER_OPTION_VHOST_UPG_STRICT_HOST_CHECK
Definition: lws-context-vhost.h:170
@ LWS_SERVER_OPTION_ADOPT_APPLY_LISTEN_ACCEPT_CONFIG
Definition: lws-context-vhost.h:133
@ LWS_SERVER_OPTION_DO_SSL_GLOBAL_INIT
Definition: lws-context-vhost.h:88
@ LWS_SERVER_OPTION_UV_NO_SIGSEGV_SIGFPE_SPIN
Definition: lws-context-vhost.h:102
@ LWS_SERVER_OPTION_UNIX_SOCK
Definition: lws-context-vhost.h:93
@ LWS_SERVER_OPTION_SKIP_PROTOCOL_INIT
Definition: lws-context-vhost.h:159
@ LWS_SERVER_OPTION_VALIDATE_UTF8
Definition: lws-context-vhost.h:70
@ LWS_SERVER_OPTION_JUST_USE_RAW_ORIGIN
Definition: lws-context-vhost.h:108
@ LWS_SERVER_OPTION_CREATE_VHOST_SSL_CTX
Definition: lws-context-vhost.h:152
@ LWS_SERVER_OPTION_PEER_CERT_NOT_REQUIRED
Definition: lws-context-vhost.h:68
@ LWS_SERVER_OPTION_H2_JUST_FIX_WINDOW_UPDATE_OVERFLOW
Definition: lws-context-vhost.h:211
@ LWS_SERVER_OPTION_STS
Definition: lws-context-vhost.h:95
@ LWS_SERVER_OPTION_IPV6_V6ONLY_VALUE
Definition: lws-context-vhost.h:100
@ LWS_SERVER_OPTION_EXPLICIT_VHOSTS
Definition: lws-context-vhost.h:90
@ LWS_SERVER_OPTION_FALLBACK_TO_APPLY_LISTEN_ACCEPT_CONFIG
Definition: lws-context-vhost.h:116
@ LWS_SERVER_OPTION_IPV6_V6ONLY_MODIFY
Definition: lws-context-vhost.h:98
@ LWS_SERVER_OPTION_IGNORE_MISSING_CERT
Definition: lws-context-vhost.h:164
@ LWS_SERVER_OPTION_FAIL_UPON_UNABLE_TO_BIND
Definition: lws-context-vhost.h:206
@ LWS_SERVER_OPTION_LIBUV
Definition: lws-context-vhost.h:75
lws_mount_protocols
Definition: lws-context-vhost.h:1005
@ LWSMPRO_CGI
Definition: lws-context-vhost.h:1009
@ LWSMPRO_HTTP
Definition: lws-context-vhost.h:1006
@ LWSMPRO_FILE
Definition: lws-context-vhost.h:1008
@ LWSMPRO_REDIR_HTTPS
Definition: lws-context-vhost.h:1011
@ LWSMPRO_CALLBACK
Definition: lws-context-vhost.h:1012
@ LWSMPRO_REDIR_HTTP
Definition: lws-context-vhost.h:1010
@ LWSMPRO_HTTPS
Definition: lws-context-vhost.h:1007
Definition: lws-context-vhost.h:231
void ** foreign_loops
Definition: lws-context-vhost.h:569
long ssl_client_options_clear
Definition: lws-context-vhost.h:612
const char * client_ssl_cert_filepath
Definition: lws-context-vhost.h:460
const char * error_document_404
Definition: lws-context-vhost.h:558
void * provided_client_ssl_ctx
Definition: lws-context-vhost.h:350
void * user
Definition: lws-context-vhost.h:324
const lws_system_ops_t * system_ops
Definition: lws-context-vhost.h:676
int bind_iface
Definition: lws-context-vhost.h:517
const char * server_string
Definition: lws-context-vhost.h:408
const struct lws_http_mount * mounts
Definition: lws-context-vhost.h:406
int simultaneous_ssl_restriction
Definition: lws-context-vhost.h:496
unsigned int client_ssl_cert_mem_len
Definition: lws-context-vhost.h:466
void(* finalize)(struct lws_vhost *vh, void *arg)
Definition: lws-context-vhost.h:595
unsigned short max_http_header_data
Definition: lws-context-vhost.h:353
int ssl_info_event_mask
Definition: lws-context-vhost.h:528
const char * client_ssl_private_key_filepath
Definition: lws-context-vhost.h:469
unsigned short ws_ping_pong_interval
Definition: lws-context-vhost.h:426
int ka_interval
Definition: lws-context-vhost.h:340
int ka_probes
Definition: lws-context-vhost.h:336
const char * ssl_cipher_list
Definition: lws-context-vhost.h:300
int port
Definition: lws-context-vhost.h:232
unsigned int fd_limit_per_thread
Definition: lws-context-vhost.h:366
const struct lws_extension * extensions
Definition: lws-context-vhost.h:254
const char * listen_accept_protocol
Definition: lws-context-vhost.h:633
const struct lws_protocols ** pprotocols
Definition: lws-context-vhost.h:637
const char * ssl_ca_filepath
Definition: lws-context-vhost.h:291
unsigned int timeout_secs_ah_idle
Definition: lws-context-vhost.h:534
struct lws_context ** pcontext
Definition: lws-context-vhost.h:589
unsigned int pt_serv_buf_size
Definition: lws-context-vhost.h:411
const char * socks_proxy_address
Definition: lws-context-vhost.h:499
unsigned int client_ssl_ca_mem_len
Definition: lws-context-vhost.h:480
const struct lws_plat_file_ops * fops
Definition: lws-context-vhost.h:489
const char * client_ssl_ca_filepath
Definition: lws-context-vhost.h:475
const char * client_ssl_cipher_list
Definition: lws-context-vhost.h:484
const struct lws_protocol_vhost_options * reject_service_keywords
Definition: lws-context-vhost.h:442
unsigned int timeout_secs
Definition: lws-context-vhost.h:382
long ssl_options_set
Definition: lws-context-vhost.h:422
unsigned int server_ssl_ca_mem_len
Definition: lws-context-vhost.h:666
const char * iface
Definition: lws-context-vhost.h:241
const char * alpn
Definition: lws-context-vhost.h:562
const char * listen_accept_role
Definition: lws-context-vhost.h:628
unsigned int http_proxy_port
Definition: lws-context-vhost.h:314
const char *const * plugin_dirs
Definition: lws-context-vhost.h:394
int keepalive_timeout
Definition: lws-context-vhost.h:400
const char * username
Definition: lws-context-vhost.h:668
const struct lws_protocol_vhost_options * headers
Definition: lws-context-vhost.h:438
const char * client_ssl_private_key_password
Definition: lws-context-vhost.h:457
const void * server_ssl_private_key_mem
Definition: lws-context-vhost.h:655
const struct lws_protocol_vhost_options * pvo
Definition: lws-context-vhost.h:397
const char * groupname
Definition: lws-context-vhost.h:670
long ssl_client_options_set
Definition: lws-context-vhost.h:610
const void * client_ssl_cert_mem
Definition: lws-context-vhost.h:463
int gid
Definition: lws-context-vhost.h:316
unsigned int options
Definition: lws-context-vhost.h:322
unsigned int server_ssl_cert_mem_len
Definition: lws-context-vhost.h:652
unsigned int max_http_header_data2
Definition: lws-context-vhost.h:417
void * external_baggage_free_on_destroy
Definition: lws-context-vhost.h:449
uint32_t http2_settings[7]
Definition: lws-context-vhost.h:552
const void * client_ssl_ca_mem
Definition: lws-context-vhost.h:477
const char * unix_socket_perms
Definition: lws-context-vhost.h:672
const char * ssl_private_key_filepath
Definition: lws-context-vhost.h:277
const struct lws_protocols * protocols
Definition: lws-context-vhost.h:248
int uid
Definition: lws-context-vhost.h:319
const void * server_ssl_ca_mem
Definition: lws-context-vhost.h:662
const void * server_ssl_cert_mem
Definition: lws-context-vhost.h:648
unsigned short ip_limit_ah
Definition: lws-context-vhost.h:537
int ka_time
Definition: lws-context-vhost.h:333
void * _unused[4]
Definition: lws-context-vhost.h:688
const char * ssl_cert_filepath
Definition: lws-context-vhost.h:265
const struct lws_token_limits * token_limits
Definition: lws-context-vhost.h:257
unsigned int server_ssl_private_key_mem_len
Definition: lws-context-vhost.h:660
const char * log_filepath
Definition: lws-context-vhost.h:403
const char * vhost_name
Definition: lws-context-vhost.h:390
const char * client_tls_1_3_plus_cipher_list
Definition: lws-context-vhost.h:622
void * finalize_arg
Definition: lws-context-vhost.h:600
const char * tls1_3_plus_cipher_list
Definition: lws-context-vhost.h:615
long ssl_options_clear
Definition: lws-context-vhost.h:424
unsigned int max_http_header_pool2
Definition: lws-context-vhost.h:604
unsigned int socks_proxy_port
Definition: lws-context-vhost.h:503
void(* signal_cb)(void *event_lib_handle, int signum)
Definition: lws-context-vhost.h:583
unsigned short ip_limit_wsi
Definition: lws-context-vhost.h:545
unsigned int count_threads
Definition: lws-context-vhost.h:364
const char * http_proxy_address
Definition: lws-context-vhost.h:310
const char * ssl_private_key_password
Definition: lws-context-vhost.h:260
unsigned short max_http_header_pool
Definition: lws-context-vhost.h:356
const char * ecdh_curve
Definition: lws-context-vhost.h:387
Definition: lws-ws-ext.h:138
Definition: lws-context-vhost.h:1019
const struct lws_http_mount * mount_next
Definition: lws-context-vhost.h:1020
const char * protocol
Definition: lws-context-vhost.h:1028
const struct lws_protocol_vhost_options * interpret
Definition: lws-context-vhost.h:1037
const char * origin
Definition: lws-context-vhost.h:1024
const char * basic_auth_login_file
Definition: lws-context-vhost.h:1054
int cache_max_age
Definition: lws-context-vhost.h:1042
const struct lws_protocol_vhost_options * extra_mimetypes
Definition: lws-context-vhost.h:1035
int cgi_timeout
Definition: lws-context-vhost.h:1040
unsigned int auth_mask
Definition: lws-context-vhost.h:1044
unsigned char origin_protocol
Definition: lws-context-vhost.h:1051
void * _unused[2]
Definition: lws-context-vhost.h:1065
unsigned int cache_reusable
Definition: lws-context-vhost.h:1047
const char * mountpoint
Definition: lws-context-vhost.h:1022
unsigned int cache_intermediaries
Definition: lws-context-vhost.h:1049
unsigned char mountpoint_len
Definition: lws-context-vhost.h:1052
unsigned int cache_revalidate
Definition: lws-context-vhost.h:1048
const struct lws_protocol_vhost_options * cgienv
Definition: lws-context-vhost.h:1031
const char * def
Definition: lws-context-vhost.h:1026
Definition: lws-context-vhost.h:994
const char * value
Definition: lws-context-vhost.h:998
const struct lws_protocol_vhost_options * next
Definition: lws-context-vhost.h:995
const char * name
Definition: lws-context-vhost.h:997
const struct lws_protocol_vhost_options * options
Definition: lws-context-vhost.h:996
Definition: lws-protocols-plugins.h:43
Definition: lws-system.h:46
Definition: lws-http.h:335