Lines Matching refs:hctx

137 static void handler_ctx_free(handler_ctx *hctx) {  in handler_ctx_free()  argument
138 if (NULL != hctx->env) in handler_ctx_free()
139 array_free(hctx->env); in handler_ctx_free()
140 free(hctx); in handler_ctx_free()
532 handler_ctx ** const hctx = (handler_ctx **)&con->plugin_ctx[p->id]; in is_connection_trusted_cached() local
533 if (!*hctx) in is_connection_trusted_cached()
534 *hctx = handler_ctx_init(); in is_connection_trusted_cached()
535 else if ((*hctx)->con_is_trusted != -1) in is_connection_trusted_cached()
536 return (*hctx)->con_is_trusted; in is_connection_trusted_cached()
537 return ((*hctx)->con_is_trusted = in is_connection_trusted_cached()
1051 handler_ctx *hctx = r->con->plugin_ctx[p->id]; in URIHANDLER_FUNC() local
1052 if (NULL != hctx && hctx->ssl_client_verify && NULL != hctx->env in URIHANDLER_FUNC()
1053 …&& NULL != (ds = (const data_string *)array_get_element_klen(hctx->env, CONST_STR_LEN("SSL_CLIENT_… in URIHANDLER_FUNC()
1114 handler_ctx * const hctx = r->con->plugin_ctx[((plugin_data *)p_d)->id]; in REQUEST_FUNC() local
1115 if (NULL == hctx || NULL == hctx->env) return HANDLER_GO_ON; in REQUEST_FUNC()
1116 const array * restrict env = hctx->env; in REQUEST_FUNC()
1149 handler_ctx *hctx = con->plugin_ctx[p->id]; in CONNECTION_FUNC() local
1150 if (NULL != hctx) { in CONNECTION_FUNC()
1152 if (NULL != hctx->saved_network_read) in CONNECTION_FUNC()
1153 con->network_read = hctx->saved_network_read; in CONNECTION_FUNC()
1154 handler_ctx_free(hctx); in CONNECTION_FUNC()
1171 handler_ctx *hctx = handler_ctx_init(); in CONNECTION_FUNC() local
1172 con->plugin_ctx[p->id] = hctx; in CONNECTION_FUNC()
1173 hctx->con_is_trusted = -1; /*(masquerade IP not yet known/checked)*/ in CONNECTION_FUNC()
1174 hctx->saved_network_read = con->network_read; in CONNECTION_FUNC()
1580 handler_ctx * const hctx = in mod_extforward_hap_PROXY_v2() local
1606 hctx->ssl_client_verify = 1; in mod_extforward_hap_PROXY_v2()
1609 if (NULL == hctx->env) hctx->env = array_init(8); in mod_extforward_hap_PROXY_v2()
1641 array_set_key_value(hctx->env, k, klen, (char *)subtlv+3, n); in mod_extforward_hap_PROXY_v2()
1656 if (NULL == hctx->env) hctx->env = array_init(8); in mod_extforward_hap_PROXY_v2()
1657 array_set_key_value(hctx->env, k, klen, (char *)tlv+3, len); in mod_extforward_hap_PROXY_v2()
1689 handler_ctx *hctx = in mod_extforward_network_read() local
1691 con->network_read = hctx->saved_network_read; in mod_extforward_network_read()
1692 hctx->saved_network_read = NULL; in mod_extforward_network_read()