Searched defs:ctx (Results 1 - 25 of 74) sorted by relevance

123

/httpd/modules/generators/
H A Dmod_cgi.h42 include_ctx_t *ctx; member in struct:__anon182
/httpd/modules/lua/
H A Dlua_passwd.c85 * indicates success; on failure, ctx->errstr points to the error message.
87 int mk_password_hash(passwd_ctx *ctx) argument
97 pw = ctx->passwd;
98 switch (ctx->alg) {
101 apr_sha1_base64(pw, strlen(pw), ctx->out);
105 ret = generate_salt(salt, 8, &ctx->errstr, ctx->pool);
110 rv = apr_md5_encode(pw, salt, ctx->out, ctx->out_len);
112 ctx
[all...]
/httpd/modules/proxy/examples/
H A Dmod_lbmethod_rr.c50 rr_data *ctx; local
56 /* The index of the candidate last chosen is stored in ctx->index */
59 ctx = apr_pcalloc(r->server->process->pconf, sizeof(rr_data));
60 balancer->context = (void *)ctx;
62 "proxy: Creating roundrobin ctx for BALANCER %s (%d)",
65 ctx = (rr_data *)balancer->context;
69 ctx->index, (int)getpid());
76 if (i < ctx->index)
95 ctx->index += 1;
96 if (ctx
[all...]
/httpd/modules/dav/main/
H A Dliveprop.c29 static apr_status_t dav_cleanup_liveprops(void *ctx) argument
H A Dutil_lock.c262 dav_walker_ctx *ctx = wres->walk_ctx; local
267 ctx->w.root))
270 if ((err = (*ctx->w.lockdb->hooks->append_locks)(ctx->w.lockdb,
272 ctx->lock)) != NULL) {
334 dav_walker_ctx ctx = { { 0 } }; local
337 ctx.w.walk_type = DAV_WALKTYPE_NORMAL | DAV_WALKTYPE_AUTH;
338 ctx.w.func = dav_lock_walker;
339 ctx.w.walk_ctx = &ctx;
388 dav_walker_ctx *ctx = wres->walk_ctx; local
505 dav_walker_ctx ctx = { { 0 } }; local
568 dav_walker_ctx *ctx = wres->walk_ctx; local
597 dav_walker_ctx ctx = { { 0 } }; local
[all...]
/httpd/modules/debugging/
H A Dmod_bucketeer.c66 bucketeer_ctx_t *ctx = f->ctx; local
72 if (!ctx) {
79 ctx = f->ctx = apr_pcalloc(f->r->pool, sizeof(*ctx));
80 ctx->bb = apr_brigade_create(f->r->pool, f->c->bucket_alloc);
93 APR_BRIGADE_INSERT_TAIL(ctx->bb, e);
98 return ap_pass_brigade(f->next, ctx->bb);
113 APR_BRIGADE_INSERT_TAIL(ctx
[all...]
/httpd/modules/filters/
H A Dmod_data.c69 data_ctx *ctx = f->ctx; local
73 if (!ctx) {
88 ctx = f->ctx = apr_pcalloc(r->pool, sizeof(*ctx));
89 ctx->bb = apr_brigade_create(r->pool, f->c->bucket_alloc);
103 apr_brigade_printf(ctx->bb, NULL, NULL, "data:%s%s;base64,",
109 apr_brigade_length(ctx->bb, 1, &len);
136 char encoded[((sizeof(ctx
[all...]
H A Dmod_ratelimit.c62 rl_ctx_t *ctx = f->ctx; local
74 if (ctx == NULL) {
101 ctx = apr_palloc(f->r->pool, sizeof(rl_ctx_t));
102 f->ctx = ctx;
103 ctx->state = RATE_LIMIT;
104 ctx->speed = ratelimit;
108 ctx->chunk_size = (ctx
[all...]
H A Dmod_buffer.c58 buffer_ctx *ctx = f->ctx; local
63 if (!ctx) {
74 ctx = f->ctx = apr_pcalloc(r->pool, sizeof(*ctx));
75 ctx->bb = apr_brigade_create(r->pool, f->c->bucket_alloc);
76 ctx->conf = ap_get_module_config(f->r->per_dir_config, &buffer_module);
86 if (APR_BRIGADE_EMPTY(ctx->bb)) {
104 APR_BRIGADE_INSERT_TAIL(ctx
193 buffer_ctx *ctx = f->ctx; local
[all...]
H A Dmod_request.c71 keep_body_ctx_t *ctx = f->ctx; local
77 if (!ctx) {
89 f->ctx = ctx = apr_pcalloc(f->r->pool, sizeof(*ctx));
98 if (apr_strtoff(&ctx->remaining, lenp, &endstr, 10)
99 || endstr == lenp || *endstr || ctx->remaining < 0) {
111 if (dconf->keep_body < ctx->remaining) {
115 " of %" APR_OFF_T_FMT, ctx
208 kept_body_ctx_t *ctx = f->ctx; local
[all...]
/httpd/server/
H A Dprovider.c28 static apr_status_t cleanup_global_providers(void *ctx) argument
H A Dapreq_parser_header.c23 if (ctx->status == PREFIX##_ERROR) \
25 else if (ctx->status == PREFIX##_COMPLETE) \
160 struct hdr_ctx *ctx; local
162 if (parser->ctx == NULL) {
163 ctx = apr_pcalloc(pool, sizeof *ctx);
164 ctx->bb = apr_brigade_create(pool, parser->bucket_alloc);
165 parser->ctx = ctx;
166 ctx
[all...]
H A Dapreq_parser_urlencoded.c24 if (ctx->status == PREFIX##_ERROR) \
26 else if (ctx->status == PREFIX##_COMPLETE) \
163 struct url_ctx *ctx; local
165 if (parser->ctx == NULL) {
166 ctx = apr_pcalloc(pool, sizeof *ctx);
167 ctx->bb = apr_brigade_create(pool, parser->bucket_alloc);
168 parser->ctx = ctx;
169 ctx
[all...]
/httpd/include/
H A Dapreq_parser.h87 void *ctx; /**< a user defined pointer passed to the hook function */ member in struct:apreq_hook_t
109 void *ctx; member in struct:apreq_parser_t
171 * by casting the parser's ctx pointer to (apreq_param_t **).
178 * completed successfully. The hook's ctx pointer may
194 * @param ctx Parser's internal scratch pad.
204 void *ctx);
212 * @param ctx Hook's internal scratch pad.
218 void *ctx);
281 * during parsing. The hook's ctx shoud be initialized
290 * invoked, so add it manually with ctx
[all...]
H A Dap_expr.h139 * @param ctx The evaluation context with all data filled in
141 * @note *ctx->err will be set to NULL on success, or to an error message on
144 * response header if ctx->vary_this is set.
146 AP_DECLARE(int) ap_expr_exec_ctx(ap_expr_eval_ctx_t *ctx); variable
206 * @param ctx The evaluation context
211 typedef int ap_expr_op_unary_t(ap_expr_eval_ctx_t *ctx, const void *data,
216 * @param ctx The evaluation context
222 typedef int ap_expr_op_binary_t(ap_expr_eval_ctx_t *ctx, const void *data,
226 * @param ctx The evaluation context
231 typedef const char *(ap_expr_string_func_t)(ap_expr_eval_ctx_t *ctx,
[all...]
H A Dutil_filter.h103 * In filter->ctx, the callback will find its context. This context is
193 * Filter callbacks are free to use ->ctx as they please, to store context
266 void *ctx; member in struct:ap_filter_t
405 * @param ctx Context data to provide to the filter
409 AP_DECLARE(ap_filter_t *) ap_add_input_filter(const char *name, void *ctx,
417 * @param ctx Context data to provide to the filter
422 void *ctx,
437 * @param ctx Context data to set in the filter
445 AP_DECLARE(ap_filter_t *) ap_add_output_filter(const char *name, void *ctx,
453 * @param ctx Contex
[all...]
/httpd/modules/apreq/
H A Dhandle.c139 struct filter_ctx *ctx; local
141 if (f->ctx == NULL)
144 ctx = f->ctx;
146 switch (ctx->body_status) {
150 if (ctx->body_status != APR_INCOMPLETE)
158 *t = ctx->body;
159 return ctx->body_status;
165 struct filter_ctx *ctx; local
170 if (f->ctx
246 struct filter_ctx *ctx = f->ctx; local
261 struct filter_ctx *ctx; local
283 struct filter_ctx *ctx; local
311 struct filter_ctx *ctx; local
331 struct filter_ctx *ctx; local
346 struct filter_ctx *ctx; local
366 struct filter_ctx *ctx; local
381 struct filter_ctx *ctx; local
402 struct filter_ctx *ctx; local
[all...]
H A Dfilter.c113 struct filter_ctx *ctx = f->ctx; local
119 ctx->body_status = APREQ_ERROR_NODATA;
132 ctx->body_status = APREQ_ERROR_BADHEADER;
135 else if (content_length > ctx->read_limit) {
139 cl_header, ctx->read_limit);
140 ctx->body_status = APREQ_ERROR_OVERLIMIT;
145 if (ctx->parser == NULL) {
152 ctx->parser = apreq_parser_make(r->pool, ba, ct_header, pf,
153 ctx
211 struct filter_ctx *ctx = f->ctx; local
256 struct filter_ctx *ctx = f->ctx; local
335 struct filter_ctx *ctx; local
471 struct filter_ctx *ctx; local
[all...]
/httpd/modules/cache/
H A Dmod_socache_dc.c46 struct ap_socache_instance_t *ctx; local
48 ctx = *context = apr_palloc(p, sizeof *ctx);
50 ctx->target = apr_pstrdup(p, arg);
55 static apr_status_t socache_dc_init(ap_socache_instance_t *ctx, argument
76 ctx->dc = DC_CTX_new(ctx->target, SESSION_CTX_FLAGS);
77 if (!ctx->dc) {
86 static void socache_dc_destroy(ap_socache_instance_t *ctx, server_rec *s) argument
88 if (ctx
94 socache_dc_store(ap_socache_instance_t *ctx, server_rec *s, const unsigned char *id, unsigned int idlen, apr_time_t expiry, unsigned char *der, unsigned int der_len, apr_pool_t *p) argument
115 socache_dc_retrieve(ap_socache_instance_t *ctx, server_rec *s, const unsigned char *id, unsigned int idlen, unsigned char *dest, unsigned int *destlen, apr_pool_t *p) argument
136 socache_dc_remove(ap_socache_instance_t *ctx, server_rec *s, const unsigned char *id, unsigned int idlen, apr_pool_t *p) argument
151 socache_dc_status(ap_socache_instance_t *ctx, request_rec *r, int flags) argument
[all...]
H A Dmod_socache_dbm.c73 static void socache_dbm_expire(ap_socache_instance_t *ctx, server_rec *s);
75 static apr_status_t socache_dbm_remove(ap_socache_instance_t *ctx,
83 ap_socache_instance_t *ctx; local
85 *context = ctx = apr_pcalloc(p, sizeof *ctx);
88 ctx->data_file = ap_runtime_dir_relative(p, arg);
89 if (!ctx->data_file) {
94 apr_pool_create(&ctx->pool, p);
118 static apr_status_t socache_dbm_init(ap_socache_instance_t *ctx, argument
127 if (ctx
177 socache_dbm_destroy(ap_socache_instance_t *ctx, server_rec *s) argument
191 socache_dbm_store(ap_socache_instance_t *ctx, server_rec *s, const unsigned char *id, unsigned int idlen, apr_time_t expiry, unsigned char *ucaData, unsigned int nData, apr_pool_t *pool) argument
260 socache_dbm_retrieve(ap_socache_instance_t *ctx, server_rec *s, const unsigned char *id, unsigned int idlen, unsigned char *dest, unsigned int *destlen, apr_pool_t *p) argument
326 socache_dbm_remove(ap_socache_instance_t *ctx, server_rec *s, const unsigned char *id, unsigned int idlen, apr_pool_t *p) argument
355 socache_dbm_expire(ap_socache_instance_t *ctx, server_rec *s) argument
462 socache_dbm_status(ap_socache_instance_t *ctx, request_rec *r, int flags) argument
516 socache_dbm_iterate(ap_socache_instance_t *ctx, server_rec *s, void *userctx, ap_socache_iterator_t *iterator, apr_pool_t *pool) argument
[all...]
H A Dmod_socache_memcache.c68 ap_socache_instance_t *ctx; local
70 *context = ctx = apr_palloc(p, sizeof *ctx);
76 ctx->servers = apr_pstrdup(p, arg);
81 static apr_status_t socache_mc_init(ap_socache_instance_t *ctx, argument
96 cache_config = apr_pstrdup(p, ctx->servers);
103 rv = apr_memcache_create(p, nservers, 0, &ctx->mc);
112 cache_config = apr_pstrdup(p, ctx->servers);
152 rv = apr_memcache_add_server(ctx->mc, st);
163 ctx
180 socache_mc_id2key(ap_socache_instance_t *ctx, const unsigned char *id, unsigned int idlen, char *key, apr_size_t keylen) argument
195 socache_mc_store(ap_socache_instance_t *ctx, server_rec *s, const unsigned char *id, unsigned int idlen, apr_time_t expiry, unsigned char *ucaData, unsigned int nData, apr_pool_t *p) argument
227 socache_mc_retrieve(ap_socache_instance_t *ctx, server_rec *s, const unsigned char *id, unsigned int idlen, unsigned char *dest, unsigned int *destlen, apr_pool_t *p) argument
263 socache_mc_remove(ap_socache_instance_t *ctx, server_rec *s, const unsigned char *id, unsigned int idlen, apr_pool_t *p) argument
285 socache_mc_status(ap_socache_instance_t *ctx, request_rec *r, int flags) argument
[all...]
/httpd/modules/ssl/
H A Dssl_ct_sct.c28 EVP_MD_CTX ctx; local
35 EVP_MD_CTX_init(&ctx);
36 ap_assert(1 == EVP_VerifyInit(&ctx, EVP_sha256()));
37 ap_assert(1 == EVP_VerifyUpdate(&ctx, sctf->signed_data,
39 rc = EVP_VerifyFinal(&ctx, sctf->sig, sctf->siglen, pkey);
40 EVP_MD_CTX_cleanup(&ctx);
H A Dssl_engine_ocsp.c105 static OCSP_REQUEST *create_request(X509_STORE_CTX *ctx, X509 *cert, argument
112 *certid = OCSP_cert_to_id(NULL, cert, ctx->current_issuer);
129 static int verify_ocsp_status(X509 *cert, X509_STORE_CTX *ctx, conn_rec *c, argument
145 request = create_request(ctx, cert, &certID, s, pool, sc);
187 if (OCSP_basic_verify(basicResponse, NULL, ctx->ctx, 0) != 1) {
251 int modssl_verify_ocsp(X509_STORE_CTX *ctx, SSLSrvConfigRec *sc, argument
254 X509 *cert = X509_STORE_CTX_get_current_cert(ctx);
260 * may yield NULL. Return early, but leave the ctx error as is. */
269 X509_STORE_CTX_set_error(ctx, X509_V_O
[all...]
/httpd/support/
H A Dpasswd_common.c120 int get_password(struct passwd_ctx *ctx) argument
123 if (ctx->passwd_src == PW_STDIN) {
126 if (apr_file_open_stdin(&file_stdin, ctx->pool) != APR_SUCCESS) {
127 ctx->errstr = "Unable to read from stdin.";
142 ctx->passwd = apr_pstrdup(ctx->pool, buf);
144 else if (ctx->passwd_src == PW_PROMPT_VERIFY) {
148 ctx->passwd = apr_pstrdup(ctx->pool, buf);
154 ctx
179 mkhash(struct passwd_ctx *ctx) argument
281 parse_common_options(struct passwd_ctx *ctx, char opt, const char *opt_arg) argument
[all...]
/httpd/modules/cluster/
H A Dmod_heartbeat.c45 static int hb_monitor(hb_ctx_t *ctx, apr_pool_t *p) argument
57 for (i = 0; i < ctx->server_limit; i++) {
61 for (j = 0; j < ctx->thread_limit; j++) {
85 rv = apr_socket_create(&sock, ctx->mcast_addr->family,
100 rv = apr_socket_sendto(sock, ctx->mcast_addr, 0, buf, &len);
117 hb_ctx_t *ctx = ap_get_module_config(s->module_config, &heartbeat_module); local
119 ap_mpm_query(AP_MPMQ_HARD_LIMIT_THREADS, &ctx->thread_limit);
120 ap_mpm_query(AP_MPMQ_HARD_LIMIT_DAEMONS, &ctx->server_limit);
132 hb_ctx_t *ctx = ap_get_module_config(s->module_config, &heartbeat_module); local
134 if (!ctx
143 hb_ctx_t *ctx = ap_get_module_config(s->module_config, &heartbeat_module); local
174 hb_ctx_t *ctx = local
[all...]

Completed in 1866 milliseconds

123