From 8aec88b9e86c6c9695bbc50743a88d4f97e03910 Mon Sep 17 00:00:00 2001 From: Daniel Lenski Date: Thu, 4 Feb 2021 17:23:32 -0800 Subject: [PATCH] Fortinet: implement auth_expiration Signed-off-by: Daniel Lenski --- fortinet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fortinet.c b/fortinet.c index 9bb197cf..82bcd980 100644 --- a/fortinet.c +++ b/fortinet.c @@ -170,7 +170,7 @@ static int parse_fortinet_xml_config(struct openconnect_info *vpninfo, char *buf for (xml_node = xml_node->children; xml_node; xml_node=xml_node->next) { if (xmlnode_is_named(xml_node, "auth-timeout") && !xmlnode_get_prop(xml_node, "val", &s)) - vpn_progress(vpninfo, PRG_INFO, _("Session will expire after %d minutes.\n"), atoi(s)/60); + vpninfo->auth_expiration = time(NULL) + atol(s); else if (xmlnode_is_named(xml_node, "idle-timeout") && !xmlnode_get_prop(xml_node, "val", &s)) { int sec = vpninfo->idle_timeout = atoi(s); vpn_progress(vpninfo, PRG_INFO, _("Idle timeout is %d minutes.\n"), sec/60); -- 2.50.1