Lines Matching refs:tcr
534 struct lws_tls_client_reuse *tcr; in lws_tls_client_create_vhost_context() local
633 tcr = lws_container_of(p, struct lws_tls_client_reuse, cc_list); in lws_tls_client_create_vhost_context()
635 if (!memcmp(hash, tcr->hash, len)) { in lws_tls_client_create_vhost_context()
639 tcr->refcount++; in lws_tls_client_create_vhost_context()
640 vh->tls.ssl_client_ctx = tcr->ssl_client_ctx; in lws_tls_client_create_vhost_context()
643 __func__, vh->name, tcr->index, in lws_tls_client_create_vhost_context()
644 tcr->refcount); in lws_tls_client_create_vhost_context()
663 tcr = lws_zalloc(sizeof(*tcr), "client ctx tcr"); in lws_tls_client_create_vhost_context()
664 if (!tcr) { in lws_tls_client_create_vhost_context()
669 tcr->ssl_client_ctx = vh->tls.ssl_client_ctx; in lws_tls_client_create_vhost_context()
670 tcr->refcount = 1; in lws_tls_client_create_vhost_context()
671 memcpy(tcr->hash, hash, len); in lws_tls_client_create_vhost_context()
672 tcr->index = vh->context->tls.count_client_contexts++; in lws_tls_client_create_vhost_context()
673 lws_dll2_add_head(&tcr->cc_list, &vh->context->tls.cc_owner); in lws_tls_client_create_vhost_context()
676 vh->name, tcr->index); in lws_tls_client_create_vhost_context()
682 (char *)tcr); in lws_tls_client_create_vhost_context()