diff options
author | Arne Schwabe <arne@rfc2549.org> | 2013-08-10 22:39:39 +0200 |
---|---|---|
committer | Arne Schwabe <arne@rfc2549.org> | 2013-08-10 22:39:39 +0200 |
commit | 3cdb12b7fc8c5c1b8697697258dca0deb3124e05 (patch) | |
tree | 557c1c9bd6a7ab07f0ac96279a94060b149e7ae9 /openvpn/sample | |
parent | a7063d0d69ca7445216a24dd347fea73e43974b5 (diff) |
Update openvpn source code
Diffstat (limited to 'openvpn/sample')
-rwxr-xr-x | openvpn/sample/sample-plugins/log/build | 2 | ||||
-rw-r--r-- | openvpn/sample/sample-plugins/log/log_v3.c | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/openvpn/sample/sample-plugins/log/build b/openvpn/sample/sample-plugins/log/build index bbb05f7c..c07ec408 100755 --- a/openvpn/sample/sample-plugins/log/build +++ b/openvpn/sample/sample-plugins/log/build @@ -6,7 +6,7 @@ # # This directory is where we will look for openvpn-plugin.h -CPPFLAGS="${CPPFLAGS:--I../../..}" +CPPFLAGS="${CPPFLAGS:--I../../../include}" CC="${CC:-gcc}" CFLAGS="${CFLAGS:--O2 -Wall -g}" diff --git a/openvpn/sample/sample-plugins/log/log_v3.c b/openvpn/sample/sample-plugins/log/log_v3.c index 742c7568..4d3af91a 100644 --- a/openvpn/sample/sample-plugins/log/log_v3.c +++ b/openvpn/sample/sample-plugins/log/log_v3.c @@ -85,6 +85,11 @@ openvpn_plugin_open_v3 (const int v3structver, return OPENVPN_PLUGIN_FUNC_ERROR; } + if( args->ssl_api != SSLAPI_OPENSSL ) { + printf("This plug-in can only be used against OpenVPN with OpenSSL\n"); + return OPENVPN_PLUGIN_FUNC_ERROR; + } + /* Which callbacks to intercept. */ ret->type_mask = OPENVPN_PLUGIN_MASK (OPENVPN_PLUGIN_UP) | |