From: "cron2 (Code Review)" Date: Tue, 14 Jan 2025 17:18:08 +0000 In-Reply-To: References: Reply-To: gert@...1296..., 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="3JU0KJpxc78="; charset=UTF-8 Subject: [Openvpn-devel] [XS] Change in openvpn[master]: console_systemd: remove the timeout when using 'systemd-ask-password' List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: flichtenheld Cc: plaisthos , openvpn-devel --3JU0KJpxc78= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable cron2 has submitted this change. ( http://gerrit.openvpn.net/c/openvpn/+/86= 6?usp=3Demail ) Change subject: console_systemd: remove the timeout when using 'systemd-ask= -password' ...................................................................... console_systemd: remove the timeout when using 'systemd-ask-password' Without this, the password request will expire after 90 seconds leaving no way to provide the password without OpenVPN asking for it again. Given that interactive use will wait for input without a timeout, it makes sense to have non-interactive usage also wait until the user is ready instead of forcing users to race against the timeout. Change-Id: I2791d09ab698d89dc7e0183151f77b84024ad6d1 Signed-off-by: Ben Boeckel Acked-By: David Sommerseth Message-Id: <20241231204629.1210040-2-ben.boeckel@...2851...> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg30= 336.html Signed-off-by: Gert Doering --- M src/openvpn/console_systemd.c 1 file changed, 1 insertion(+), 0 deletions(-) diff --git a/src/openvpn/console_systemd.c b/src/openvpn/console_systemd.c index 858504d..91ebb35 100644 --- a/src/openvpn/console_systemd.c +++ b/src/openvpn/console_systemd.c @@ -72,6 +72,7 @@ } #endif argv_printf_cat(&argv, "--icon network-vpn"); + argv_printf_cat(&argv, "--timeout=3D0"); argv_printf_cat(&argv, "%s", prompt); if ((std_out =3D openvpn_popen(&argv, NULL)) < 0) -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/866?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: I2791d09ab698d89dc7e0183151f77b84024ad6d1 Gerrit-Change-Number: 866 Gerrit-PatchSet: 2 Gerrit-Owner: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-MessageType: merged --3JU0KJpxc78= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

cron2 submitted this change.

View Change

console_systemd: remove the timeout when using=
 'systemd-ask-password'

Without this, the password request w= ill expire after 90 seconds leaving
no way to provide the password witho= ut OpenVPN asking for it again.
Given that interactive use will wait for= input without a timeout, it
makes sense to have non-interactive usage a= lso wait until the user is
ready instead of forcing users to race agains= t the timeout.

Change-Id: I2791d09ab698d89dc7e0183151f77b84024ad6d1<= br>Signed-off-by: Ben Boeckel <ben.boeckel@...2851...>
Acked-By: D= avid Sommerseth <davids@...515...>
Message-Id: <20241231204629.= 1210040-2-ben.boeckel@...2851...>
URL: https://www.mail-archive.com/o= penvpn-devel@lists.sourceforge.net/msg30336.html
Signed-off-by: Gert Doe= ring <gert@...1296...>
---
M src/openvpn/console_systemd.c
1= file changed, 1 insertion(+), 0 deletions(-)

diff --git a/src/openvpn/console_systemd.c b/src/openvpn/console_systemd=
.c
index 858504d..91ebb35 100644
--- a/src/= openvpn/console_systemd.c
+++ b/src/openvpn/console_systemd= .c
@@ -72,6 +72,7 @@
}
#endif
argv_printf_cat(&argv, "--icon netwo= rk-vpn");
+ a= rgv_printf_cat(&argv, "--timeout=3D0");
= argv_printf_cat(&argv, "%s", prompt);

if ((std_out =3D openvpn_popen(&argv, NULL)) < 0)

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

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I2791d09ab698d89dc7e0183151f= 77b84024ad6d1
Gerrit-Change-Number: 866
Gerrit-PatchSet: 2
Gerrit-Owner: flichtenheld <frank@...2723...= .>
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-MessageType: merged
--3JU0KJpxc78=--