Lines Matching defs:vhost
138 lws_ssl_destroy_client_ctx(struct lws_vhost *vhost)
140 if (vhost->tls.user_supplied_ssl_ctx || !vhost->tls.ssl_client_ctx)
143 if (vhost->tls.tcr && --vhost->tls.tcr->refcount)
146 SSL_CTX_free(vhost->tls.ssl_client_ctx);
147 vhost->tls.ssl_client_ctx = NULL;
149 vhost->context->tls.count_client_contexts--;
151 if (vhost->tls.tcr) {
152 lws_dll2_remove(&vhost->tls.tcr->cc_list);
153 lws_free(vhost->tls.tcr);
154 vhost->tls.tcr = NULL;
159 lws_ssl_destroy(struct lws_vhost *vhost)
161 if (!lws_check_opt(vhost->context->options,
165 if (vhost->tls.ssl_ctx)
166 SSL_CTX_free(vhost->tls.ssl_ctx);
168 lws_ssl_destroy_client_ctx(vhost);
264 if (wsi->a.vhost)
265 lws_metric_event(wsi->a.vhost->mt_traffic_rx,
299 if (wsi->a.vhost)
300 lws_metric_event(wsi->a.vhost->mt_traffic_rx, METRES_GO, (u_mt_t)n);
362 if (wsi->a.vhost)
363 lws_metric_event(wsi->a.vhost->mt_traffic_tx,
392 if (wsi->a.vhost)
393 lws_metric_event(wsi->a.vhost->mt_traffic_tx,
428 if (!(where & wsi->a.vhost->tls.ssl_info_event_mask))
453 if (wsi->a.vhost->tls.ssl_info_event_mask)
483 lws_ssl_SSL_CTX_destroy(struct lws_vhost *vhost)
485 if (vhost->tls.ssl_ctx)
486 SSL_CTX_free(vhost->tls.ssl_ctx);
489 lws_ssl_destroy_client_ctx(vhost);
493 lws_tls_acme_sni_cert_destroy(vhost);