From: "plaisthos (Code Review)" Date: Tue, 2 Dec 2025 15:14:52 +0000 In-Reply-To: References: Reply-To: arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, gert@...1296... Message-ID: <47d671bae83aee190972c129d47dc97b07e52dc8-EmailReplacePatchSet-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="j68d1dLnb8w="; 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: , Cc: openvpn-devel --j68d1dLnb8w= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: cron2. Hello cron2, I'd like you to reexamine a change. Please visit http://gerrit.openvpn.net/c/openvpn/+/1369?usp=3Demail to look at the new patch set (#2). 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 --- M src/openvpn/dco.c 1 file changed, 12 insertions(+), 0 deletions(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/69/1369/2 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: 2 Gerrit-Owner: plaisthos Gerrit-Reviewer: cron2 Gerrit-CC: openvpn-devel Gerrit-Attention: cron2 --j68d1dLnb8w= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is cur= rently required from: cron2.

plaisthos uploaded patch set #2 to this change.

<= a href=3D"http://gerrit.openvpn.net/c/openvpn/+/1369?usp=3Demail">View Chan= ge

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
ena= ble it when the configuration actually allows to enable it.

Change-I= d: I1104044701145fa37cea857e2e0e0fcac7a2bee3
Signed-off-by: Arne Schwabe= <arne@...1227...>
---
M src/openvpn/dco.c
1 file changed, 1= 2 insertions(+), 0 deletions(-)

git pull ssh://g=
errit.openvpn.net:29418/openvpn refs/changes/69/1369/2
diff --git a=
/src/openvpn/dco.c b/src/openvpn/dco.c
index 7abdad3..6a1a5= c9 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 */
+ i= f (strcmp(token, "none") =3D=3D 0 && strcmp(o->authnam= e, "none") !=3D 0)
+ {
+ = msg(msglevel,
+ "Note: cipher '%s' in --data-ciphers is o= nly supported "
= + "with --auth=3Dnone by ovpn-dco, disabling data chann= el "
+ = "offload.",
+ token);
+ gc_free(&gc);
+ return false;
+ }
}
gc_free(&gc);


To view, visit change 1369. To unsubscribe, or for help writing mail filter= s, visit setting= s.

Gerrit-MessageType: newpatchset
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I1104044701145fa37cea857e2e0= e0fcac7a2bee3
Gerrit-Change-Number: 1369
Gerrit-PatchSet: 2
Gerrit-Owner: plaisthos <arne-openvpn@...1711...= 27...>
Gerrit-Reviewer: cron2 <gert@...1296...>=
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-Attention: cron2 <gert@...1296...>= ;
= --j68d1dLnb8w=--