From: "cron2 (Code Review)" Date: Wed, 10 Dec 2025 08:50:22 +0000 In-Reply-To: References: Reply-To: gert@...1296..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: <7b42289150b76e6c5ba6864f7154caec5001ae82-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="xT2XrqTf3us="; charset=UTF-8 Subject: [Openvpn-devel] [S] Change in openvpn[master]: options: Remove some verbose error messages for options deprecated in... List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: flichtenheld Cc: plaisthos , openvpn-devel --xT2XrqTf3us= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable cron2 has submitted this change. ( http://gerrit.openvpn.net/c/openvpn/+/14= 27?usp=3Demail ) Change subject: options: Remove some verbose error messages for options dep= recated in 2.4 ...................................................................... options: Remove some verbose error messages for options deprecated in 2.4 It has been a long time since 2.3. So move this from the code to the documentation. Includes some minimal drive-by fixes. Change-Id: I59995bf0fd6bc48a738a94e41141ed37d8d637ba Signed-off-by: Frank Lichtenheld Acked-by: Gert Doering Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1427 Message-Id: <20251210075056.27185-1-gert@...1296...> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg34= 972.html Signed-off-by: Gert Doering --- M doc/man-sections/unsupported-options.rst M src/openvpn/options.c 2 files changed, 18 insertions(+), 17 deletions(-) diff --git a/doc/man-sections/unsupported-options.rst b/doc/man-sections/un= supported-options.rst index 821ac07..6e77333 100644 --- a/doc/man-sections/unsupported-options.rst +++ b/doc/man-sections/unsupported-options.rst @@ -6,9 +6,16 @@ longer supported --client-cert-not-required - Removed in OpenVPN 2.5. This should be replaxed with + Removed in OpenVPN 2.5. This should be replaced with ``--verify-client-cert none``. +--http-proxy-retry + Removed in OpenVPN 2.4. All retries are controlled by ``--max-connect-r= etry``. + +--http-proxy-timeout + Removed in OpenVPN 2.4. Connection timeout is controlled by + ``--connect-timeout``. + --ifconfig-pool-linear Removed in OpenVPN 2.5. This should be replaced with ``--topology p2p``. @@ -21,6 +28,9 @@ Removed in OpenVPN 2.6. The built-in packet filtering (pf) functionality has been removed. +--max-routes + Removed in OpenVPN 2.4. The limit was removed. + --ncp-disable Removed in OpenVPN 2.6. This option mainly served a role as debug option when NCP was first introduced. It should no longer be necessary. @@ -50,6 +60,9 @@ Removed in OpenVPN 2.7. This option does not make sense anymore as opti= on strings may not match due to the introduction of parameters negotiation. +--socks-proxy-retry + Removed in OpenVPN 2.4. All retries are controlled by ``--max-connect-r= etry``. + --windows-driver Removed in OpenVPN 2.7. OpenVPN will always use ovpn-dco as the default driver on Windows. It will fall back to tap-windows6 if options are used diff --git a/src/openvpn/options.c b/src/openvpn/options.c index 1be105b..bd6dc07 100644 --- a/src/openvpn/options.c +++ b/src/openvpn/options.c @@ -6699,19 +6699,10 @@ ho->auth_file_up =3D p[1]; ho->inline_creds =3D is_inline; } - else if (streq(p[0], "http-proxy-retry") || streq(p[0], "socks-proxy-r= etry")) + else if (streq(p[0], "http-proxy-retry") || streq(p[0], "socks-proxy-r= etry") || streq(p[0], "http-proxy-timeout")) { VERIFY_PERMISSION(OPT_P_GENERAL | OPT_P_CONNECTION); - msg(M_WARN, "DEPRECATED OPTION: http-proxy-retry and socks-proxy-r= etry: " - "In OpenVPN 2.4 proxy connection retries are handled l= ike regular connections. " - "Use connect-retry-max 1 to get a similar behavior as = before."); - } - else if (streq(p[0], "http-proxy-timeout") && p[1] && !p[2]) - { - VERIFY_PERMISSION(OPT_P_GENERAL | OPT_P_CONNECTION); - msg(M_WARN, - "DEPRECATED OPTION: http-proxy-timeout: In OpenVPN 2.4 the tim= eout until a connection to a " - "server is established is managed with a single timeout set by= connect-timeout"); + msg(M_WARN, "DEPRECATED OPTION: %s option ignored.", p[0]); } else if (streq(p[0], "http-proxy-option") && p[1] && !p[4]) { @@ -6826,7 +6817,7 @@ else if (streq(p[0], "persist-key") && !p[1]) { VERIFY_PERMISSION(OPT_P_PERSIST); - msg(M_WARN, "DEPRECATED: --persist-key option ignored. " + msg(M_WARN, "DEPRECATED OPTION: --persist-key option ignored. " "Keys are now always persisted across restarts. "); } else if (streq(p[0], "persist-local-ip") && !p[1]) @@ -6875,10 +6866,7 @@ } else if (streq(p[0], "max-routes") && !p[2]) { - msg(M_WARN, "DEPRECATED OPTION: --max-routes option ignored. " - "The number of routes is unlimited as of OpenVPN 2.4. " - "This option will be removed in a future version, " - "please remove it from your configuration."); + msg(M_WARN, "DEPRECATED OPTION: --max-routes option ignored."); } else if (streq(p[0], "route-gateway") && p[1] && !p[2]) { -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1427?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings?usp=3Demail Gerrit-MessageType: merged Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: I59995bf0fd6bc48a738a94e41141ed37d8d637ba Gerrit-Change-Number: 1427 Gerrit-PatchSet: 2 Gerrit-Owner: flichtenheld Gerrit-Reviewer: cron2 Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel --xT2XrqTf3us= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

cron2 sub= mitted this change.

View Change

options: Remove some verbose error messages for =
options deprecated in 2.4

It has been a long time since 2.3. So move= this from the code
to the documentation.

Includes some minimal d= rive-by fixes.

Change-Id: I59995bf0fd6bc48a738a94e41141ed37d8d637ba<= br>Signed-off-by: Frank Lichtenheld <frank@...2641...>
Acked-by: G= ert Doering <gert@...1296...>
Gerrit URL: https://gerrit.openvpn.n= et/c/openvpn/+/1427
Message-Id: <20251210075056.27185-1-gert@...1725...= ..>
URL: https://www.mail-archive.com/openvpn-devel@...282...= .net/msg34972.html
Signed-off-by: Gert Doering <gert@...1296...>---
M doc/man-sections/unsupported-options.rst
M src/openvpn/option= s.c
2 files changed, 18 insertions(+), 17 deletions(-)

diff --git a/doc/man-sections/unsupported-options.rst b/doc/man-sections=
/unsupported-options.rst
index 821ac07..6e77333 100644
--- a/doc/man-sections/unsupported-options.rst
= +++ b/doc/man-sections/unsupported-options.rst
@@ -6,9 +6,1= 6 @@
longer supported

-= -client-cert-not-required
- Removed in OpenVPN 2.5. This should be replaxed with
+ Removed in OpenVPN 2.5. This sho= uld be replaced with

``--verify-client-cert none``.

+--http= -proxy-retry
+ Remov= ed in OpenVPN 2.4. All retries are controlled by ``--max-connect-retry``.<= /span>
+
+--http-proxy-timeout
+ Removed in OpenVPN 2.4. Connection = timeout is controlled by
+ ``--connect-timeout``.
+
--ifconfig-pool-linear
Remov= ed in OpenVPN 2.5. This should be replaced with ``--topology p2p``.=

@@ -21,6 +28,9 @@
Removed in= OpenVPN 2.6. The built-in packet filtering (pf) functionality
<= span> has been removed.


+--max-routes
+ Removed in OpenVPN 2.4. The limit was removed.+
--ncp-disa= ble
Removed in OpenVPN 2.6. This option mainly served a= role as debug option
when NCP was first introduced. It= should no longer be necessary.
@@ -50,6 +60,9 @@ Removed in OpenVPN 2.7. This option does not make sense anymore = as option
strings may not match due to the introduction = of parameters negotiation.

+--socks-proxy-retry
+ Removed in OpenVPN 2.4. All retries are control= led by ``--max-connect-retry``.
+
--windows-driver
Removed i= n OpenVPN 2.7. OpenVPN will always use ovpn-dco as the default
driver on Windows. It will fall back to tap-windows6 if options are = used

diff --git a/src/openvpn/options.c b/src/openvpn/optio= ns.c
index 1be105b..bd6dc07 100644
--- a/sr= c/openvpn/options.c
+++ b/src/openvpn/options.c
<= span>@@ -6699,19 +6699,10 @@
ho->auth_file_up = =3D p[1];
ho->inline_creds =3D is_inline;
}
- = else if (streq(p[0], "http-proxy-retry") || streq(p[0], "soc= ks-proxy-retry"))
- msg(M_WARN, "DEPRECATED OPTION: http-proxy-retry and soc= ks-proxy-retry: "
= - "In OpenVPN 2.4 proxy connection retries are hand= led like regular connections. "
- "Use connect-retry-max 1 to get a s= imilar behavior as before.");
- }
- = else if (streq(p[0], "http-proxy-timeout") && p[1] &= & !p[2])
- {

- VERIFY_PERMISSION= (OPT_P_GENERAL | OPT_P_CONNECTION);
- msg(M_WARN,
- "DEPRECATED OPTION: http-proxy-timeout: In Ope= nVPN 2.4 the timeout until a connection to a "
- "server is established is = managed with a single timeout set by connect-timeout");
+ msg(M_WARN, "DEPRECAT= ED OPTION: %s option ignored.", p[0]);
} else if (streq(p[0], "http-proxy-option") &&= p[1] && !p[4])
{
@@ -6826,7 += 6817,7 @@
else if (streq(p[0], "persist-key"= ) && !p[1])
{
VERIFY_= PERMISSION(OPT_P_PERSIST);
- msg(M_WARN, "DEPRECATED: --persist-key option ignored. &q= uot;
+ msg(M_W= ARN, "DEPRECATED OPTION: --persist-key option ignored. " "Keys are now always persisted across res= tarts. ");
}
else if (streq(= p[0], "persist-local-ip") && !p[1])
@@ -6= 875,10 +6866,7 @@
}
else if (stre= q(p[0], "max-routes") && !p[2])
{
- msg(M_WARN, &quo= t;DEPRECATED OPTION: --max-routes option ignored. "
- "The number of = routes is unlimited as of OpenVPN 2.4. "
- "This option will be remov= ed in a future version, "
- "please remove it from your configuration= .");
+ ms= g(M_WARN, "DEPRECATED OPTION: --max-routes option ignored.");
}
else if (streq(p[0], "route-g= ateway") && p[1] && !p[2])
{


To view, visit change 1427. To unsubscribe, or = for help writing mail filters, visit settings.

Gerrit-MessageType: merged
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I59995bf0fd6bc48a738a94e4114= 1ed37d8d637ba
Gerrit-Change-Number: 1427
Gerrit-PatchSet: 2
Gerrit-Owner: flichtenheld <frank@...2723...= .>
Gerrit-Reviewer: cron2 <gert@...1296...>=
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
= --xT2XrqTf3us=--