File remove-fucking-strap.patch of Package openconnect-nostrap
Index: cstp.c
===================================================================
--- cstp.c.orig 2023-05-04 19:40:46.000000000 +0200
+++ cstp.c 2023-08-28 11:22:38.533022568 +0200
@@ -215,11 +215,13 @@ static int parse_hex_val(const char *str
static void append_connect_strap_headers(struct openconnect_info *vpninfo,
struct oc_text_buf *buf, int rekey)
{
+/* monkey moron idiot patching
buf_append(buf, "X-AnyConnect-STRAP-Verify: ");
append_strap_verify(vpninfo, buf, rekey);
buf_append(buf, "\r\n");
buf_append(buf, "X-AnyConnect-STRAP-Pubkey: %s\r\n", vpninfo->strap_pubkey);
+*/
}
#endif
@@ -1294,10 +1296,12 @@ void cstp_common_headers(struct openconn
}
}
+/* monkey moron idiot patching
buf_append(buf, "X-AnyConnect-STRAP-Pubkey: %s\r\n",
vpninfo->strap_pubkey);
buf_append(buf, "X-AnyConnect-STRAP-DH-Pubkey: %s\r\n",
vpninfo->strap_dh_pubkey);
+*/
}
#endif
append_mobile_headers(vpninfo, buf);