From: "mrbff (Code Review)" Date: Wed, 1 Oct 2025 22:09:53 +0000 In-Reply-To: References: Reply-To: marco@...2726..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: <26fccecf222930c3a7b31969a44107ad6456ecf4-EmailReplacePatchSet-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="N/3cSaUr7e4="; charset=UTF-8 Subject: [Openvpn-devel] [S] Change in openvpn[master]: PUSH_UPDATE: disabling PUSH_UPDATE server if DCO is enabled List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: plaisthos , flichtenheld Cc: openvpn-devel --N/3cSaUr7e4= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: flichtenheld, plaisthos. Hello flichtenheld, plaisthos, I'd like you to reexamine a change. Please visit http://gerrit.openvpn.net/c/openvpn/+/1245?usp=3Demail to look at the new patch set (#2). The following approvals got outdated and were removed: Code-Review-1 by flichtenheld Change subject: PUSH_UPDATE: disabling PUSH_UPDATE server if DCO is enabled ...................................................................... PUSH_UPDATE: disabling PUSH_UPDATE server if DCO is enabled Change-Id: Ibe78949435bb2f26ad68301e2710321bf37c9486 Signed-off-by: Marco Baffo --- M src/openvpn/push_util.c 1 file changed, 16 insertions(+), 1 deletion(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/45/1245/2 diff --git a/src/openvpn/push_util.c b/src/openvpn/push_util.c index 9138bdb..bbca00f 100644 --- a/src/openvpn/push_util.c +++ b/src/openvpn/push_util.c @@ -294,10 +294,17 @@ } \ } while (0) - bool management_callback_send_push_update_broadcast(void *arg, const char *opti= ons) { + struct multi_context *m =3D arg; + if (dco_enabled(&m->top.options)) + { + msg(M_WARN, "WARN: PUSH_UPDATE messages cannot currently be sent w= hile DCO is enabled." + " To send a PUSH_UPDATE message, be sure to use the --= disable-dco option."); + return false; + } + int n_sent =3D send_push_update(arg, NULL, options, UPT_BROADCAST, PUS= H_BUNDLE_SIZE); RETURN_UPDATE_STATUS(n_sent); @@ -306,6 +313,14 @@ bool management_callback_send_push_update_by_cid(void *arg, unsigned long cid, = const char *options) { + struct multi_context *m =3D arg; + if (dco_enabled(&m->top.options)) + { + msg(M_WARN, "WARN: PUSH_UPDATE messages cannot currently be sent w= hile DCO is enabled." + " To send a PUSH_UPDATE message, be sure to use the --= disable-dco option."); + return false; + } + int n_sent =3D send_push_update(arg, &cid, options, UPT_BY_CID, PUSH_B= UNDLE_SIZE); RETURN_UPDATE_STATUS(n_sent); -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1245?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings?usp=3Demail Gerrit-MessageType: newpatchset Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: Ibe78949435bb2f26ad68301e2710321bf37c9486 Gerrit-Change-Number: 1245 Gerrit-PatchSet: 2 Gerrit-Owner: mrbff Gerrit-Reviewer: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos Gerrit-Attention: flichtenheld --N/3cSaUr7e4= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is cur= rently required from: flichtenheld, plaisthos.

mrbff uploaded patch set #2 to this change.

View Change

The following approvals got outdated and were removed: Code-Review-1 by flichtenheld

PUSH_UPDATE: disabling PUSH_=
UPDATE server if DCO is enabled

Change-Id: Ibe78949435bb2f26ad68301e= 2710321bf37c9486
Signed-off-by: Marco Baffo <marco@...2726...>
= ---
M src/openvpn/push_util.c
1 file changed, 16 insertions(+), 1 del= etion(-)

git pull ssh://gerrit.openvpn.net:29418=
/openvpn refs/changes/45/1245/2
diff --git a/src/openvpn/push_util.=
c b/src/openvpn/push_util.c
index 9138bdb..bbca00f 100644
--- a/src/openvpn/push_util.c
+++ b/src/open= vpn/push_util.c
@@ -294,10 +294,17 @@
= } \<= br> } while (0)

-
bool
management_ca= llback_send_push_update_broadcast(void *arg, const char *options) {
+ struct= multi_context *m =3D arg;
+ if (dco_enabled(&m->top.options))
+ {
+ msg(M_WARN, "WARN: PUSH_UPDATE messages ca= nnot currently be sent while DCO is enabled."
+ " To send a PUSH_UP= DATE message, be sure to use the --disable-dco option.");
+ return false;

= + }
+
int n_sent =3D send_pu= sh_update(arg, NULL, options, UPT_BROADCAST, PUSH_BUNDLE_SIZE);
<= span>
RETURN_UPDATE_STATUS(n_sent);
@= @ -306,6 +313,14 @@
bool
management_callb= ack_send_push_update_by_cid(void *arg, unsigned long cid, const char *optio= ns)
{
+ if (dco_enabled(&m->top.options))
= + {
+ msg(M_WARN, "WARN: PUSH_UPDATE = messages cannot currently be sent while DCO is enabled."
+ " To sen= d a PUSH_UPDATE message, be sure to use the --disable-dco option.");
+ return false;=
+ }
+
int n_sent = =3D send_push_update(arg, &cid, options, UPT_BY_CID, PUSH_BUNDLE_SIZE);=

RETURN_UPDATE_STATUS(n_sent);

To view, visit change 1245. To unsubscribe, or f= or help writing mail filters, visit settings.

Gerrit-MessageType: newpatchset
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ibe78949435bb2f26ad68301e271= 0321bf37c9486
Gerrit-Change-Number: 1245
Gerrit-PatchSet: 2
Gerrit-Owner: mrbff <marco@...2726...> <= /div>
Gerrit-Reviewer: flichtenheld <frank@...2716...= 1...>
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-Attention: plaisthos <arne-openvpn@...220...= ..1227...>
Gerrit-Attention: flichtenheld <frank@...2375...= 41...>
= --N/3cSaUr7e4=--