<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openvpn.git/src/openvpn/push.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>Fix spurious ignoring of pushed config options (trac#349).</title>
<updated>2014-01-07T21:16:50+00:00</updated>
<author>
<name>Jens Wagner</name>
<email>jwagner@hexonet.net</email>
</author>
<published>2014-01-07T21:07:54+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/dsommers/public_git/openvpn.git/commit/?id=e93fb8ceebe9ca7748d8874893221a40330564e4'/>
<id>e93fb8ceebe9ca7748d8874893221a40330564e4</id>
<content type='text'>
The function incoming_push_message(...) in push.c uses a local variable
option_types_found, that gets passed to do_up(...).

If the server push got split into several parts, only the last part
(PUSH_MSG_REPLY) option_types_found is used for do_up (initilized as 0
locally), the previous ones (PUSH_MSG_CONTINUATION) are ignored.

So e.g. a ping config, pushed by the server in the first push, followed
by a lot of "push route" configs, causing a second push message, will
have the do_up() called, but without e.g. the OPT_P_TIMER flag, so those
options will be silently ignored.

The patch resolves that, by introducing "push_option_types_found" in
"c-&gt;options" and using that as storage.

Fix trac bug #349.

Acked-by: Gert Doering &lt;gert@greenie.muc.de&gt;
URL: https://community.openvpn.net/openvpn/ticket/349
Signed-off-by: Gert Doering &lt;gert@greenie.muc.de&gt;
(cherry picked from commit 1aac9a0b7a4046822a0134cd8693a828f2e16576)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The function incoming_push_message(...) in push.c uses a local variable
option_types_found, that gets passed to do_up(...).

If the server push got split into several parts, only the last part
(PUSH_MSG_REPLY) option_types_found is used for do_up (initilized as 0
locally), the previous ones (PUSH_MSG_CONTINUATION) are ignored.

So e.g. a ping config, pushed by the server in the first push, followed
by a lot of "push route" configs, causing a second push message, will
have the do_up() called, but without e.g. the OPT_P_TIMER flag, so those
options will be silently ignored.

The patch resolves that, by introducing "push_option_types_found" in
"c-&gt;options" and using that as storage.

Fix trac bug #349.

Acked-by: Gert Doering &lt;gert@greenie.muc.de&gt;
URL: https://community.openvpn.net/openvpn/ticket/349
Signed-off-by: Gert Doering &lt;gert@greenie.muc.de&gt;
(cherry picked from commit 1aac9a0b7a4046822a0134cd8693a828f2e16576)
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix client crash on double PUSH_REPLY.</title>
<updated>2013-01-02T12:20:50+00:00</updated>
<author>
<name>Gert Doering</name>
<email>gert@greenie.muc.de</email>
</author>
<published>2012-12-25T12:41:50+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/dsommers/public_git/openvpn.git/commit/?id=2e3b853dd1070435d60a1f11ff4364631c83d6a9'/>
<id>2e3b853dd1070435d60a1f11ff4364631c83d6a9</id>
<content type='text'>
Introduce an extra bool variable c2.pulled_options_md5_init_done to
keep track of md5_init state of pulled_options_state - avoid accessing
uninitialized state when a second PUSH_REPLY comes in (which only happens
under very particular circumstances).

Bug tracked down by Arne Schwabe &lt;arne@rfc2549.rrg&gt;.

Signed-off-by: Gert Doering &lt;gert@greenie.muc.de&gt;
Acked-by: Arne Schwabe &lt;arne@rfc2549.org&gt;
Message-Id: 20121225124856.GT22465@greenie.muc.de
URL: http://article.gmane.org/gmane.network.openvpn.devel/7216
Signed-off-by: David Sommerseth &lt;davids@redhat.com&gt;
(cherry picked from commit 1978db4b9657f0db134f1deaeb1e8400bf6a033e)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Introduce an extra bool variable c2.pulled_options_md5_init_done to
keep track of md5_init state of pulled_options_state - avoid accessing
uninitialized state when a second PUSH_REPLY comes in (which only happens
under very particular circumstances).

Bug tracked down by Arne Schwabe &lt;arne@rfc2549.rrg&gt;.

Signed-off-by: Gert Doering &lt;gert@greenie.muc.de&gt;
Acked-by: Arne Schwabe &lt;arne@rfc2549.org&gt;
Message-Id: 20121225124856.GT22465@greenie.muc.de
URL: http://article.gmane.org/gmane.network.openvpn.devel/7216
Signed-off-by: David Sommerseth &lt;davids@redhat.com&gt;
(cherry picked from commit 1978db4b9657f0db134f1deaeb1e8400bf6a033e)
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix reconnect issues when --push and UDP is used on the server</title>
<updated>2012-09-11T17:01:14+00:00</updated>
<author>
<name>David Sommerseth</name>
<email>davids@redhat.com</email>
</author>
<published>2012-09-09T01:30:46+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/dsommers/public_git/openvpn.git/commit/?id=5d4f5435a421299ed047485d8d99bdf9a0d22fd1'/>
<id>5d4f5435a421299ed047485d8d99bdf9a0d22fd1</id>
<content type='text'>
When the server is configured with UDP and --push statements, reconnecting
often fails by the client never receiving PUSH_REPLY.  The client sends
PUSH_REQUEST and the server logs these requests but does not send them.

This bug got introduced in commit ff65da3a230b658b2c1d52dc1a48612e80a2eb42
which tries to avoid sending duplicated PUSH messages if the client/server
connection is slow.

This patch keeps this behaviour, but instead of a session wide PUSH_REPLY
block it sets an expiry time for the PUSH_REPLY block.  The expiry time
is set to 30 seconds.

Signed-off-by: David Sommerseth &lt;davids@redhat.com&gt;
Cc: James Yonan &lt;james@openvpn.net&gt;
Acked-by: Gert Doering &lt;gert@greenie.muc.de&gt;
Acked-by: James Yonan &lt;james@openvpn.net&gt;
Message-Id: 1347154246-20143-1-git-send-email-dazo@users.sourceforge.net
URL: http://article.gmane.org/gmane.network.openvpn.devel/7044
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When the server is configured with UDP and --push statements, reconnecting
often fails by the client never receiving PUSH_REPLY.  The client sends
PUSH_REQUEST and the server logs these requests but does not send them.

This bug got introduced in commit ff65da3a230b658b2c1d52dc1a48612e80a2eb42
which tries to avoid sending duplicated PUSH messages if the client/server
connection is slow.

This patch keeps this behaviour, but instead of a session wide PUSH_REPLY
block it sets an expiry time for the PUSH_REPLY block.  The expiry time
is set to 30 seconds.

Signed-off-by: David Sommerseth &lt;davids@redhat.com&gt;
Cc: James Yonan &lt;james@openvpn.net&gt;
Acked-by: Gert Doering &lt;gert@greenie.muc.de&gt;
Acked-by: James Yonan &lt;james@openvpn.net&gt;
Message-Id: 1347154246-20143-1-git-send-email-dazo@users.sourceforge.net
URL: http://article.gmane.org/gmane.network.openvpn.devel/7044
</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: 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>
