]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Added a simple plug-in demonstrating the v3 plug-in API.
authorDavid Sommerseth <dazo@users.sourceforge.net>
Fri, 10 Dec 2010 00:20:43 +0000 (01:20 +0100)
committerDavid Sommerseth <davids@redhat.com>
Fri, 25 Mar 2011 08:38:48 +0000 (09:38 +0100)
commit10960e3cd32c156ef2d4c1c4209a5ef27421bb70
tree0701dd2720e811227cce98f9abd58feccd168ce4
parent81c97a5e2230af757c22e77cc2db129416694ee6
Added a simple plug-in demonstrating the v3 plug-in API.

To build the plug-in, do ./build log_v3 in the plugin/examples directory.

This plug-in can be tested by running an OpenVPN server like this:

 # ./openvpn --plugin plugin/examples/log_v3.so --dev tun \
             --server 192.168.240.0 255.255.255.0 --ca sample-keys/ca.crt \
             --cert sample-keys/server.crt --key sample-keys/server.key \
             --dh sample-keys/dh1024.pem

The client can be started like this:

 # ./openvpn --client --remote localhost --ca sample-keys/ca.crt \
             --cert sample-keys/client.crt --key sample-keys/client.key \
             --dev tun --nobind --auth-user-pass

This plug-in will only log arguments and environment variables it receives
during all the different plug-in phases OpenVPN currently supports.  It will
also parse the X509 certificate information given during the TLS_VERIFY phase.

Signed-off-by: David Sommerseth <dazo@users.sourceforge.net>
Acked-by: James Yonan <james@openvpn.net>
plugin/examples/log_v3.c [new file with mode: 0644]