/* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "apr.h"
#include "apr_strings.h"
#include <stdlib.h>
#endif
#include "ap_config.h"
#include "httpd.h"
#include "http_config.h"
#include "http_request.h"
#include "http_log.h"
typedef struct {
{
return conf;
}
{
int i;
/*
* res->vars = copy_table( p, base->vars );
* foreach $unsetenv ( @add->unsetenv )
* table_unset( res->vars, $unsetenv );
* foreach $element ( @add->vars )
* table_set( res->vars, $element.key, $element.val );
*
* add->unsetenv already removed the vars from add->vars,
* if they preceeded the UnsetEnv directive.
*/
if (arr) {
}
}
if (arr) {
}
}
return res;
}
const char *arg)
{
const char *env_var;
}
else {
"PassEnv variable %s was undefined", arg);
}
return NULL;
}
{
/* name is mandatory, value is optional. no value means
* set the variable to an empty string
*/
return NULL;
}
const char *arg)
{
/* Always UnsetEnv FOO in the same context as {Set,Pass}Env FOO
* only if this UnsetEnv follows the {Set,Pass}Env. The merge
* will only apply unsetenv to the parent env (main server).
*/
return NULL;
}
{
OR_FILEINFO, "a list of environment variables to pass to CGI."),
OR_FILEINFO, "an environment variable name and optional value to pass to CGI."),
OR_FILEINFO, "a list of variables to remove from the CGI environment."),
{NULL},
};
{
&env_module);
return DECLINED;
}
return OK;
}
{
}
{
create_env_dir_config, /* dir config creater */
merge_env_dir_configs, /* dir merger --- default is to override */
NULL, /* server config */
NULL, /* merge server configs */
env_module_cmds, /* command apr_table_t */
register_hooks /* register hooks */
};