From 5a2e9a2587372aeb4b74fa1aadf53283ed7cae10 Mon Sep 17 00:00:00 2001 From: james Date: Sat, 26 Jul 2008 07:27:03 +0000 Subject: Completely revamped the system for calling external programs and scripts: * All external programs and scripts are now called by execve() on unix and CreateProcess on Windows. * The system() function is no longer used. * Argument lists for external programs and scripts are now built by the new argv_printf function which natively outputs to string arrays (i.e. char *argv[] lists), never truncates its output, and eliminates the security issues inherent in formatting and parsing command lines, and dealing with argument quoting. * The --script-security directive has been added to offer policy controls on OpenVPN's execution of external programs and scripts. Also added a new plugin example (openvpn/plugin/examples/log.c) that logs information to stdout for every plugin method called by OpenVPN. git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3122 e7ae566f-a301-0410-adde-c780ea21d3b5 --- plugin.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugin.h') diff --git a/plugin.h b/plugin.h index 8e46eeb..61c3645 100644 --- a/plugin.h +++ b/plugin.h @@ -116,7 +116,7 @@ struct plugin_list *plugin_list_inherit (const struct plugin_list *src); int plugin_call (const struct plugin_list *pl, const int type, - const char *args, + const struct argv *av, struct plugin_return *pr, struct env_set *es); @@ -168,7 +168,7 @@ plugin_defined (const struct plugin_list *pl, const int type) static inline int plugin_call (const struct plugin_list *pl, const int type, - const char *args, + const struct argv *av, struct plugin_return *pr, struct env_set *es) { -- cgit v1.2.3