Lines Matching refs:ctx
46 struct ap_socache_instance_t *ctx;
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,
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)
88 if (ctx && ctx->dc) {
89 DC_CTX_free(ctx->dc);
90 ctx->dc = NULL;
94 static apr_status_t socache_dc_store(ap_socache_instance_t *ctx, server_rec *s,
106 if (!DC_CTX_add_session(ctx->dc, id, idlen, der, der_len,
115 static apr_status_t socache_dc_retrieve(ap_socache_instance_t *ctx, server_rec *s,
123 if (!DC_CTX_get_session(ctx->dc, id, idlen, dest, *destlen, &data_len)) {
136 static apr_status_t socache_dc_remove(ap_socache_instance_t *ctx,
141 if (!DC_CTX_remove_session(ctx->dc, id, idlen)) {
151 static void socache_dc_status(ap_socache_instance_t *ctx, request_rec *r, int flags)
157 " target: <b>%s</b><br>", ctx->target);
161 ap_rvputs(r, "CacheTarget: ", ctx->target, "\n", NULL);