Go to the documentation of this file.
51 const unsigned int name_include,
52 const unsigned int name_exclude,
53 const char name_replace,
54 const unsigned int value_include,
55 const unsigned int value_exclude,
56 const char value_replace);
100 return (strncmp(str,
"password", 8) == 0);
120 const bool check_allowed,
const char ** make_env_array(const struct env_set *es, const bool check_allowed, struct gc_arena *gc)
void env_set_destroy(struct env_set *es)
void env_set_add(struct env_set *es, const char *str)
void setenv_int(struct env_set *es, const char *name, int value)
void setenv_str_i(struct env_set *es, const char *name, const char *value, const int i)
void env_set_print(int msglevel, const struct env_set *es)
const char * env_set_get(const struct env_set *es, const char *name)
void setenv_counter(struct env_set *es, const char *name, counter_type value)
void env_set_inherit(struct env_set *es, const struct env_set *src)
void setenv_str_safe(struct env_set *es, const char *name, const char *value)
bool env_allowed(const char *str)
void setenv_long_long(struct env_set *es, const char *name, long long value)
struct env_set * env_set_create(struct gc_arena *gc)
static bool is_password_env_var(const char *str)
Garbage collection arena used to keep track of dynamically allocated memory.
void setenv_str(struct env_set *es, const char *name, const char *value)
void setenv_str_ex(struct env_set *es, const char *name, const char *value, const unsigned int name_include, const unsigned int name_exclude, const char name_replace, const unsigned int value_include, const unsigned int value_exclude, const char value_replace)
bool env_set_del(struct env_set *es, const char *str)
static bool env_safe_to_print(const char *str)
void setenv_int_i(struct env_set *es, const char *name, const int value, const int i)
void setenv_del(struct env_set *es, const char *name)
void setenv_str_incr(struct env_set *es, const char *name, const char *value)
Store the supplied name value pair in the env_set.