openvpn: Support '--tls-auth <file>' with optional '<direction>' argument
authorEmil Renner Berthing <esmil@mailme.dk>
Tue, 23 Oct 2012 10:29:24 +0000 (13:29 +0300)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Mon, 29 Oct 2012 10:38:08 +0000 (12:38 +0200)
commit2b8ef6f34662ed024d5fa015442e113fccbd6663
tree89b9e331ea570e94b794fa75fa02fda400f4b7fd
parent39e7dd43497a80f1637ae7de6887e77d7113d14c
openvpn: Support '--tls-auth <file>' with optional '<direction>' argument

Connman              OpenVPN

OpenVPN.TLSAuth      --tls-auth <file> [<direction>]
OpenVPN.TLSAuthDir   optional <direction> argument to '--tls-auth'

Since 'OpenVPN.TLSAuthDir' contains the optional <direction> argument for
'OpenVPN.TLSAuth', handle them separately. The special handling is
identified by setting openvpn command line argument to NULL.
plugins/openvpn.c