]> www.infradead.org Git - users/dwmw2/openconnect.git/commitdiff
Cisco AnyConnect: add copyright string header
authorJames Anderson <james.anderson@inviarobotics.com>
Wed, 23 Jul 2025 02:33:03 +0000 (19:33 -0700)
committerJames Anderson <jrsa@jrsa.co>
Sat, 23 Aug 2025 16:59:02 +0000 (16:59 +0000)
Signed-off-by: James Anderson <james.anderson@inviarobotics.com>
cstp.c

diff --git a/cstp.c b/cstp.c
index f3dda05e95d1aa08300b450c0df73deb2204ae96..b071174a4ccfbea0995d223081e4a8536478142c 100644 (file)
--- a/cstp.c
+++ b/cstp.c
@@ -250,6 +250,10 @@ static int start_cstp_connection(struct openconnect_info *vpninfo, int strap_rek
        buf_append(reqbuf, "X-CSTP-Version: 1\r\n");
        buf_append(reqbuf, "X-CSTP-Hostname: %s\r\n", vpninfo->localname);
 
+       /* Some servers only allow connection if they see a shibboleth in the form of a standard copyright blurb: */
+       buf_append(reqbuf, "X-CSTP-Protocol: Copyright (c) %d %s\r\n",
+               2004, "Cisco Systems, Inc.");
+
 #ifdef HAVE_HPKE_SUPPORT
        if (!vpninfo->no_external_auth && vpninfo->strap_pubkey)
                append_connect_strap_headers(vpninfo, reqbuf, strap_rekey);