/**
* Entity headers' names
*/
-static const char *MOD_CACHE_ENTITY_HEADERS[] = {
+static const char *const MOD_CACHE_ENTITY_HEADERS[] = {
"Allow",
"Content-Encoding",
"Content-Language",
apr_time_t exp, date, lastmod, now;
apr_off_t size = -1;
cache_info *info = NULL;
- const char *reason, **eh;
+ const char *reason, *const *eh;
apr_pool_t *p;
apr_bucket *e;
apr_table_t *headers;
}
static void proxy_html_hooks(apr_pool_t *p)
{
- static const char *aszSucc[] = { "mod_filter.c", NULL };
+ static const char *const aszSucc[] = { "mod_filter.c", NULL };
ap_register_output_filter_protocol("proxy-html", proxy_html_filter,
NULL, AP_FTYPE_RESOURCE,
AP_FILTER_PROTO_CHANGE|AP_FILTER_PROTO_CHANGE_LENGTH);
/*******************************************************************************
* HTTP/2 error stuff
*/
-static const char *h2_err_descr[] = {
+static const char *const h2_err_descr[] = {
"no error", /* 0x0 */
"protocol error",
"internal error",
* Black Listed Ciphers from RFC 7549 Appendix A
*
*/
-static const char *RFC7540_names[] = {
+static const char *const RFC7540_names[] = {
/* ciphers with NULL encrpytion */
"NULL-MD5", /* TLS_NULL_WITH_NULL_NULL */
/* same */ /* TLS_RSA_WITH_NULL_MD5 */
}
-static const char *StateNames[] = {
+static const char *const StateNames[] = {
"INIT", /* H2_PROXYS_ST_INIT */
"DONE", /* H2_PROXYS_ST_DONE */
"IDLE", /* H2_PROXYS_ST_IDLE */
}
-static const char *StateNames[] = {
+static const char *const StateNames[] = {
"INIT", /* H2_SESSION_ST_INIT */
"DONE", /* H2_SESSION_ST_DONE */
"IDLE", /* H2_SESSION_ST_IDLE */
static void register_hooks(apr_pool_t *p)
{
- static const char *pre[] = { "mod_log_config.c", NULL };
+ static const char *const pre[] = { "mod_log_config.c", NULL };
ap_hook_pre_connection(logio_pre_conn, NULL, NULL, APR_HOOK_MIDDLE);
ap_hook_pre_config(logio_pre_config, NULL, NULL, APR_HOOK_REALLY_FIRST);
SP_VERYDIFFERENT = 6
} sp_reason;
-static const char *sp_reason_str[] =
+static const char *const sp_reason_str[] =
{
"identical",
"miscapitalized",
#define LOG_BUFFER_LEN 1024
-static const char *level_names[] = {
+static const char *const level_names[] = {
"emergency",
"alert",
"crit",
#define GNAME_STAGING
#define GNAME_ARCHIVE
-static const char *GROUP_NAME[] = {
+static const char *const GROUP_NAME[] = {
"none",
"accounts",
"challenges",
APLOG_USE_MODULE(proxy_ajp);
-static const char *response_trans_headers[] = {
+static const char *const response_trans_headers[] = {
"Content-Type",
"Content-Language",
"Content-Length",
static void process_proxy_header(request_rec *r, proxy_dir_conf *c,
const char *key, const char *value)
{
- static const char *date_hdrs[]
+ static const char *const date_hdrs[]
= { "Date", "Expires", "Last-Modified", NULL };
static const struct {
const char *name;
int pread_len = 0;
apr_table_t *save_table;
int backend_broke = 0;
- static const char *hop_by_hop_hdrs[] =
+ static const char *const hop_by_hop_hdrs[] =
{"Keep-Alive", "Proxy-Authenticate", "TE", "Trailer", "Upgrade", NULL};
int i;
const char *te = NULL;
{
/* ssl_hook_ReadReq needs to use the BrowserMatch settings so must
* run after mod_setenvif's post_read_request hook. */
- static const char *pre_prr[] = { "mod_setenvif.c", NULL };
+ static const char *const pre_prr[] = { "mod_setenvif.c", NULL };
/* The ssl_init_Module post_config hook should run before mod_proxy's
* for the ssl proxy main configs to be merged with vhosts' before being
* themselves merged with mod_proxy's in proxy_hook_section_post_config.
*/
- static const char *b_pc[] = { "mod_proxy.c", NULL};
+ static const char *const b_pc[] = { "mod_proxy.c", NULL};
ssl_io_filter_register(p);
/* Patterns to match in ap_make_content_type() */
-static const char *needcset[] = {
+static const char *const needcset[] = {
"text/plain",
"text/html",
NULL