From: "plaisthos (Code Review)" Date: Wed, 12 Nov 2025 11:06:14 +0000 References: Reply-To: arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net Message-ID: <44584efc00be7ac148523cc3fb11a1a02cdfe4d0-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="oEgbh55P8AY="; 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 --oEgbh55P8AY= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable plaisthos has uploaded this change for review. ( http://gerrit.openvpn.net/= c/openvpn/+/1369?usp=3Demail ) 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, 10 insertions(+), 0 deletions(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/69/1369/1 diff --git a/src/openvpn/dco.c b/src/openvpn/dco.c index 7abdad3..a0a990f 100644 --- a/src/openvpn/dco.c +++ b/src/openvpn/dco.c @@ -474,6 +474,16 @@ 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); -- 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: newchange Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: I1104044701145fa37cea857e2e0e0fcac7a2bee3 Gerrit-Change-Number: 1369 Gerrit-PatchSet: 1 Gerrit-Owner: plaisthos Gerrit-CC: openvpn-devel --oEgbh55P8AY= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

plaisthos has upl= oaded this change for review.

View Change

Fix dco with null cipher being enabled without auth none

This is= a corner case and only the FreeBSD DCO module support the
none encrypti= on but as long as it supports it, we should only
enable it when the conf= iguration actually allows to enable it.

Change-Id: I1104044701145fa3= 7cea857e2e0e0fcac7a2bee3
Signed-off-by: Arne Schwabe <arne@...1227...= >
---
M src/openvpn/dco.c
1 file changed, 10 insertions(+), 0 d= eletions(-)

git pull ssh://gerrit.openvpn.net:29=
418/openvpn refs/changes/69/1369/1
diff --git a/src/openvpn/dco.c b=
/src/openvpn/dco.c
index 7abdad3..a0a990f 100644
= --- a/src/openvpn/dco.c
+++ b/src/openvpn/dco.c
@@ -474,6 +474,16 @@
gc_free(&g= c);
return false;
}
+ /* FreeBSD su= pports none as cipher type but requires auth none to be
+ * be also enabled */+ if (strcmp(token, &qu= ot;none") =3D=3D 0 && strcmp(o->authname, "none")= !=3D 0)
+ {
+ msg(msgle= vel,
+ = "Note: cipher '%s' in --data-ciphers is only supported "=
+ &qu= ot;with --auth=3Dnone by ovpn-dco, disabling data channel "
= + "offload.= ",
+ = token);
+ = }
}
gc_free(&gc);
<= span>


To view, visit change 1369. To unsub= scribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: newchange
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I1104044701145fa37cea857e2e0= e0fcac7a2bee3
Gerrit-Change-Number: 1369
Gerrit-PatchSet: 1
Gerrit-Owner: plaisthos <arne-openvpn@...1711...= 27...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
= --oEgbh55P8AY=--