aboutsummaryrefslogtreecommitdiff
path: root/push.c
diff options
context:
space:
mode:
authorjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2005-11-09 07:30:14 +0000
committerjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2005-11-09 07:30:14 +0000
commiteadf16a660310162bcc3cadda26f44acd3b83077 (patch)
tree7d384ed3923bb28c553d57bf9ca760f5aba51703 /push.c
parentAdded ENABLE_INLINE_FILES feature. (diff)
downloadopenvpn-eadf16a660310162bcc3cadda26f44acd3b83077.tar.xz
Removed annoying 'i' variable from add_option.
Allow plugin and push directives to have multiple parameters specified instead of only 1 quoted parameter. Allow plugin and push directives to have multi-line parameter lists, such as: <plugin> my-plugin.so parm1 parm2 </plugin> git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@785 e7ae566f-a301-0410-adde-c780ea21d3b5
Diffstat (limited to '')
-rw-r--r--push.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/push.c b/push.c
index e5c940a..a725eb5 100644
--- a/push.c
+++ b/push.c
@@ -179,6 +179,14 @@ push_option (struct options *o, const char *opt, int msglevel)
}
void
+push_options (struct options *o, char **p, int msglevel, struct gc_arena *gc)
+{
+ const char **argv = make_extended_arg_array (p, gc);
+ char *opt = print_argv (argv, gc, 0);
+ push_option (o, opt, msglevel);
+}
+
+void
push_reset (struct options *o)
{
o->push_list = NULL;