|
libwebsockets
Lightweight C library for HTML5 websockets
|
168 #define lws_check_opt(c, f) (((c) & (f)) == (f))
277 #if defined(LWS_WITH_TLS) && !defined(LWS_WITH_MBEDTLS)
421 #if defined(LWS_HAVE_SYS_CAPABILITY_H) && defined(LWS_HAVE_LIBCAP)
590 LWS_VISIBLE LWS_EXTERN
struct lws_context *
602 LWS_VISIBLE LWS_EXTERN
void
605 typedef int (*lws_reload_func)(void);
629 LWS_VISIBLE LWS_EXTERN
void
632 LWS_VISIBLE LWS_EXTERN
int
633 lws_context_is_deprecated(
struct lws_context *context);
652 LWS_VISIBLE LWS_EXTERN
int
672 LWS_VISIBLE LWS_EXTERN
int
686 LWS_VISIBLE LWS_EXTERN
struct lws_vhost *
708 LWS_VISIBLE LWS_EXTERN
void
725 LWS_VISIBLE LWS_EXTERN
int
727 char **config_strings,
int *len);
744 LWS_VISIBLE LWS_EXTERN
int
747 char **config_strings,
int *len);
750 LWS_VISIBLE LWS_EXTERN
struct lws_vhost *
758 LWS_VISIBLE LWS_EXTERN
struct lws_vhost *
766 LWS_VISIBLE LWS_EXTERN
const char *
774 LWS_VISIBLE LWS_EXTERN
int
782 LWS_VISIBLE LWS_EXTERN
void *
790 LWS_VISIBLE LWS_EXTERN
const char *
800 LWS_VISIBLE LWS_EXTERN
int
813 LWS_VISIBLE LWS_EXTERN
int
825 LWS_VISIBLE LWS_EXTERN
void *
837 LWS_VISIBLE LWS_EXTERN
void *
LWS_VISIBLE LWS_EXTERN int lws_set_proxy(struct lws_vhost *vhost, const char *proxy)
unsigned short max_http_header_pool
Definition: lws-context-vhost.h:290
@ LWS_SERVER_OPTION_LIBEV
Definition: lws-context-vhost.h:58
unsigned int cache_intermediaries
Definition: lws-context-vhost.h:907
long ssl_options_clear
Definition: lws-context-vhost.h:346
@ LWS_SERVER_OPTION_REDIRECT_HTTP_TO_HTTPS
Definition: lws-context-vhost.h:74
LWS_VISIBLE LWS_EXTERN struct lws_context * lws_create_context(const struct lws_context_creation_info *info)
Definition: lws-context-vhost.h:852
const char * ssl_private_key_filepath
Definition: lws-context-vhost.h:220
@ LWS_SERVER_OPTION_LIBUV
Definition: lws-context-vhost.h:72
const struct lws_plat_file_ops * fops
Definition: lws-context-vhost.h:405
@ LWSMPRO_HTTPS
Definition: lws-context-vhost.h:865
@ LWS_SERVER_OPTION_DISABLE_IPV6
Definition: lws-context-vhost.h:60
unsigned int options
Definition: lws-context-vhost.h:256
const char * ecdh_curve
Definition: lws-context-vhost.h:309
const char *const * plugin_dirs
Definition: lws-context-vhost.h:316
const char * socks_proxy_address
Definition: lws-context-vhost.h:415
const char * value
Definition: lws-context-vhost.h:856
@ LWS_SERVER_OPTION_SKIP_PROTOCOL_INIT
Definition: lws-context-vhost.h:126
unsigned int max_http_header_pool2
Definition: lws-context-vhost.h:520
long ssl_client_options_set
Definition: lws-context-vhost.h:526
@ LWS_SERVER_OPTION_JUST_USE_RAW_ORIGIN
Definition: lws-context-vhost.h:98
const char * name
Definition: lws-context-vhost.h:855
@ LWS_SERVER_OPTION_VALIDATE_UTF8
Definition: lws-context-vhost.h:67
const char * iface
Definition: lws-context-vhost.h:191
const char * http_proxy_address
Definition: lws-context-vhost.h:244
const struct lws_http_mount * mount_next
Definition: lws-context-vhost.h:878
const char * ssl_cipher_list
Definition: lws-context-vhost.h:234
struct lws_context ** pcontext
Definition: lws-context-vhost.h:505
unsigned short ip_limit_wsi
Definition: lws-context-vhost.h:461
LWS_VISIBLE LWS_EXTERN struct lws_vhost * lws_vhost_get(struct lws *wsi) LWS_WARN_DEPRECATED
unsigned short ws_ping_pong_interval
Definition: lws-context-vhost.h:348
LWS_VISIBLE LWS_EXTERN int lws_json_dump_vhost(const struct lws_vhost *vh, char *buf, int len)
int keepalive_timeout
Definition: lws-context-vhost.h:322
@ LWS_SERVER_OPTION_REQUIRE_VALID_OPENSSL_CLIENT_CERT
Definition: lws-context-vhost.h:46
const struct lws_token_limits * token_limits
Definition: lws-context-vhost.h:205
const struct lws_protocol_vhost_options * extra_mimetypes
Definition: lws-context-vhost.h:893
LWS_VISIBLE LWS_EXTERN void lws_context_destroy(struct lws_context *context)
unsigned short ip_limit_ah
Definition: lws-context-vhost.h:453
LWS_VISIBLE LWS_EXTERN int lws_json_dump_context(const struct lws_context *context, char *buf, int len, int hide_vhosts)
lws_mount_protocols
Definition: lws-context-vhost.h:863
const char * protocol
Definition: lws-context-vhost.h:886
const char * client_ssl_ca_filepath
Definition: lws-context-vhost.h:391
Definition: lws-context-vhost.h:181
const char * client_ssl_private_key_filepath
Definition: lws-context-vhost.h:385
int cache_max_age
Definition: lws-context-vhost.h:900
void ** foreign_loops
Definition: lws-context-vhost.h:485
const char * client_ssl_cipher_list
Definition: lws-context-vhost.h:400
const struct lws_protocol_vhost_options * reject_service_keywords
Definition: lws-context-vhost.h:364
@ LWSMPRO_CGI
Definition: lws-context-vhost.h:867
const struct lws_protocol_vhost_options * next
Definition: lws-context-vhost.h:853
int port
Definition: lws-context-vhost.h:182
const char * def
Definition: lws-context-vhost.h:884
Definition: lws-ws-ext.h:138
unsigned char origin_protocol
Definition: lws-context-vhost.h:909
const struct lws_protocols * protocols
Definition: lws-context-vhost.h:198
const struct lws_http_mount * mounts
Definition: lws-context-vhost.h:328
unsigned char mountpoint_len
Definition: lws-context-vhost.h:910
const struct lws_extension * extensions
Definition: lws-context-vhost.h:202
int ka_interval
Definition: lws-context-vhost.h:274
@ LWSMPRO_CALLBACK
Definition: lws-context-vhost.h:870
const struct lws_protocol_vhost_options * cgienv
Definition: lws-context-vhost.h:889
LWS_VISIBLE LWS_EXTERN void lws_context_deprecate(struct lws_context *context, lws_reload_func cb)
int simultaneous_ssl_restriction
Definition: lws-context-vhost.h:412
void * user
Definition: lws-context-vhost.h:258
@ LWS_SERVER_OPTION_IGNORE_MISSING_CERT
Definition: lws-context-vhost.h:131
const char * log_filepath
Definition: lws-context-vhost.h:325
const char * client_ssl_private_key_password
Definition: lws-context-vhost.h:379
@ LWS_SERVER_OPTION_FALLBACK_TO_RAW
Definition: lws-context-vhost.h:105
LWS_VISIBLE LWS_EXTERN struct lws_vhost * lws_create_vhost(struct lws_context *context, const struct lws_context_creation_info *info)
const char * alpn
Definition: lws-context-vhost.h:478
unsigned int cache_revalidate
Definition: lws-context-vhost.h:906
unsigned int count_threads
Definition: lws-context-vhost.h:298
const struct lws_protocol_vhost_options * pvo
Definition: lws-context-vhost.h:319
LWS_VISIBLE LWS_EXTERN int lws_get_vhost_port(struct lws_vhost *vhost)
void * external_baggage_free_on_destroy
Definition: lws-context-vhost.h:371
const char * error_document_404
Definition: lws-context-vhost.h:474
unsigned int cache_reusable
Definition: lws-context-vhost.h:905
int cgi_timeout
Definition: lws-context-vhost.h:898
@ LWS_SERVER_OPTION_IPV6_V6ONLY_MODIFY
Definition: lws-context-vhost.h:88
int uid
Definition: lws-context-vhost.h:253
@ LWS_SERVER_OPTION_CREATE_VHOST_SSL_CTX
Definition: lws-context-vhost.h:119
@ LWSMPRO_HTTP
Definition: lws-context-vhost.h:864
@ LWSMPRO_REDIR_HTTP
Definition: lws-context-vhost.h:868
const char * vhost_name
Definition: lws-context-vhost.h:312
@ LWS_SERVER_OPTION_HTTP_HEADERS_SECURITY_BEST_PRACTICES_ENFORCE
Definition: lws-context-vhost.h:148
void(* finalize)(struct lws_vhost *vh, void *arg)
Definition: lws-context-vhost.h:511
void * provided_client_ssl_ctx
Definition: lws-context-vhost.h:284
unsigned int fd_limit_per_thread
Definition: lws-context-vhost.h:300
unsigned int pt_serv_buf_size
Definition: lws-context-vhost.h:333
@ LWS_SERVER_OPTION_DISABLE_OS_CA_CERTS
Definition: lws-context-vhost.h:62
long ssl_options_set
Definition: lws-context-vhost.h:344
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)
const char * client_ssl_cert_filepath
Definition: lws-context-vhost.h:382
LWS_VISIBLE LWS_EXTERN struct lws_vhost * lws_get_vhost(struct lws *wsi)
LWS_VISIBLE const LWS_EXTERN char * lws_get_vhost_name(struct lws_vhost *vhost)
lws_context_options
Definition: lws-context-vhost.h:45
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
Definition: lws-context-vhost.h:92
LWS_VISIBLE LWS_EXTERN void * lws_vhost_user(struct lws_vhost *vhost)
int ka_probes
Definition: lws-context-vhost.h:270
Definition: lws-protocols-plugins.h:43
@ LWS_SERVER_OPTION_LIBEVENT
Definition: lws-context-vhost.h:107
const struct lws_protocol_vhost_options * options
Definition: lws-context-vhost.h:854
const char * mountpoint
Definition: lws-context-vhost.h:880
unsigned int timeout_secs
Definition: lws-context-vhost.h:304
const char * server_string
Definition: lws-context-vhost.h:330
@ LWS_SERVER_OPTION_STS
Definition: lws-context-vhost.h:85
const char * origin
Definition: lws-context-vhost.h:882
const char * client_tls_1_3_plus_cipher_list
Definition: lws-context-vhost.h:538
void(* signal_cb)(void *event_lib_handle, int signum)
Definition: lws-context-vhost.h:499
const void * client_ssl_ca_mem
Definition: lws-context-vhost.h:393
void * _unused[2]
Definition: lws-context-vhost.h:923
int ssl_info_event_mask
Definition: lws-context-vhost.h:444
@ LWS_SERVER_OPTION_PEER_CERT_NOT_REQUIRED
Definition: lws-context-vhost.h:65
unsigned short max_http_header_data
Definition: lws-context-vhost.h:287
@ LWS_SERVER_OPTION_EXPLICIT_VHOSTS
Definition: lws-context-vhost.h:80
const struct lws_protocol_vhost_options * interpret
Definition: lws-context-vhost.h:895
@ LWS_SERVER_OPTION_ONLY_RAW
Definition: lws-context-vhost.h:109
const char * ssl_ca_filepath
Definition: lws-context-vhost.h:229
@ LWS_SERVER_OPTION_DO_SSL_GLOBAL_INIT
Definition: lws-context-vhost.h:78
unsigned int http_proxy_port
Definition: lws-context-vhost.h:248
unsigned int timeout_secs_ah_idle
Definition: lws-context-vhost.h:450
unsigned int client_ssl_ca_mem_len
Definition: lws-context-vhost.h:396
LWS_VISIBLE LWS_EXTERN void lws_vhost_destroy(struct lws_vhost *vh)
uint32_t http2_settings[7]
Definition: lws-context-vhost.h:468
@ LWSMPRO_FILE
Definition: lws-context-vhost.h:866
const char * ssl_private_key_password
Definition: lws-context-vhost.h:208
@ LWS_SERVER_OPTION_ALLOW_LISTEN_SHARE
Definition: lws-context-vhost.h:113
const char * basic_auth_login_file
Definition: lws-context-vhost.h:912
@ LWS_SERVER_OPTION_UNIX_SOCK
Definition: lws-context-vhost.h:83
int gid
Definition: lws-context-vhost.h:250
Definition: lws-context-vhost.h:877
long ssl_client_options_clear
Definition: lws-context-vhost.h:528
Definition: lws-http.h:332
const struct lws_protocol_vhost_options * headers
Definition: lws-context-vhost.h:360
unsigned int max_http_header_data2
Definition: lws-context-vhost.h:339
unsigned int socks_proxy_port
Definition: lws-context-vhost.h:419
const char * tls1_3_plus_cipher_list
Definition: lws-context-vhost.h:531
LWS_VISIBLE LWS_EXTERN void * lws_get_vhost_user(struct lws_vhost *vhost)
LWS_VISIBLE LWS_EXTERN int lws_set_socks(struct lws_vhost *vhost, const char *socks)
void * _unused[4]
Definition: lws-context-vhost.h:553
LWS_VISIBLE LWS_EXTERN void * lws_context_user(struct lws_context *context)
unsigned int auth_mask
Definition: lws-context-vhost.h:902
int bind_iface
Definition: lws-context-vhost.h:433
LWS_VISIBLE const LWS_EXTERN char * lws_get_vhost_iface(struct lws_vhost *vhost)
@ LWS_SERVER_OPTION_SKIP_SERVER_CANONICAL_NAME
Definition: lws-context-vhost.h:51
@ LWS_SERVER_OPTION_ALLOW_NON_SSL_ON_SSL_PORT
Definition: lws-context-vhost.h:53
@ LWS_SERVER_OPTION_VHOST_UPG_STRICT_HOST_CHECK
Definition: lws-context-vhost.h:137
@ LWSMPRO_REDIR_HTTPS
Definition: lws-context-vhost.h:869
const char * ssl_cert_filepath
Definition: lws-context-vhost.h:213
void * finalize_arg
Definition: lws-context-vhost.h:516
@ LWS_SERVER_OPTION_IPV6_V6ONLY_VALUE
Definition: lws-context-vhost.h:90
int ka_time
Definition: lws-context-vhost.h:267
@ LWS_SERVER_OPTION_SSL_ECDH
Definition: lws-context-vhost.h:69