Lines Matching defs:context
85 SSL_CTX_set_session_id_context(vh->tls.ssl_ctx, (uint8_t *)vh->context,
99 struct lws_context *context = (struct lws_context *)arg;
111 vh = context->vhost_list;
132 vhost = lws_select_vhost(context, vh->listen_port, servername);
223 (char *)vhost->context->pt[0].serv_buf);
245 (char *)vhost->context->pt[0].serv_buf);
257 if (lws_tls_alloc_pem_to_der_file(vhost->context, cert, mem_cert,
284 if (lws_tls_alloc_pem_to_der_file(vhost->context, private_key,
333 if (lws_tls_alloc_pem_to_der_file(vhost->context, cert, mem_cert,
353 if (lws_tls_alloc_pem_to_der_file(vhost->context, NULL,
382 (char *)vhost->context->pt[0].serv_buf));
398 (char *)vhost->context->pt[0].serv_buf));
438 if (lws_check_opt(vhost->context->options, LWS_SERVER_OPTION_SSL_ECDH))
441 /* Get X509 certificate from ssl context */
511 (char *)vhost->context->pt[0].serv_buf);
517 vhost->tls.ssl_ctx = SSL_CTX_new(method); /* create context */
527 (char *)vhost->context->pt[0].serv_buf);
528 lwsl_err("problem creating ssl context %lu: %s\n",
535 (char *)vhost->context);
557 SSL_CTX_set_tlsext_servername_arg(vhost->tls.ssl_ctx, vhost->context);
715 struct lws_context_per_thread *pt = &wsi->a.context->pt[(int)wsi->tsi];
975 lws_tls_acme_sni_csr_create(struct lws_context *context, const char *elements[],