From: "cron2 (Code Review)" Date: Thu, 4 Dec 2025 15:01:47 +0000 In-Reply-To: References: Reply-To: gert@...1296..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, antonio@...2726... Message-ID: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="RFulN5HU2+M="; charset=UTF-8 Subject: [Openvpn-devel] [S] Change in openvpn[master]: Fix dco with null cipher being enabled without auth none List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: plaisthos Cc: openvpn-devel --RFulN5HU2+M= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable cron2 has uploaded a new patch set (#3) to the change originally created by= plaisthos. ( http://gerrit.openvpn.net/c/openvpn/+/1369?usp=3Demail ) The following approvals got outdated and were removed: Code-Review+2 by ordex Change subject: Fix dco with null cipher being enabled without auth none ...................................................................... Fix dco with null cipher being enabled without auth none This is a corner case and only the FreeBSD DCO module support the none encryption but as long as it supports it, we should only enable it when the configuration actually allows to enable it. Change-Id: I1104044701145fa37cea857e2e0e0fcac7a2bee3 Signed-off-by: Arne Schwabe Acked-by: Antonio Quartulli Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1369 Message-Id: <20251204134521.20025-1-gert@...1296...> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg34= 847.html Signed-off-by: Gert Doering --- M src/openvpn/dco.c 1 file changed, 12 insertions(+), 0 deletions(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/69/1369/3 diff --git a/src/openvpn/dco.c b/src/openvpn/dco.c index 7abdad3..6a1a5c9 100644 --- a/src/openvpn/dco.c +++ b/src/openvpn/dco.c @@ -474,6 +474,18 @@ gc_free(&gc); return false; } + /* FreeBSD supports none as cipher type but requires auth none to = be + * be also enabled */ + if (strcmp(token, "none") =3D=3D 0 && strcmp(o->authname, "none") = !=3D 0) + { + msg(msglevel, + "Note: cipher '%s' in --data-ciphers is only supported " + "with --auth=3Dnone by ovpn-dco, disabling data channel " + "offload.", + token); + gc_free(&gc); + return false; + } } gc_free(&gc); -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1369?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: I1104044701145fa37cea857e2e0e0fcac7a2bee3 Gerrit-Change-Number: 1369 Gerrit-PatchSet: 3 Gerrit-Owner: plaisthos Gerrit-Reviewer: cron2 Gerrit-Reviewer: ordex Gerrit-CC: openvpn-devel --RFulN5HU2+M= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

cron2 upl= oaded patch set #3 to the change originally created by plaisthos.<= /p>

Vi= ew Change

The following approvals got outdated and were removed: Code-Review+2 by ordex

Fix dco with null cipher being enab=
led without auth none

This is a corner case and only the FreeBSD DCO= module support the
none encryption but as long as it supports it, we sh= ould only
enable it when the configuration actually allows to enable it.=

Change-Id: I1104044701145fa37cea857e2e0e0fcac7a2bee3
Signed-off-= by: Arne Schwabe <arne@...1227...>
Acked-by: Antonio Quartulli <= ;antonio@...2726...>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn= /+/1369
Message-Id: <20251204134521.20025-1-gert@...1296...>
UR= L: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg3484= 7.html
Signed-off-by: Gert Doering <gert@...1296...>
---
M s= rc/openvpn/dco.c
1 file changed, 12 insertions(+), 0 deletions(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/c=
hanges/69/1369/3
diff --git a/src/openvpn/dco.c b/src/openvpn/dco.c=

index 7abdad3..6a1a5c9 100644
--- a/src/op= envpn/dco.c
+++ b/src/openvpn/dco.c
@@ -474= ,6 +474,18 @@
gc_free(&gc);
return false;
}
+ /* FreeBSD supports none as cip= her type but requires auth none to be
+ * be also enabled */
+ if (strcmp(token, "none") =3D= =3D 0 && strcmp(o->authname, "none") !=3D 0)+ {
+ msg(msglevel,
+ "Note: ciphe= r '%s' in --data-ciphers is only supported "
+ "with --auth=3Dn= one by ovpn-dco, disabling data channel "
+ "offload.",
= + token);=
+ gc_free(&g= c);
+ retu= rn false;
+ }<= /span>
}
gc_free(&gc);


To view, visit change 1369. To unsubsc= ribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: newpatchset
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I1104044701145fa37cea857e2e0= e0fcac7a2bee3
Gerrit-Change-Number: 1369
Gerrit-PatchSet: 3
Gerrit-Owner: plaisthos <arne-openvpn@...1711...= 27...>
Gerrit-Reviewer: cron2 <gert@...1296...>=
Gerrit-Reviewer: ordex <antonio@...2726...&= gt;
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
= --RFulN5HU2+M=--