aboutsummaryrefslogtreecommitdiff
path: root/misc.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--misc.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/misc.c b/misc.c
index b7eaae9..0c45817 100644
--- a/misc.c
+++ b/misc.c
@@ -870,6 +870,14 @@ setenv_str (struct env_set *es, const char *name, const char *value)
}
void
+setenv_str_safe (struct env_set *es, const char *name, const char *value)
+{
+ char buf[64];
+ openvpn_snprintf (buf, sizeof(buf), "OPENVPN_%s", name);
+ setenv_str (es, buf, value);
+}
+
+void
setenv_del (struct env_set *es, const char *name)
{
ASSERT (name);