]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Move execve/run_script helper functions to run_command.c
authorSteffan Karger <steffan@karger.me>
Wed, 4 Jul 2018 17:53:57 +0000 (19:53 +0200)
committerGert Doering <gert@greenie.muc.de>
Thu, 12 Jul 2018 20:48:23 +0000 (22:48 +0200)
commitbf97c00f7dba441b504881f38e40afcbb610a39f
tree906c2014d0e0e24585736657e31a6dc9f80d9536
parentb7bea782f3356dbd82613dc8f38fd4ef0bc714ca
Move execve/run_script helper functions to run_command.c

To avoid having to include misc.c - which is a dependency mess - in the
tls-crypt unit tests, move the command execution helper functions to a new
run_command.c module.

While at it, abstract away the script_security global variable.

Signed-off-by: Steffan Karger <steffan.karger@fox-it.com>
Acked-by: Antonio Quartulli <antonio@openvpn.net>
Message-Id: <20180704175404.22371-2-steffan@karger.me>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg17212.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
15 files changed:
src/openvpn/Makefile.am
src/openvpn/env_set.c
src/openvpn/init.c
src/openvpn/lladdr.c
src/openvpn/misc.c
src/openvpn/misc.h
src/openvpn/multi.c
src/openvpn/options.c
src/openvpn/route.c
src/openvpn/run_command.c [new file with mode: 0644]
src/openvpn/run_command.h [new file with mode: 0644]
src/openvpn/socket.c
src/openvpn/ssl_verify.c
src/openvpn/tun.c
src/openvpn/win32.c