From 7153c84c14a87efad243b3dbc9725ef4577955e2 Mon Sep 17 00:00:00 2001 From: Daniel Lenski Date: Tue, 31 Aug 2021 16:15:25 -0700 Subject: [PATCH] Remove already-disabled code copied from oncp.c into pulse.c MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Also removes a comment about an unhandled field which is, in fact, already handled (0x000f → IPv6 split-include). Signed-off-by: Daniel Lenski --- pulse.c | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/pulse.c b/pulse.c index 6c740c42..8a03d815 100644 --- a/pulse.c +++ b/pulse.c @@ -490,24 +490,7 @@ static int process_attr(struct openconnect_info *vpninfo, struct oc_vpn_option * vpn_progress(vpninfo, PRG_DEBUG, _("ESP only: %d\n"), data[0]); break; -#if 0 - case GRP_ATTR(7, 1): - if (attrlen != 4) - goto badlen; - memcpy(&vpninfo->esp_out.spi, data, 4); - vpn_progress(vpninfo, PRG_DEBUG, _("ESP SPI (outbound): %x\n"), - load_be32(data)); - break; - case GRP_ATTR(7, 2): - if (attrlen != 0x40) - goto badlen; - /* data contains enc_key and hmac_key concatenated */ - memcpy(vpninfo->esp_out.enc_key, data, 0x40); - vpn_progress(vpninfo, PRG_DEBUG, _("%d bytes of ESP secrets\n"), - attrlen); - break; -#endif /* 0x4022: disable proxy 0x400a: preserve proxy 0x4008: proxy (string) @@ -518,7 +501,6 @@ static int process_attr(struct openconnect_info *vpninfo, struct oc_vpn_option * 0x4020: Enforce IPv4 0x4021: Enforce IPv6 0x401e: Server IPv6 address - 0x000f: IPv6 netmask? */ default: -- 2.50.1