From: "plaisthos (Code Review)" Date: Mon, 20 Nov 2023 11:17:16 +0000 References: Reply-To: arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="ODVlJGs3yt0="; charset=UTF-8 Subject: [Openvpn-devel] [XS] Change in openvpn[master]: Deprecate tls-exit option List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: flichtenheld Cc: openvpn-devel --ODVlJGs3yt0= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: flichtenheld. Hello flichtenheld, I'd like you to do a code review. Please visit http://gerrit.openvpn.net/c/openvpn/+/447?usp=3Demail to review the following change. Change subject: Deprecate tls-exit option ...................................................................... Deprecate tls-exit option This option is questionable and I cannot see any reason to actually use it. Change-Id: I93afff2372c4150d6bddc8c07fd4ebc8bfb0cc3e --- M Changes.rst M doc/man-sections/tls-options.rst M src/openvpn/options.c 3 files changed, 7 insertions(+), 2 deletions(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/47/447/1 diff --git a/Changes.rst b/Changes.rst index 3676dce..922f78d 100644 --- a/Changes.rst +++ b/Changes.rst @@ -10,6 +10,10 @@ ``--allow-deprecated-insecure-static-crypto`` but will be removed in OpenVPN 2.8. +```tls-exit``` has been deprecated since it is unclear what the use case + for this option is. If you have a valid use case, please reach out sin= ce + the will otherwise be removed in the future. + Overview of changes in 2.6 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D diff --git a/doc/man-sections/tls-options.rst b/doc/man-sections/tls-option= s.rst index 908a42a..da5f362 100644 --- a/doc/man-sections/tls-options.rst +++ b/doc/man-sections/tls-options.rst @@ -553,7 +553,7 @@ code. --tls-exit - Exit on TLS negotiation failure. + **DEPRECATED** Exit on TLS negotiation failure. --tls-export-cert directory Store the certificates the clients use upon connection to this diff --git a/src/openvpn/options.c b/src/openvpn/options.c index 2594b66..5eb1a45 100644 --- a/src/openvpn/options.c +++ b/src/openvpn/options.c @@ -608,7 +608,7 @@ "--tran-window n : Transition window -- old key can live this many sec= onds\n" " after new key renegotiation begins (default=3D%d).\= n" "--single-session: Allow only one session (reset state on restart).\n" - "--tls-exit : Exit on TLS negotiation failure.\n" + "--tls-exit : (DEPRECATED) Exit on TLS negotiation failure.\n" "--tls-auth f [d]: Add an additional layer of authentication on top of= the TLS\n" " control channel to protect against attacks on the T= LS stack\n" " and DoS attacks.\n" @@ -8960,6 +8960,7 @@ } else if (streq(p[0], "tls-exit") && !p[1]) { + msg(M_WARN, "DEPRECATED OPTION: The option --tls-exit is deprecate= d."); VERIFY_PERMISSION(OPT_P_GENERAL); options->tls_exit =3D true; } -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/447?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: I93afff2372c4150d6bddc8c07fd4ebc8bfb0cc3e Gerrit-Change-Number: 447 Gerrit-PatchSet: 1 Gerrit-Owner: plaisthos Gerrit-Reviewer: flichtenheld Gerrit-CC: openvpn-devel Gerrit-Attention: flichtenheld Gerrit-MessageType: newchange --ODVlJGs3yt0= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is currently required from: flichtenheld.

plaisthos would like flichtenheld to review this change.

Vi= ew Change

Deprecate tls-exit option

This option is questionable = and I cannot see any reason to actually use it.

Change-Id: I93afff23= 72c4150d6bddc8c07fd4ebc8bfb0cc3e
---
M Changes.rst
M doc/man-secti= ons/tls-options.rst
M src/openvpn/options.c
3 files changed, 7 insert= ions(+), 2 deletions(-)

git pull ssh://gerrit.openvpn.net:29418/o=
penvpn refs/changes/47/447/1
diff --git a/Changes.rst b/Changes.rst=

index 3676dce..922f78d 100644
--- a/Change= s.rst
+++ b/Changes.rst
@@ -10,6 +10,10 @@<= /span>
``--allow-deprecated-insecure-static-crypto`` but will= be removed in
OpenVPN 2.8.
+```tls-exit``` has been depr= ecated since it is unclear what the use case
+ for this option is. If you have a valid use ca= se, please reach out since
+ the will otherwise be removed in the future.
+
Overview of changes i= n 2.6
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D

diff --git a/= doc/man-sections/tls-options.rst b/doc/man-sections/tls-options.rst<= br>index 908a42a..da5f362 100644
--- a/doc/man-sectio= ns/tls-options.rst
+++ b/doc/man-sections/tls-options.rst
@@ -553,7 +553,7 @@
code.

--tls-exit
- Exit on TLS negotiation failure.
+ **DEPRECATED** Exit on TLS negotiation failure.

--tls-export-cert directory
Store the certificates the clients use upon connection to this
=
diff --git a/src/openvpn/options.c b/src/openvpn/options.c=
index 2594b66..5eb1a45 100644
--- a/src/openvpn/o= ptions.c
+++ b/src/openvpn/options.c
@@ -60= 8,7 +608,7 @@
"--tran-window n : Transition windo= w -- old key can live this many seconds\n"
"= after new key renegotiation begins (default=3D%d).\n"= ;
"--single-session: Allow only one session (rese= t state on restart).\n"
- "--tls-exit : Exit on TLS negotiation failure.\n"=
+ "--tls-exi= t : (DEPRECATED) Exit on TLS negotiation failure.\n"
"--tls-auth f [d]: Add an additional layer of authentication = on top of the TLS\n"

" cont= rol channel to protect against attacks on the TLS stack\n"
<= span> " and DoS attacks.\n"
= @@ -8960,6 +8960,7 @@
}
else if (= streq(p[0], "tls-exit") && !p[1])
{<= /span>
+ msg(M_WARN, = "DEPRECATED OPTION: The option --tls-exit is deprecated.");
VERIFY_PERMISSION(OPT_P_GENERAL);
= options->tls_exit =3D true;
}
<= /span>

To view, visit change 447. To unsubscribe, or for help writin= g mail filters, visit settin= gs.

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I93afff2372c4150d6bddc8c07fd= 4ebc8bfb0cc3e
Gerrit-Change-Number: 447
Gerrit-PatchSet: 1
Gerrit-Owner: plaisthos <arne-openvpn@...1711...= 27...>
Gerrit-Reviewer: flichtenheld <frank@...2716...= 1...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-Attention: flichtenheld <frank@...2375...= 41...>
Gerrit-MessageType: newchange
--ODVlJGs3yt0=--