From e4d2ee611760b8f00e8fab3440d238ee85cee890 Mon Sep 17 00:00:00 2001 From: James Anderson Date: Tue, 22 Jul 2025 19:33:03 -0700 Subject: [PATCH] Cisco AnyConnect: add copyright string header Signed-off-by: James Anderson --- cstp.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cstp.c b/cstp.c index f3dda05e9..b071174a4 100644 --- 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); -- GitLab