<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openvpn.git/src/openvpn/plugin.c, branch release/2.3</title>
<subtitle>Copy of the official OpenVPN git repo</subtitle>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/dsommers/public_git/openvpn.git/'/>
<entry>
<title>plugin: Extend the plug-in v3 API to identify the SSL implementation used</title>
<updated>2013-07-03T19:22:12+00:00</updated>
<author>
<name>David Sommerseth</name>
<email>davids@redhat.com</email>
</author>
<published>2013-07-03T19:17:10+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/dsommers/public_git/openvpn.git/commit/?id=570da542877a1f42ed6549a6ca3f54df9ec53c1f'/>
<id>570da542877a1f42ed6549a6ca3f54df9ec53c1f</id>
<content type='text'>
OpenVPN would segfault unexpectedly if it would be compiled against
PolarSSL
and the plug-in would expect OpenSSL, or vice-versa.  This segfault would
not appear before the plug-in would try to access functions which would
be available if the plug-in and OpenVPN uses the same SSL implementation.

This patch adds a member to the plug-in initialisation function, which
identifies the SSL implementation.

The log_v3 plug-in is updated accordingly + a simple fix to make it
buildable again using the ./build script.

A minor documentation error in the openvpn-plugin.h was also
corrected, where it mentioned OPENVPN_PLUGIN_VERSION instead of
OPENVPN_PLUGINv3_STRUCTVER.

 v2 - add const ovpnSSLAPI ssl_api at the end of
      struct openvpn_plugin_args_open_in and not in the "middle"

 v3 - fix bug in plug-in init, as the SSLAPI was located wrong in the
      args struct sent to the openvpn_plugin_open_v3() function.

 v4 - Ensure SSLAPI got a sane/known value if SSL is disabled or unknown

Signed-off-by: David Sommerseth &lt;davids@redhat.com&gt;
Acked-by: Gert Doering &lt;gert@greenie.muc.de&gt;
Message-Id: &lt;1372879030-10576-1-git-send-email-dazo@users.sourceforge.net&gt;
URL: http://article.gmane.org/gmane.network.openvpn.devel/7754
Signed-off-by: Gert Doering &lt;gert@greenie.muc.de&gt;
(cherry picked from commit 587df08abda3c8f1f85ccdba4d8b82a736c11e2d)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
OpenVPN would segfault unexpectedly if it would be compiled against
PolarSSL
and the plug-in would expect OpenSSL, or vice-versa.  This segfault would
not appear before the plug-in would try to access functions which would
be available if the plug-in and OpenVPN uses the same SSL implementation.

This patch adds a member to the plug-in initialisation function, which
identifies the SSL implementation.

The log_v3 plug-in is updated accordingly + a simple fix to make it
buildable again using the ./build script.

A minor documentation error in the openvpn-plugin.h was also
corrected, where it mentioned OPENVPN_PLUGIN_VERSION instead of
OPENVPN_PLUGINv3_STRUCTVER.

 v2 - add const ovpnSSLAPI ssl_api at the end of
      struct openvpn_plugin_args_open_in and not in the "middle"

 v3 - fix bug in plug-in init, as the SSLAPI was located wrong in the
      args struct sent to the openvpn_plugin_open_v3() function.

 v4 - Ensure SSLAPI got a sane/known value if SSL is disabled or unknown

Signed-off-by: David Sommerseth &lt;davids@redhat.com&gt;
Acked-by: Gert Doering &lt;gert@greenie.muc.de&gt;
Message-Id: &lt;1372879030-10576-1-git-send-email-dazo@users.sourceforge.net&gt;
URL: http://article.gmane.org/gmane.network.openvpn.devel/7754
Signed-off-by: Gert Doering &lt;gert@greenie.muc.de&gt;
(cherry picked from commit 587df08abda3c8f1f85ccdba4d8b82a736c11e2d)
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix parameter listing in non-debug builds at verb 4</title>
<updated>2013-03-14T15:39:10+00:00</updated>
<author>
<name>Josh Cepek</name>
<email>josh.cepek@usa.net</email>
</author>
<published>2013-02-21T15:50:38+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/dsommers/public_git/openvpn.git/commit/?id=c4358645fb37b7c4d9c82c0b7b8b4f17ec4cf326'/>
<id>c4358645fb37b7c4d9c82c0b7b8b4f17ec4cf326</id>
<content type='text'>
When built with enable_debug=no, the parameter output expected at --verb
4 is not printed due to use of #ifdef ENABLE_DEBUG in the responsible
code sections. This appears to be a mistake when looking at the
configure help text for enable_small and enable_debug.

This change keys the relevant code off of enable_small instead,
including the parameter listing when enale_small=no (the
configure-script default.) Most of this code is in options.c, with some
callers present in plugin.c/h and route.c/h. No function code is
changed, just the #ifdef values to use the small feature instead of
debug.

This means builds no longer need enable_debug=yes in order to get the
expected log output at verb 4.

Signed-off-by: Josh Cepek &lt;josh.cepek@usa.net&gt;
Acked-by: Arne Schwabe &lt;arne@rfc2549.org&gt;
Message-Id: &lt;437RBuq1U8032S07.1361465626@web07.cms.usa.net&gt;
URL: http://article.gmane.org/gmane.network.openvpn.devel/7361
Signed-off-by: Gert Doering &lt;gert@greenie.muc.de&gt;
(cherry picked from commit 6c61d0dd339084175f6911d8b713faaf4967ca03)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When built with enable_debug=no, the parameter output expected at --verb
4 is not printed due to use of #ifdef ENABLE_DEBUG in the responsible
code sections. This appears to be a mistake when looking at the
configure help text for enable_small and enable_debug.

This change keys the relevant code off of enable_small instead,
including the parameter listing when enale_small=no (the
configure-script default.) Most of this code is in options.c, with some
callers present in plugin.c/h and route.c/h. No function code is
changed, just the #ifdef values to use the small feature instead of
debug.

This means builds no longer need enable_debug=yes in order to get the
expected log output at verb 4.

Signed-off-by: Josh Cepek &lt;josh.cepek@usa.net&gt;
Acked-by: Arne Schwabe &lt;arne@rfc2549.org&gt;
Message-Id: &lt;437RBuq1U8032S07.1361465626@web07.cms.usa.net&gt;
URL: http://article.gmane.org/gmane.network.openvpn.devel/7361
Signed-off-by: Gert Doering &lt;gert@greenie.muc.de&gt;
(cherry picked from commit 6c61d0dd339084175f6911d8b713faaf4967ca03)
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix display of plugin hook types</title>
<updated>2012-10-29T14:39:33+00:00</updated>
<author>
<name>Heiko Hund</name>
<email>heiko.hund@sophos.com</email>
</author>
<published>2012-10-29T13:38:30+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/dsommers/public_git/openvpn.git/commit/?id=3b8d116d3d9dbe2fac786311db8b2bec53d88c77'/>
<id>3b8d116d3d9dbe2fac786311db8b2bec53d88c77</id>
<content type='text'>
The OPENVPN_PLUGIN_ROUTE_PREDOWN hook was missing and displayed as
"PLUGIN_???" in the log.

OPENVPN_PLUGIN_ENABLE_PF was the only one that displayed the
OPENVPN_ prefix.

Signed-off-by: Heiko Hund &lt;heiko.hund@sophos.com&gt;
Acked-by: David Sommerseth &lt;davids@redhat.com&gt;
Message-Id: 1351517910-11414-1-git-send-email-heiko.hund@sophos.com
URL: http://article.gmane.org/gmane.network.openvpn.devel/7111
Signed-off-by: David Sommerseth &lt;davids@redhat.com&gt;
(cherry picked from commit ae303d444c11984b87e0046c4138982d7a41fd8b)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The OPENVPN_PLUGIN_ROUTE_PREDOWN hook was missing and displayed as
"PLUGIN_???" in the log.

OPENVPN_PLUGIN_ENABLE_PF was the only one that displayed the
OPENVPN_ prefix.

Signed-off-by: Heiko Hund &lt;heiko.hund@sophos.com&gt;
Acked-by: David Sommerseth &lt;davids@redhat.com&gt;
Message-Id: 1351517910-11414-1-git-send-email-heiko.hund@sophos.com
URL: http://article.gmane.org/gmane.network.openvpn.devel/7111
Signed-off-by: David Sommerseth &lt;davids@redhat.com&gt;
(cherry picked from commit ae303d444c11984b87e0046c4138982d7a41fd8b)
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix v3 plugins to support returning values back to OpenVPN.</title>
<updated>2012-10-15T16:55:27+00:00</updated>
<author>
<name>Kenneth Rose</name>
<email>ken+openvpn@surfeasy.com</email>
</author>
<published>2012-10-01T18:47:02+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/dsommers/public_git/openvpn.git/commit/?id=aa1a1d91ca1266342762460f86427a577b51908f'/>
<id>aa1a1d91ca1266342762460f86427a577b51908f</id>
<content type='text'>
There's a small implementation issue with the V3 plugin API
implementation.  V3 plugins cannot return data back to OpenVPN using
openvpn_plugin_args_func_return since
openvpn_plugin_args_func_return.return_list is always NULL.

This patch makes the behaviour identical to the V2 API (return_list is
again a proper out parameter).

Signed-off-by: Kenneth Rose &lt;ken+openvpn@surfeasy.com&gt;
Acked-by: David Sommerseth &lt;davids@redhat.com&gt;
Message-Id: CAAUdgR8VZjaO0-thFPVoQkbZ1DNG3rx+gtYYLqyfocp3yns==w@mail.gmail.com
URL: http://article.gmane.org/gmane.network.openvpn.devel/7083
Signed-off-by: David Sommerseth &lt;davids@redhat.com&gt;
(cherry picked from commit e92255f58bcfaec157c3ef59e01c40cbd04b1d43)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
There's a small implementation issue with the V3 plugin API
implementation.  V3 plugins cannot return data back to OpenVPN using
openvpn_plugin_args_func_return since
openvpn_plugin_args_func_return.return_list is always NULL.

This patch makes the behaviour identical to the V2 API (return_list is
again a proper out parameter).

Signed-off-by: Kenneth Rose &lt;ken+openvpn@surfeasy.com&gt;
Acked-by: David Sommerseth &lt;davids@redhat.com&gt;
Message-Id: CAAUdgR8VZjaO0-thFPVoQkbZ1DNG3rx+gtYYLqyfocp3yns==w@mail.gmail.com
URL: http://article.gmane.org/gmane.network.openvpn.devel/7083
Signed-off-by: David Sommerseth &lt;davids@redhat.com&gt;
(cherry picked from commit e92255f58bcfaec157c3ef59e01c40cbd04b1d43)
</pre>
</div>
</content>
</entry>
<entry>
<title>add API for plug-ins to write to openvpn log</title>
<updated>2012-08-06T10:16:12+00:00</updated>
<author>
<name>Heiko Hund</name>
<email>heiko.hund@sophos.com</email>
</author>
<published>2012-08-02T15:20:22+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/dsommers/public_git/openvpn.git/commit/?id=be532e0d151bc5ad404970fdc7b49e61512a625c'/>
<id>be532e0d151bc5ad404970fdc7b49e61512a625c</id>
<content type='text'>
Some plugins want to add messages to the openvpn log file. The
plugin_log() and plugin_vlog() APIs provide ways for them to do so.

OPENVPN_PLUGINv3_STRUCTVER is not incremented as the v3 plugin API
is new in 2.3 and this is merged during alpha phase.

Signed-off-by: Heiko Hund &lt;heiko.hund@sophos.com&gt;
Acked-by: David Sommerseth &lt;davids@redhat.com&gt;
Message-Id: 1343920822-29161-1-git-send-email-heiko.hund@sophos.com
URL: http://article.gmane.org/gmane.network.openvpn.devel/6946
Signed-off-by: David Sommerseth &lt;dazo@users.sourceforge.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Some plugins want to add messages to the openvpn log file. The
plugin_log() and plugin_vlog() APIs provide ways for them to do so.

OPENVPN_PLUGINv3_STRUCTVER is not incremented as the v3 plugin API
is new in 2.3 and this is merged during alpha phase.

Signed-off-by: Heiko Hund &lt;heiko.hund@sophos.com&gt;
Acked-by: David Sommerseth &lt;davids@redhat.com&gt;
Message-Id: 1343920822-29161-1-git-send-email-heiko.hund@sophos.com
URL: http://article.gmane.org/gmane.network.openvpn.devel/6946
Signed-off-by: David Sommerseth &lt;dazo@users.sourceforge.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>build: move out config.h include from syshead</title>
<updated>2012-03-22T21:53:39+00:00</updated>
<author>
<name>Alon Bar-Lev</name>
<email>alon.barlev@gmail.com</email>
</author>
<published>2012-02-29T20:12:13+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/dsommers/public_git/openvpn.git/commit/?id=c110b289eced4a792fd7c7c29e651b22f602fd24'/>
<id>c110b289eced4a792fd7c7c29e651b22f602fd24</id>
<content type='text'>
Yet another step in reducing the syshead.h content.

Conditional compilation of sources needs to be based on
a minimum program prefix (config.h only).

Signed-off-by: Alon Bar-Lev &lt;alon.barlev@gmail.com&gt;
Acked-by: David Sommerseth &lt;davids@redhat.com&gt;
Signed-off-by: David Sommerseth &lt;davids@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Yet another step in reducing the syshead.h content.

Conditional compilation of sources needs to be based on
a minimum program prefix (config.h only).

Signed-off-by: Alon Bar-Lev &lt;alon.barlev@gmail.com&gt;
Acked-by: David Sommerseth &lt;davids@redhat.com&gt;
Signed-off-by: David Sommerseth &lt;davids@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>build: proper crypto detection and usage</title>
<updated>2012-03-22T21:53:39+00:00</updated>
<author>
<name>Alon Bar-Lev</name>
<email>alon.barlev@gmail.com</email>
</author>
<published>2012-02-29T20:12:10+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/dsommers/public_git/openvpn.git/commit/?id=9b33b5a4b1aa170080d18b0f32f6599b519589f0'/>
<id>9b33b5a4b1aa170080d18b0f32f6599b519589f0</id>
<content type='text'>
Signed-off-by: Alon Bar-Lev &lt;alon.barlev@gmail.com&gt;
Acked-by: Adriaan de Jong &lt;dejong@fox-it.com&gt;
Signed-off-by: David Sommerseth &lt;davids@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Alon Bar-Lev &lt;alon.barlev@gmail.com&gt;
Acked-by: Adriaan de Jong &lt;dejong@fox-it.com&gt;
Signed-off-by: David Sommerseth &lt;davids@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>build: libdl usage</title>
<updated>2012-03-22T21:17:26+00:00</updated>
<author>
<name>Alon Bar-Lev</name>
<email>alon.barlev@gmail.com</email>
</author>
<published>2012-02-29T20:12:02+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/dsommers/public_git/openvpn.git/commit/?id=bdae41107ddde61cae5ae2037c1420b539c52ff8'/>
<id>bdae41107ddde61cae5ae2037c1420b539c52ff8</id>
<content type='text'>
1. properly detect.
2. Link only required components.
3. No way we don't have LoadLibrary on Windows.
4. ENABLE_PLUGIN should be controlled in autoconf.

Signed-off-by: Alon Bar-Lev &lt;alon.barlev@gmail.com&gt;
Acked-by: Adriaan de Jong &lt;dejong@fox-it.com&gt;
Acked-by: David Sommerseth &lt;davids@redhat.com&gt;
Signed-off-by: David Sommerseth &lt;davids@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
1. properly detect.
2. Link only required components.
3. No way we don't have LoadLibrary on Windows.
4. ENABLE_PLUGIN should be controlled in autoconf.

Signed-off-by: Alon Bar-Lev &lt;alon.barlev@gmail.com&gt;
Acked-by: Adriaan de Jong &lt;dejong@fox-it.com&gt;
Acked-by: David Sommerseth &lt;davids@redhat.com&gt;
Signed-off-by: David Sommerseth &lt;davids@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>build: standard directory layout</title>
<updated>2012-03-22T21:07:08+00:00</updated>
<author>
<name>Alon Bar-Lev</name>
<email>alon.barlev@gmail.com</email>
</author>
<published>2012-02-29T20:11:59+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/dsommers/public_git/openvpn.git/commit/?id=34cb9132ef2dae08f91a66015ea5437539a4b557'/>
<id>34cb9132ef2dae08f91a66015ea5437539a4b557</id>
<content type='text'>
Suitable for mature project.

root   - administrative stuff
doc    - documents
src    - sources
tests  - tests
distro - distro specific files
sample - samples

SIDE EFFECT: many changes to rpm spec.

Signed-off-by: Alon Bar-Lev &lt;alon.barlev@gmail.com&gt;
Acked-by: Adriaan de Jong &lt;dejong@fox-it.com&gt;
Signed-off-by: David Sommerseth &lt;davids@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Suitable for mature project.

root   - administrative stuff
doc    - documents
src    - sources
tests  - tests
distro - distro specific files
sample - samples

SIDE EFFECT: many changes to rpm spec.

Signed-off-by: Alon Bar-Lev &lt;alon.barlev@gmail.com&gt;
Acked-by: Adriaan de Jong &lt;dejong@fox-it.com&gt;
Signed-off-by: David Sommerseth &lt;davids@redhat.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
