]> www.infradead.org Git - users/dwmw2/openconnect.git/commitdiff
Better document obsolete code and why we keep it
authorDimitri Papadopoulos <3350651+DimitriPapadopoulos@users.noreply.gitlab.com>
Fri, 11 Jun 2021 18:22:10 +0000 (20:22 +0200)
committerDimitri Papadopoulos <3350651+DimitriPapadopoulos@users.noreply.gitlab.com>
Fri, 11 Jun 2021 18:32:18 +0000 (20:32 +0200)
This code has been disabled by default in openfortivpn:
https://github.com/adrienverge/openfortivpn/pull/902

We keep it in openconnect for now, commenetd out, for debugging purposes.

Signed-off-by: Dimitri Papadopoulos <3350651+DimitriPapadopoulos@users.noreply.gitlab.com>
fortinet.c

index 75b178138e75902a73c8ad151b702247773ba87c..0b220b7a5197af6e92f8f19bf58df86adf1e200d 100644 (file)
@@ -537,9 +537,14 @@ static int fortinet_configure(struct openconnect_info *vpninfo)
                goto out;
        }
 
-       /* XXX: Why do Forticlient and Openfortivpn do this anyway?
-        * It's fetching the legacy non-XML configuration, isn't it?
-        * Do we *actually* have to do this, before fetching the XML config?
+       /* XXX: Forticlient and Openfortivpn fetch the legacy HTTP configuration.
+        * FortiOS 4 was the last version to send the legacy HTTP configuration.
+        * FortiOS 5 and later send the current XML configuration.
+        * We clearly do not need to support FortiOS 4 anymore.
+        * 
+        * Yet we keep this code around in order to get a sanity check about
+        * whether the SVPNCOOKIE is still valid/alive, until we are sure we've
+        * worked out the weirdness with reconnects.
         */
 #if 0 /* Nah... */
        free(vpninfo->urlpath);