From: "cron2 (Code Review)" Date: Wed, 10 Dec 2025 08:50:19 +0000 In-Reply-To: References: Reply-To: gert@...1296..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: <7b42289150b76e6c5ba6864f7154caec5001ae82-EmailReplacePatchSet-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="i+74RParOL8="; 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 , plaisthos Cc: openvpn-devel --i+74RParOL8= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable cron2 has uploaded a new patch set (#2) to the change originally created by= flichtenheld. ( http://gerrit.openvpn.net/c/openvpn/+/1427?usp=3Demail ) The following approvals got outdated and were removed: Code-Review+2 by cron2 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(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/27/1427/2 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: newpatchset 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 --i+74RParOL8= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

cron2 upl= oaded patch set #2 to the change originally created by flichtenhel= d.

View Change

The following approvals got outdated and were remove= d: Code-Review+2 by cron2

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 s= ome minimal drive-by fixes.

Change-Id: I59995bf0fd6bc48a738a94e41141= ed37d8d637ba
Signed-off-by: Frank Lichtenheld <frank@...2641...>Acked-by: Gert Doering <gert@...1296...>
Gerrit URL: https://ger= rit.openvpn.net/c/openvpn/+/1427
Message-Id: <20251210075056.27185-1-= gert@...1296...>
URL: https://www.mail-archive.com/openvpn-devel@...1514...= s.sourceforge.net/msg34972.html
Signed-off-by: Gert Doering <gert@...493...= 1296...>
---
M doc/man-sections/unsupported-options.rst
M src/o= penvpn/options.c
2 files changed, 18 insertions(+), 17 deletions(-)
<= br>
git pull ssh://gerrit.openvpn.net:29418/openvpn refs=
/changes/27/1427/2
diff --git a/doc/man-sections/unsupported-option=
s.rst b/doc/man-sections/unsupported-options.rst
index 821a= c07..6e77333 100644
--- a/doc/man-sections/unsupported-opti= ons.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 repla= xed with
+ Removed i= n 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-retry``.
+
+--http-proxy-ti= meout
+ Removed in O= penVPN 2.4. Connection timeout is controlled by
+ ``--connect-timeout``.
+
--ifconfig-pool-linear<= /span>
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) f= unctionality
has been removed.
<= br>+--max-routes
+ Removed in OpenVPN 2.4. The lim= it was removed.

+
--ncp-disable
Removed in OpenVPN 2.6. Thi= s option mainly served a role as debug option
when NCP w= as 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 controlled by ``--max-connect-retry``.
+
--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/optio= ns.c b/src/openvpn/options.c
index 1be105b..bd6dc07 100644<= /span>
--- a/src/openvpn/options.c
+++ b/src/openv= pn/options.c
@@ -6699,19 +6699,10 @@
= ho->auth_file_up =3D p[1];
ho->inline_cre= ds =3D is_inline;
}
- else if (streq(p[0], "http-proxy-retry") |= | streq(p[0], "socks-proxy-retry"))
+ else if (streq(p[0], "http-proxy-retry&q= uot;) || streq(p[0], "socks-proxy-retry") || streq(p[0], "ht= tp-proxy-timeout"))
{
VE= RIFY_PERMISSION(OPT_P_GENERAL | OPT_P_CONNECTION);
- msg(M_WARN, "DEPRECATED OPTION: h= ttp-proxy-retry and socks-proxy-retry: "
- "In OpenVPN 2.4 proxy conn= ection retries are handled like 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: htt= p-proxy-timeout: In OpenVPN 2.4 the timeout until a connection to a "<= /span>
- "serv= er is established is managed with a single timeout set by connect-timeout&q= uot;);
+ msg(M= _WARN, "DEPRECATED OPTION: %s option ignored.", p[0]);
= }
else if (streq(p[0], "http-proxy-opt= ion") && p[1] && !p[4])
{<= br>@@ -6826,7 +6817,7 @@
else if (streq(p[0], &q= uot;persist-key") && !p[1])
{
<= span> VERIFY_PERMISSION(OPT_P_PERSIST);

- msg(M_WARN, "DEPRECATED: --persist-k= ey option ignored. "
+ msg(M_WARN, "DEPRECATED OPTION: --persist-key option ign= ored. "
"Keys are now always= persisted across restarts. ");
}
else if (streq(p[0], "persist-local-ip") && !p[1])<= /span>
@@ -6875,10 +6866,7 @@
}
else if (streq(p[0], "max-routes") && !p[2])
{
- = msg(M_WARN, "DEPRECATED OPTION: --max-routes option ignored. &quo= t;
- = "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 opti= on ignored.");
}
else if (st= req(p[0], "route-gateway") && p[1] && !p[2])
{

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

Gerrit-MessageType: newpatchset
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>
= --i+74RParOL8=--