Lines Matching refs:tcr
727 struct lws_tls_client_reuse *tcr;
834 tcr = lws_container_of(p, struct lws_tls_client_reuse, cc_list);
836 if (!memcmp(hash, tcr->hash, len)) {
840 tcr->refcount++;
841 vh->tls.ssl_client_ctx = tcr->ssl_client_ctx;
842 vh->tls.tcr = tcr;
845 __func__, vh->name, tcr->index,
846 tcr->refcount);
879 tcr = lws_zalloc(sizeof(*tcr), "client ctx tcr");
880 if (!tcr) {
885 tcr->ssl_client_ctx = vh->tls.ssl_client_ctx;
886 tcr->refcount = 1;
887 memcpy(tcr->hash, hash, len);
888 tcr->index = vh->context->tls.count_client_contexts++;
889 lws_dll2_add_head(&tcr->cc_list, &vh->context->tls.cc_owner);
892 vh->name, tcr->index);
894 /* bind the tcr to the client context */
896 vh->tls.tcr = tcr;