This file is indexed.

/usr/include/cherokee/config_entry.h is in libcherokee-base0-dev 1.2.101-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */

/* Cherokee
 *
 * Authors:
 *      Alvaro Lopez Ortega <alvaro@alobbs.com>
 *
 * Copyright (C) 2001-2011 Alvaro Lopez Ortega
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of version 2 of the GNU General Public
 * License as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
 * 02110-1301, USA.
 */

#if !defined (CHEROKEE_INSIDE_CHEROKEE_H) && !defined (CHEROKEE_COMPILATION)
# error "Only <cherokee/cherokee.h> can be included directly, this file may disappear or change contents."
#endif

#ifndef CHEROKEE_CONFIG_ENTRY_H
#define CHEROKEE_CONFIG_ENTRY_H

#include "common.h"

#include <time.h>

#include "avl.h"
#include "handler.h"
#include "http.h"
#include "validator.h"
#include "nullable.h"
#include "encoder.h"
#include "flcache.h"

#define CHEROKEE_CONFIG_PRIORITY_NONE    0
#define CHEROKEE_CONFIG_PRIORITY_DEFAULT 1

typedef enum {
	cherokee_expiration_none,
	cherokee_expiration_epoch,
	cherokee_expiration_max,
	cherokee_expiration_time
} cherokee_expiration_t;

typedef enum {
	cherokee_expiration_prop_none              = 0,

	/* cacheable */
	cherokee_expiration_prop_public            = 1,
	cherokee_expiration_prop_private           = 1 << 1,
	cherokee_expiration_prop_no_cache          = 1 << 2,

	/* stored */
	cherokee_expiration_prop_no_store          = 1 << 3,
	cherokee_expiration_prop_no_transform      = 1 << 4,

	/* other props */
	cherokee_expiration_prop_must_revalidate   = 1 << 5,
	cherokee_expiration_prop_proxy_revalidate  = 1 << 6,
} cherokee_expiration_props_t;


struct cherokee_config_entry {
	/* Properties
	 */
	cherokee_buffer_t           *document_root;
	cherokee_boolean_t           only_secure;
	cherokee_null_bool_t         no_log;
	void                        *access;
	cherokee_list_t             *header_ops;

	/* Handler
	 */
	handler_func_new_t           handler_new_func;
	cherokee_http_method_t       handler_methods;
	cherokee_module_props_t     *handler_properties;

	/* Validator
	 */
	validator_func_new_t         validator_new_func;
	cherokee_module_props_t     *validator_properties;

	cherokee_buffer_t           *auth_realm;
	cherokee_http_auth_t         authentication;
	cherokee_avl_t              *users;

	/* Expiration / Cache
	 */
	cherokee_expiration_t        expiration;
	time_t                       expiration_time;
	cherokee_expiration_props_t  expiration_prop;

	/* Front-line cache
	 */
	cherokee_null_bool_t         flcache;
	cherokee_flcache_policy_t    flcache_policy;
	cherokee_list_t             *flcache_cookies_disregard;

	/* Encoding
	 */
	cherokee_avl_t              *encoders;

	/* Traffic shaping
	 */
	cuint_t                      limit_bps;

	/* Timeout
	 */
	cherokee_null_int_t          timeout_lapse;
	cherokee_buffer_t           *timeout_header;
};

typedef struct cherokee_config_entry cherokee_config_entry_t;
typedef struct cherokee_config_entry cherokee_config_entry_ref_t;

#define CONF_ENTRY(x) ((cherokee_config_entry_t *)(x))

/* Entry
 */
ret_t cherokee_config_entry_new      (cherokee_config_entry_t **entry);
ret_t cherokee_config_entry_free     (cherokee_config_entry_t  *entry);
ret_t cherokee_config_entry_init     (cherokee_config_entry_t  *entry);
ret_t cherokee_config_entry_mrproper (cherokee_config_entry_t  *entry);

ret_t cherokee_config_entry_set_encoder (cherokee_config_entry_t  *entry,
					 cherokee_buffer_t        *encoder_name,
					 cherokee_plugin_info_t   *plugin_info,
					 cherokee_encoder_props_t *encoder_props);

ret_t cherokee_config_entry_set_handler (cherokee_config_entry_t        *entry,
					 cherokee_plugin_info_handler_t *plugin_info);

ret_t cherokee_config_entry_complete    (cherokee_config_entry_t *entry,
					 cherokee_config_entry_t *source);

ret_t cherokee_config_entry_print       (cherokee_config_entry_t *entry);

/* Entry Reference
 */
ret_t cherokee_config_entry_ref_init  (cherokee_config_entry_ref_t *entry);
ret_t cherokee_config_entry_ref_clean (cherokee_config_entry_ref_t *entry);

#endif /* CHEROKEE_CONFIG_ENTRY_H */